LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-31-2012, 02:04 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,533
Blog Entries: 27

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
How to diagnose dnsmasq problems?


Is there any further diagnosis that can be done before packet sniffing?

dnsmasq suddenly stopped working (it stopped resolving names). Its config files had not been changed for at least several weeks:
Code:
root@CW8:~# ll /etc/*dnsmasq*
-rw-r--r-- 1 root root 22K Apr 10 16:37 /etc/dnsmasq.conf
-rw-r--r-- 1 root root 22K Mar 16  2011 /etc/dnsmasq.conf.org
-rw-r--r-- 1 root root 703 Jun 21  2010 /etc/resolv.dnsmasq.conf

/etc/dnsmasq.d:
total 0
Starting dnsmasq with --log-queries and running dig linuxquestions.org produced this output in /var/log/messages, showing dnsmasq is receiving the query and querying the usual DNS servers -- but does not get an answer.
Code:
May 31 12:29:17 CW8 dnsmasq[6420]: query[A] linuxquestions.org from 127.0.0.1
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 61.0.0.5
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 61.1.96.69
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 61.1.96.71
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 61.1.96.72
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.240.23
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.240.135
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.240.180
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.240.181
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.240.208
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.245.1
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.255.139
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.255.145
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 218.248.255.146
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 4.2.2.1
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 4.2.2.2
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 4.2.2.3
May 31 12:29:17 CW8 dnsmasq[6420]: forwarded linuxquestions.org to 4.2.2.4
Adding a DNS server before the loopback for dnsmasq in /etc/resolv.conf worked around the problem:
Code:
search localdomain
nameserver 4.2.2.4
nameserver 127.0.0.1
There is no firewall:
Code:
root@CW8:~# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 diagnose problems??? onebuck General 13 12-08-2010 07:12 AM
bridge-utils / dnsmasq / iptables / debian => internet sharing problems cocchiararo Linux - Networking 5 09-17-2009 07:27 PM
DNSMASQ has problems with 'resolv.conf' Ashrack Linux - Networking 5 07-03-2006 01:03 PM
diagnose problems toddncl Linux - Laptop and Netbook 0 07-14-2004 10:39 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration