Hello
EDIT:
The problem is more basic than dnsmasq. On testing to see if the nameservers are reachable
Code:
root@ps1:~# ping 218.248.255.146
connect: Network is unreachable
Post title pre-pended with [DO NOT REPLY]
dnsmasq on a recent Slackware 13.0 install is not resolving. Usually dnsmasq "just works". I have tried all the problem analysis techniques I know and am stumped.
First the symptoms:
Code:
root@ps1:~# vi /etc/dnsmasq.conf
root@ps1:~# nslookup linuxquestions.org
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find linuxquestions.org: NXDOMAIN
Here's how it should look (from a working system)
Code:
c@CW8:~$ nslookup linuxquestions.org
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
Name: linuxquestions.org
Address: 75.126.162.205
Here's the output when running dnsmasq with the -d (debug) option when the failed query was made
Code:
dnsmasq: query[A] linuxquestions.org from 127.0.0.1
dnsmasq: query[A] linuxquestions.org.localdomain from 127.0.0.1
dnsmasq: config linuxquestions.org.localdomain is NXDOMAIN-IPv4
dnsmasq's configuration on the problem system, ps1, is similar to that on the working system, CW8. ps1 has two NICs but the problem is unchanged when the second one is downed. ps1 is being implemented as an OpenVPN server but openvpn was not running during the tests.
Here are some possibly relevant commands with output (with the second NIC downed)
Code:
root@ps1:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:68:79:44
inet addr:192.168.1.41 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::280:48ff:fe68:7944/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3069 errors:0 dropped:457 overruns:0 frame:0
TX packets:1535 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:244061 (238.3 KiB) TX bytes:299284 (292.2 KiB)
Interrupt:22 Base address:0xb800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7764 (7.5 KiB) TX bytes:7764 (7.5 KiB)
root@ps1:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
root@ps1:~# grep -E -v '(^$)|(^#)' /etc/dnsmasq.conf
domain-needed
bogus-priv
resolv-file=/etc/resolv.dnsmasq.conf
local=/localdomain/
listen-address=127.0.0.1
expand-hosts
domain=localdomain
[snip bogus-nxdomain lines]
log-queries
log-dhcp
root@ps1:~# grep -E -v '(^$)|(^#)' /etc/resolv.dnsmasq.conf
options timeout:1
nameserver 61.1.96.69
nameserver 61.1.96.71
nameserver 61.1.96.72
nameserver 218.248.240.23
nameserver 218.248.240.135
nameserver 218.248.240.180
nameserver 218.248.240.181
nameserver 218.248.240.208
nameserver 218.248.255.139
nameserver 218.248.255.145
nameserver 218.248.255.146
root@ps1:~# grep -E -v '(^$)|(^#)' /etc/hosts
127.0.0.1 localhost
192.168.1.41 ps1.localdomain ps1
10.0.0.41 ps1.localdomain ps1
root@ps1:~# grep -E -v '(^$)|(^#)' /etc/networks
loopback 127.0.0.0
localnet 192.168.1.0
Any suggestions about how to further investigate this problem much appreciated.
EDIT: Here are the dnsmasq startup messages
Code:
root@ps1:/etc/rc.d# dnsmasq -d
dnsmasq: started, version 2.49 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-DBus I18N DHCP TFTP
dnsmasq: using local addresses only for domain localdomain
dnsmasq: reading /etc/resolv.dnsmasq.conf
dnsmasq: using nameserver 218.248.255.146#53
dnsmasq: using nameserver 218.248.255.145#53
dnsmasq: using nameserver 218.248.255.139#53
dnsmasq: using nameserver 218.248.240.208#53
dnsmasq: using nameserver 218.248.240.181#53
dnsmasq: using nameserver 218.248.240.180#53
dnsmasq: using nameserver 218.248.240.135#53
dnsmasq: using nameserver 218.248.240.23#53
dnsmasq: using nameserver 61.1.96.72#53
dnsmasq: using nameserver 61.1.96.71#53
dnsmasq: using nameserver 61.1.96.69#53
dnsmasq: using local addresses only for domain localdomain
dnsmasq: read /etc/hosts - 3 addresses
Best
Charles