LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-01-2006, 03:54 PM   #1
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Rep: Reputation: 30
DNSMASQ has problems with 'resolv.conf'


I've set up internet thru 'pppoeconf'
But whenever I establish a connection
'pon adsl'
the '/etc/resolv.conf' gets overwritten with this:
Code:
nameserver 193.189.160.23
nameserver 193.189.160.13
and then DNSMASQ no longer resolves DNS on LAN. So I must manually add this line to '/etc/resolv.conf' in order for DNSMASQ to start resolving DNS on the LAN again.
Code:
nameserver 127.0.0.1

Last edited by Ashrack; 07-03-2006 at 11:09 AM. Reason: to be more clear
 
Old 07-02-2006, 04:35 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
what does the output of dnsmasq say when you run it in a verbose foreground mode> if it doesn't like resolv.conf it'll be sure enough to just tell you straight away. also what did the resolv.conf file say before it was overwritten. i'm fairly sure that if it sees a 127.0.0.1 entry in the file, it'll dismiss it outright for fairly obvious reasons, so you're left with an identical file basically. also my favourite is to use ethereal or tcpdump to see exactly what it does attempt to do to perform a resolution.
 
Old 07-03-2006, 11:16 AM   #3
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Original Poster
Rep: Reputation: 30
[QUOTE=acid_kewpie]
Quote:
what does the output of dnsmasq say when you run it in a verbose foreground mode> if it doesn't like resolv.conf it'll be sure enough to just tell you straight away.
how do I run it like that?

Quote:
also what did the resolv.conf file say before it was overwritten.
when I disconnect my internet the 'resolv.conf' gets changed to this:
Code:
nameserver 192.168.1.1
which is the ip address of my PPPOE ruter!!!

Quote:
i'm fairly sure that if it sees a 127.0.0.1 entry in the file, it'll dismiss it outright for fairly obvious reasons, so you're left with an identical file basically.
what are those obvious reasons??
Quote:
also my favourite is to use ethereal or tcpdump to see exactly what it does attempt to do to perform a resolution.
how do I use them, never heard of those 2 tools

Last edited by Ashrack; 07-04-2006 at 11:31 AM.
 
Old 07-03-2006, 12:48 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
verbose output... not sure, look at the manpage, maybe -V, maybe -d can't say.

obvious reasons... well you ARE 127.0.0.1 what use is it to dnsmasq being told to use itself?? just get stuck in a stupid loop.

tcpdump has a great manpage, as does ethereal. you'll probably prefer ethereal if you want a nice gui and all that. so just check the docs, learn a little and you'll be fine i'm sure.
 
Old 07-03-2006, 12:58 PM   #5
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Original Poster
Rep: Reputation: 30
great. tanx. will try it tomorrow. I gotta attend to my GF here or else she's gonna be angry at me!!!
 
Old 07-03-2006, 01:03 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
GF = GrapeFruit??
 
  


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
DNS Hosts.conf or resolv.conf problem mac_casey Suse/Novell 0 03-26-2006 09:21 AM
Who changes /etc/resolv.conf? lmp Debian 4 11-29-2005 08:08 AM
dnsmasq.conf exvor Linux - Software 2 06-24-2005 05:28 PM
Problems with /etc/resolv.conf gregf50 Linux - Newbie 8 04-13-2005 05:10 PM
/etc/resolv.conf and dnsmasq on a gateway win32sux Linux - Networking 12 02-27-2005 02:43 PM


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