LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-30-2010, 09:34 PM   #1
shams
Member
 
Registered: Jan 2004
Posts: 535

Rep: Reputation: 30
Question dnsmasq error?


Hi,
I am running dnsmasq in debian lenny, wvdial connecting but dnsmasq doesn't work, the /var/run/dnsmasq/resolv.conf file is empty this is /var/log/syslog:

Dec 31 00:21:25 jan pppd[3486]: pppd 2.4.4 started by root, uid 0
Dec 31 00:21:25 jan kernel: [ 294.057058] PPP generic driver version 2.4.2
Dec 31 00:21:25 jan pppd[3486]: Using interface ppp0
Dec 31 00:21:25 jan pppd[3486]: Connect: ppp0 <--> /dev/ttySHSF0
Dec 31 00:21:26 jan pppd[3486]: PAP authentication succeeded
Dec 31 00:21:26 jan kernel: [ 294.847467] PPP BSD Compression module registered
Dec 31 00:21:26 jan kernel: [ 294.917401] PPP Deflate Compression module registered
Dec 31 00:21:27 jan pppd[3486]: not replacing existing default route via 192.168.1.1
Dec 31 00:21:27 jan pppd[3486]: Cannot determine ethernet address for proxy ARP
Dec 31 00:21:27 jan pppd[3486]: local IP address 175.106.56.119
Dec 31 00:21:27 jan pppd[3486]: remote IP address 175.106.56.11
Dec 31 00:21:27 jan pppd[3486]: primary DNS address 208.67.222.123

Dec 31 00:29:39 jan dnsmasq[3806]: started, version 2.45 cachesize 150
Dec 31 00:29:39 jan dnsmasq[3806]: compile time options: IPv6 GNU-getopt no-ISC-leasefile DBus I18N TFTP
Dec 31 00:29:39 jan dnsmasq[3806]: no servers found in /var/run/dnsmasq/resolv.conf, will retry
Dec 31 00:29:39 jan dnsmasq[3806]: read /etc/hosts - 10 addresses

The /etc/resolv.conf and /etc/resolvconf/run/resolv.conf is ok:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
nameserver 208.67.222.123

This is my /etc/dnsmasq.conf:


http://www.2shared.com/file/ShhXtwRK/dnsmasq.html

any one can help please?
 
Old 12-30-2010, 09:57 PM   #2
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
Your dnsmasq.conf has no lines other than comment and empty lines; dnsmasq will not work until you configure it with at least a list of DNS servers.
 
Old 12-31-2010, 01:54 AM   #3
shams
Member
 
Registered: Jan 2004
Posts: 535

Original Poster
Rep: Reputation: 30
Thanks for reply catkin, there are nameservers in the /etc/resolv.conf and hosts in the /etc/hosts, i use the dnsmasq default configuration as this work for me in the fedora 12.
 
Old 12-31-2010, 02:25 AM   #4
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
Perhaps Fedora 12 has a dnsmasq.conf intended to work "out-of-the-box" and debian lenny doesn't. Perhaps 208.67.222.123 is not a good DNS server. Either way the power of dnsmasq is in being able to pick the best from a list of DNS servers. You could try changing #resolv-file= to resolv-file=/etc/resolv.dnsmasq.conf and creating /etc/resolv.dnsmasq.conf with a list of servers which should include all your ISP's because they should be the fastest plus the fastest public DNS servers from your location which can be found by running the script I posted in this LQ post. For starters you could use
Code:
nameserver 208.67.222.123
nameserver 4.2.2.1
nameserver 4.2.2.2
nameserver 4.2.2.3
nameserver 4.2.2.4
You probably also want to configure the local=<your local domain> line in dnsmasq.conf to avoid long delays while dnsmasq tries to resolve local names from remote DNS servers. Uncommenting log-queries will let you see what dnsmasq is doing by messages in /var/log/messages or whatever log file lenny is set up to use.

BTW you can list the effective content of dnsmasq.conf by running grep -E -v '(^$)|(^#)' /etc/dnsmasq.conf which will strip all the comments and empty lines. Can be used on any Linux config file following the same (common) comment format.
 
  


Reply



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
dnsmasq issues uwa45 Linux - Networking 6 12-21-2010 03:05 PM
DNSMASQ anyone? Help! JeffC1 Linux - Software 3 03-31-2009 10:23 AM
Dnsmasq and MX records? arfon Linux - Server 1 10-03-2008 05:58 AM
dnsmasq with Firestarter? sancho Linux - Networking 4 07-01-2006 03:45 PM
Dnsmasq dunkyb Linux - Software 0 03-16-2003 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:55 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