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

2014-08-01 Thread Mahmood Naderan

Hello,
The OS is Scientific Linux 6.3 (which is similar to redhat, centos and 
fedora) and I have installed dnsmasq with the following configuration


| interface=eth1
domain=hpclab
expand-hosts
dhcp-range=10.0.2.51,10.0.2.100,static
dhcp-option=42,0.0.0.0
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/var/lib/tftpboot
dhcp-host=08:00:27:69:73:7A,ws04,10.0.2.51
|

and current node (which runs dnsmasq) has this ip

| eth1  Link encap:Ethernet  HWaddr 08:00:27:A9:20:C0
  inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
  inet6 addr: fe80::a00:27ff:fea9:20c0/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
|

However, I get error when trying to start the dnsmasq service

| [root@localhost mahmood]# /etc/init.d/dnsmasq status
dnsmasq is stopped
[root@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@localhost mahmood]# netstat -anlp | grep -w LISTEN
tcp0  0 0.0.0.0:111 0.0.0.0:*   
LISTEN  1252/rpcbind
tcp0  0 127.0.0.1:631   0.0.0.0:*   
LISTEN  1445/cupsd
tcp0  0 127.0.0.1:250.0.0.0:*   
LISTEN  1685/master
tcp0  0 0.0.0.0:46556   0.0.0.0:*   
LISTEN  1348/rpc.statd
tcp0  0 :::111  :::*
LISTEN  1252/rpcbind
tcp0  0 :::80   :::*
LISTEN  4884/httpd
tcp0  0 ::1:631 :::*
LISTEN  1445/cupsd
tcp0  0 :::51096:::*
LISTEN  1348/rpc.statd
|

What missconfiguration causes such error and how can I fix that?



--
Regards,
Mahmood
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2014-08-01 Thread /dev/rob0
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@localhost mahmood]# /etc/init.d/dnsmasq status
 dnsmasq is stopped
 [root@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@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).

 tcp0  0 0.0.0.0:111 0.0.0.0:* 
   LISTEN  1252/rpcbind
 tcp0  0 127.0.0.1:631   0.0.0.0:* 
   LISTEN  1445/cupsd
 tcp0  0 127.0.0.1:250.0.0.0:* 
   LISTEN  1685/master
 tcp0  0 0.0.0.0:46556   0.0.0.0:* 
   LISTEN  1348/rpc.statd
 tcp0  0 :::111  :::*  
   LISTEN  1252/rpcbind
 tcp0  0 :::80   :::*  
   LISTEN  4884/httpd
 tcp0  0 ::1:631 :::*  
   LISTEN  1445/cupsd
 tcp0  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:

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2014-08-01 Thread Mahmood Naderan


On 8/1/2014 7:48 PM, /dev/rob0 wrote:

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@localhost mahmood]# /etc/init.d/dnsmasq status
 dnsmasq is stopped
 [root@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@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).


 tcp0  0 0.0.0.0:111 0.0.0.0:*  
 LISTEN  1252/rpcbind
 tcp0  0 127.0.0.1:631   0.0.0.0:*  
 LISTEN  1445/cupsd
 tcp0  0 127.0.0.1:250.0.0.0:*  
 LISTEN  1685/master
 tcp0  0 0.0.0.0:46556   0.0.0.0:*  
 LISTEN  1348/rpc.statd
 tcp0  0 :::111  :::*   
 LISTEN  1252/rpcbind
 tcp0  0 :::80   :::*   
 LISTEN  4884/httpd
 tcp0  0 ::1:631 :::*   
 LISTEN  1445/cupsd
 tcp0  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?



Yes, seems that I enabled the tftp in xinet.conf.
I now disable it and it works.

Regards,
Mahmood


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss