LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Michael WARDLE <michael.wardle@adacel.com>
  To  : Chandrasekar V <vcs7173@yahoo.co.in>
  Date: Wed, 15 May 2002 12:06:49 +1000

Re: Configuring DHCP-DDNS on RHL7.2

Chandrasekar V wrote:
> Now I need to configure DDNS so that whenever the IP
> Address are leased to the client the Machine name
> should be automatically added to the DNS Server.

The procedure isn't as well documented as it should be.

To make your DHCP server automatically update your DNS database...

DHCPD configuration file (/etc/dhcpcd.conf):
+ ddns-update-style interim;
+ ddns-updates on;

DNS configuration file (/etc/named.conf):
zone "mydomain.com" IN
{
    type master;
    file <zonefile>;
+   allow-update { <hosts> };
}

(and similarly for the reverse zone)

You can also enable logging, hostname checking, update ACLs (deciding
which machines updates will be accepted from), and some other useful
features.  I'd try a web search using a search engine such as Google
for more details...
<http://www.google.com/search?hl=en&q=DHCP>
<http://www.google.com/search?hl=en&q=DHCP+DDNS>

In some situations, you may also need to get your hosts to say what
hostname they want.  On Unix systems, this is handled by the DHCP
client daemon such as pump or dhcpcd.  On my Red Hat 7.2 system, I had
to add "DHCP_HOSTNAME=<hostname>" to the dynamically configured
interface's configuration file
(/etc/sysconfig/network-scripts/ifcfg-eth0 in this case).

It's all pretty straightforward when you know what to do. :-)

The Webmin web-based administration tool <http://www.webmin.com>; has a
dynamic DNS configuration module that might be useful.

This group must've had a presentation on this very topic some time
ago, as there are notes here
<http://www.linuxsa.org.au/meetings/ddns-dhcp/ddns-dhcp.txt>;.  The
notes are quite brief, so I'm not sure how useful you'll find them.

I hope this helps

--
MICHAEL WARDLE
SGI Desktop & Admin Software
Adacel Technologies Limited


-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page