LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNSMASQ has problems with 'resolv.conf' (https://www.linuxquestions.org/questions/linux-networking-3/dnsmasq-has-problems-with-%27resolv-conf%27-460097/)

Ashrack 07-01-2006 03:54 PM

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

acid_kewpie 07-02-2006 04:35 PM

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.

Ashrack 07-03-2006 11:16 AM

[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

acid_kewpie 07-03-2006 12:48 PM

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.

Ashrack 07-03-2006 12:58 PM

great. tanx. will try it tomorrow. I gotta attend to my GF here or else she's gonna be angry at me!!!

acid_kewpie 07-03-2006 01:03 PM

GF = GrapeFruit??


All times are GMT -5. The time now is 10:33 PM.