Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-01-2006, 03:54 PM
|
#1
|
|
Member
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173
Rep:
|
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
|
|
|
|
07-02-2006, 04:35 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
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.
|
|
|
|
07-03-2006, 11:16 AM
|
#3
|
|
Member
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173
Original Poster
Rep:
|
[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.
|
|
|
|
07-03-2006, 12:48 PM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
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.
|
|
|
|
07-03-2006, 12:58 PM
|
#5
|
|
Member
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173
Original Poster
Rep:
|
great. tanx. will try it tomorrow. I gotta attend to my GF here or else she's gonna be angry at me!!!
|
|
|
|
07-03-2006, 01:03 PM
|
#6
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
GF = GrapeFruit??
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|