[Dnsmasq-discuss] failed to bind DHCP server socket: Address already in use

Michael Rack dnsmasq.list at michaelrack.de
Tue Oct 14 08:00:52 BST 2008


Hi Richard,

--- SNIP DHCP-FWD ---
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
udp        0      0 10.10.0.1:137           0.0.0.0:*
udp        0      0 0.0.0.0:137             0.0.0.0:*
udp        0      0 10.10.0.1:138           0.0.0.0:*
udp        0      0 0.0.0.0:138             0.0.0.0:*
udp        0      0 0.0.0.0:698             0.0.0.0:*
udp        0      0 0.0.0.0:698             0.0.0.0:*
udp        0      0 0.0.0.0:698             0.0.0.0:*
udp        0      0 0.0.0.0:698             0.0.0.0:*
udp        0      0 0.0.0.0:67              0.0.0.0:*
udp        0      0 0.0.0.0:67              0.0.0.0:*
udp   108324      0 0.0.0.0:68              0.0.0.0:*
udp        0      0 0.0.0.0:68              0.0.0.0:*
udp        0      0 91.65.152.228:45030     81.95.15.82:5000        
ESTABLISHED
--- SNAP DHCP-FWD ---

--- SNIP DNSMASQ ---
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
udp        0      0 10.10.0.1:137           0.0.0.0:*
udp        0      0 0.0.0.0:137             0.0.0.0:*
udp        0      0 10.10.0.1:138           0.0.0.0:*
udp        0      0 0.0.0.0:138             0.0.0.0:*
udp        0      0 10.10.0.1:53            0.0.0.0:*
udp        0      0 192.168.178.1:53        0.0.0.0:*
udp      600      0 0.0.0.0:698             0.0.0.0:*
udp      300      0 0.0.0.0:698             0.0.0.0:*
udp      300      0 0.0.0.0:698             0.0.0.0:*
udp      300      0 0.0.0.0:698             0.0.0.0:*
udp        0      0 0.0.0.0:67              0.0.0.0:*
udp        0      0 0.0.0.0:68              0.0.0.0:*
udp        0      0 91.65.152.228:45030     81.95.15.82:5000        
ESTABLISHED
udp        0      0 fe80::20e:cff:fe9c:5:53 :::*
udp        0      0 fe80::280:c8ff:fecd::53 :::*
--- SNAP DNSMASQ ---

Sorry but the output does not show the device where the sockets listen 
on. But i think that DHCP-FWD is listen on two interfaces and DNSMASQ 
only on one interface. But the interfaces can not be overlaped in my 
configuration. eth0 and eth1 assigned to dnsmasq. eth2 and eth3 assigned 
to dhcp-fwd.

Michael.


richardvoigt at gmail.com schrieb:
> On Mon, Oct 13, 2008 at 6:55 PM, Michael Rack
> <dnsmasq.list at michaelrack.de>  wrote:
>> Hi List,
>>
>> i have two DHCP-Servers / Forwarders running on one machine. My router have
>> five interfaces one for LAN, WIRELESS, SERVER, IP-TUNNEL and one for WAN.
>>
>> On WAN there is running a dhcp-client to assign an official ip-address from
>> my ISP. On Wireless and IP-Tunnel runs the DHCP-Forwarder (dhcp-fwd) wich is
>> connected to only this two interfaces.
>>
>> Now i like to setup dnsmasq on the last two interfaces (lan and server). But
>> i can not start dnsmasq without the following error-message: failed to bind
>> DHCP server socket: Address already in use
>>
>> My configuration-file like this:
>>
>> --- SNIP ---
>> # Port Settings
>> except-interface=lo
>> interface=lan
>> interface=server
>> listen-address=10.10.0.1
>> listen-address=192.168.178.1
>> bind-interfaces
>>
>> # Include another lot of configuration options
>> conf-dir=/etc/dnsmasq.d
>> --- SNAP ---
>>
>> Why is DNSMASQ listen on all Interfaces? DHCP-FWD is also listen to only the
>> defined interfaces (wlan and ip-tunnel).
>
> Please post "netstat -a -p udp" while running only DHCP-FWD and only DNSMASQ.
>
>> Thanks in advance,
>> Michael
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list