LinuxQuestions.org
Register a domain and help support LQ
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 05-18-2007, 11:52 AM   #1
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
How do I auto-update client DNS Addresses with DHCPd


I have the following configuration:
Code:
==INTERNET==Firewall==Private LAN
The internet facing NIC gets its IP address dynamically.

I would like to configure my firewall to be a DHCP server and serve all the IPs for my Private LAN.

In the dhcpd.conf configuration you can only pass static DNS server names to the clients.

Is there anyway that dhcpd could dynamically assign the DNS servers I'm getting from the internet NIC to the clients on the Private LAN?

Would it be easier to setup an internal DNS Server?

Thanks.
 
Old 05-18-2007, 12:02 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
You want to do this in your local DNS server rather than DHCPD. The reason is that DHCPD will not update until the lease is renewed (could be days). Using a local DNS server, your clients just point to your DNS, and it forwards to the correct servers.

I use a script to get the DNS information from the firewall router via wget and update my local DNS server via sed. I use both a triggered execution (when the router reports to my syslog that it has received an IP address update), and periodically (in case the update is missed). There are multiple scripts, and they are specific to the set of software and hardware that I use; you will not find a generic implementation.

Conceptually, it's very straightforward though so you can create your own scripts or have someone create them for you and the software / hardware combination you are using.

Last edited by macemoneta; 05-18-2007 at 12:04 PM.
 
Old 05-18-2007, 12:34 PM   #3
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Original Poster
Rep: Reputation: 30
I really appreciate your response. I figured I should setup a local DNS server.

Are there any good tutorials out there that will allow me to easily set this configuration up, including setting up the forwarding of DNS as well as any IPTables rules necessary?

Thanks.
 
Old 05-18-2007, 01:07 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
There's a lot of online documentation for BIND. Basically, you will be setting up a forwarding/caching nameserver (so you are looking at configuration of the "forwarders" option). There's a good tutorial here.
 
  


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
dhcpd config for mac addresses jqcaducifer Linux - Networking 4 10-03-2006 01:34 AM
dhcpd assigns ip addresses backwards qartis Linux - Networking 5 08-08-2005 06:59 AM
DHCPD Not Giving Out Addresses Trano Linux - Networking 4 04-16-2005 12:12 AM
How to update dns with dhcpd? rubik-wuerfel Linux - Networking 4 05-09-2004 07:14 AM
How DNS can be configured , to update records dynamically; when using DHCPd?????????? mwj Linux - Software 3 03-20-2004 11:01 AM


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