LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-30-2004, 03:17 PM   #1
Fark
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0
forward dns from dhcp to dhcp


I'm a bit stumped here... hopefully you guys can point me in the right direction.

Situation is this: I have a Slackware-box (lets call it A) getting IP and DNS from a DHCP-server (lets call this one B), and this box (that's A) is also acting as a DHCP-server to a bunch of other machines on a private network. How would I forward the DNS I get from the first DHCP (box B) to the second (box A), so that the machines on the private network (lets call one of them C) knows about it?

In other words, I get the nameserver(s) from box B into /etc/resolv.conf on box A, and I want these IP:s in my /etc/dhcpd.conf on box A, so that box C can use it.

Is there a preferred way of doing this, or should I start script-hacking?

Last edited by Fark; 03-30-2004 at 03:19 PM.
 
Old 03-30-2004, 03:25 PM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
1. If your DNS settings obtained from B are the same all the time then you could add them manually to the dhcpd config of machine A.

2. You could set up A as a caching DNS for your private network.
 
Old 03-30-2004, 03:31 PM   #3
Fark
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
1. If your DNS settings obtained from B are the same all the time then you could add them manually to the dhcpd config of machine A.
Yes, this is what I do now. But I can't be sure that the DNS settings from B always stays the same.

Quote:
2. You could set up A as a caching DNS for your private network.
How would I do that?
 
Old 03-31-2004, 10:40 AM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Have a look at this page.
http://www.siliconvalleyccie.com/lin...dns-static.htm

Usually the installations och bind (the DNS server comes configured for caching DNS) If not then make a quick search for caching DNS on google.
 
  


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
DHCP and DNS Likosin Linux - Networking 1 11-13-2004 11:27 PM
DHCP / DNS Help!! muzicman82 Linux - Wireless Networking 4 02-25-2004 04:59 PM
Dns / Dhcp TheRealDeal Linux - Networking 9 09-19-2003 04:57 AM
DNS with DHCP upr8830 Linux - Networking 3 06-18-2003 11:39 PM
dhcp and dns tangle Linux - Networking 7 09-26-2002 06:20 PM


All times are GMT -5. The time now is 10:50 AM.

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