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 03-08-2004, 09:59 AM   #1
lapthorn
Member
 
Registered: Jul 2003
Location: Reading
Distribution: Red Hat
Posts: 89

Rep: Reputation: 16
DHCP and BIND


I have various machines on my network configured with static IP addresses that are held in DNS. These do not use DHCP. I have a few clients on my network that do use DHCP for IP configuration and have there own hostname set static.

How can I get Bind to amend DNS records for these dynamically allocated IP addresses?
 
Old 03-08-2004, 11:38 AM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
If you are using ISC's DHCPd v3.0, you can configure it to populate a DDNS-enabled BIND zone whenever a DHCP client requests an IP.

In dhcpd.conf:
ddns-domainname "foo.example";
ddns-rev-domainname "in-addr.arpa";
ddns-update-style interim;
ignore client-updates;
key dhcp-server { algorithm hmac-md5; secret "ASDF";}
zone foo.example. { primary 127.0.0.1; key dhcp-server;}
zone 0.168.192.in-addr.arpa. { primary 127.0.0.1; key dhcp-server;}

In named.conf:
zone "foo.example" {
type master;
file "foo.example.zone";
update-policy { grant dhcpd-server wildcard *.nxdomain.com. A TXT;};
};
zone "0.168.192.in-addr.arpa" {
type master;
file "0.168.192.in-addr.arpa.zone";
update-policy { grant dhcpd-server wildcard *.0.168.192.in-addr.arpa. PTR;};
};

See: O'Reilly's DNS & BIND Cookbook
 
  


Reply



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
DDNS Bind 9.0 / DHCP - mule Linux - Networking 2 01-06-2006 11:55 PM
configure bind ddns dhcp on Slackware djchris Linux - Networking 1 12-24-2004 02:42 AM
dhcp updating bind (not) dwater Linux - Networking 0 05-10-2004 03:17 AM
Dynamic DHCP/BIND Connection refused problem aglock Linux - Networking 4 04-28-2004 07:43 AM
BIND / DHCP on RH 7.2 RJC Linux - General 1 08-16-2002 02:43 PM

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

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