[Dnsmasq-discuss] dnsmasq: failed to create listening socket: Address already in use

/dev/rob0 rob0 at gmx.co.uk
Fri Aug 1 16:18:51 BST 2014


On Fri, Aug 01, 2014 at 07:01:09PM +0430, Mahmood Naderan wrote:
> However, I get error when trying to start the dnsmasq service
> 
> |     [root at localhost mahmood]# /etc/init.d/dnsmasq status
>     dnsmasq is stopped
>     [root at localhost mahmood]# /etc/init.d/dnsmasq start
>     Starting dnsmasq:
>     dnsmasq: failed to create listening socket: Address already in use
>                                                        [FAILED]
> |
> 
> netstat command shows the following information
> 
> |     [root at localhost mahmood]# netstat -anlp | grep -w LISTEN

"LISTEN" in netstat terms only includes TCP, as you can see.  DHCP 
servers need to bind UDP port 68.  Nameservers need to bind UDP 53.  
More of interest here would be to see UDP sockets (-u).

>     tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1252/rpcbind
>     tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1445/cupsd
>     tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1685/master
>     tcp        0      0 0.0.0.0:46556               0.0.0.0:*                   LISTEN      1348/rpc.statd
>     tcp        0      0 :::111                      :::*                        LISTEN      1252/rpcbind
>     tcp        0      0 :::80                       :::*                        LISTEN      4884/httpd
>     tcp        0      0 ::1:631                     :::*                        LISTEN      1445/cupsd
>     tcp        0      0 :::51096                    :::*                        LISTEN      1348/rpc.statd
> |
> 
> What missconfiguration causes such error and how can I fix that?

I don't know.  Maybe you have enabled another DHCP server, or perhaps 
another nameserver?
-- 
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:



More information about the Dnsmasq-discuss mailing list