LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2010, 07:22 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
[DO NOT REPLY] dnsmasq not resolving. How to investigate?


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

Last edited by catkin; 02-12-2010 at 10:00 PM.
 
Old 02-12-2010, 10:01 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Taking this thread off the zero reply list.
 
  


Reply

Tags
dnsmasq, nxdomain



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to investigate a shutdown which is not working? ade05fr Linux - General 2 12-21-2007 04:35 AM
HP ZV5120US - investigate hardware - no sound DyeKid Linux - Laptop and Netbook 24 02-14-2006 11:30 PM
How to investigate a system lockup kvtournh Linux - Security 2 12-09-2005 05:48 AM
dnsmasq: not resolving names of dhcp'd computers vimico Linux - Networking 3 03-19-2005 05:39 PM
Mandrake 10, no sound - how do I investigate? owain Linux - Newbie 6 04-17-2004 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration