LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-13-2009, 04:16 PM   #1
hujuice
LQ Newbie
 
Registered: Oct 2006
Distribution: Gentoo
Posts: 3

Rep: Reputation: 1
Question ppp, dnsmasq, dhcp: a triple chicken-and-egg problem


This issue is so simple to make me laugh.
It is a 'home' problem, born amongst simple 'home' solutions.
It is a triple chicken-and-egg problem.

I connect to the Internet via ppp (via a WCDMA modem) and my box has naturally the usepeerdns directive set to on: the ppp process overwrite the /etc/resolv.conf file when connected.

I have also a laptop and, as a laptop, I want to keep it as dhcp client. dnsmasq is a perfect solution to give dhcp addresses and /etc/hosts and DNS forwarding.

But lap can be connected to the wired network (faster, to distcc, I'm a Gentoo user) or to the wifi network (comfortable, to relax on the sofa).
Since the eth network and the wlan network are separated, my box doesn't know the lap IP address (it isn't in the /etc/hosts file).

dnsmasq does know it (dnmasq gave it), but I cannot give localhost as dns server to the box, because ppp will overwrite it. And I cannot disable the usepeerdns directive, because it is my Internet DNS.

Using OpenDNS is a solution, but not what I like.

At this moment, I changed the /etc/ppp/ip-up.d/40-dns.sh file (a startup service file), but it is a rough patch, it should be a configuration task.

Am I stupid?
Any ideas to solve it better?

Regards,
HUjuice
 
Old 04-14-2009, 01:37 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by hujuice View Post
Am I stupid?
Any ideas to solve it better?
No, but it might just be easier to bridge the networks and assign a static ip instead of dhcp for the laptop.
 
  


Reply

Tags
dhcp, dnsmasq, ppp



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
The chicken, or the egg...... ErrorBound General 9 06-19-2007 05:56 AM
Partition root : chicken or egg? snoozing SUSE / openSUSE 11 02-04-2006 09:08 AM
compiler chicken and egg problem novasoy Linux - Newbie 4 06-24-2004 01:18 PM
I'm having a chicken (motherboard) and egg (video card) problem. mrwritestuff Linux - Hardware 3 10-06-2003 05:33 PM
Which came first...the chicken of the egg? ugenn Linux - Newbie 3 04-13-2002 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:22 AM.

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