DNS & DHCP

Ingo T. Storm bind at computerbild.de
Wed Jul 26 07:09:00 UTC 2000


Hi,

> Would anybody be able to guide me in the general direction of finding
> information for setting up DHCP on a server to co-ordinate with DNS,

The fast track (with bind 8.2.2 and ISC dhcpd >=3.0b1pl13):

Put your DHCP clients in their own subdomain and zone (e.g. dhcp.buxtwon.de
where buxtown.de is the static zone). Then add a subnet declaration in
dhcpd.conf

dhcpd.conf:

subnet 192.168.42.0 netmask 255.255.255.0 {
        option routers 192.168.42.254;
        option domain-name "dhcp.buxtown.de";
        ddns-rev-domainname "in-addr.arpa";

    range 192.168.42.128 192.168.42.191;
}
Allow updates from the dhcp server
named.conf to the forward and reverse zones:

zone "dhcp.buxtown.de"{
        type master;
        file "db.dhcp.buxtown.de";
        allow-update{
                127.0.0.1;
                192.168.42.1;
        };
};

zone "42.168.192.in-addr.arpa"{
        type master;
        file "db.192.168.42";
        allow-update{
                127.0.0.1;
                192.168.42.1;
                192.168.44.1;
        };
};

N.B.: You will have to add static RRs to the reverse zone before opening it
for updates or by using nsupdate. Of course you could split the /24-net in
chunks for static and dynamic and reverse zones, too, but I am still not
comfortable with RFC 2317;-)

I am afraid the rest is left to ardent study of the dhcpd readme, the "DHCP
Handbook" (Ted Lemon/Ralph Droms) and of course "DNS and Bind" (Albitz/Liu)
(Cricket: when can we expect the 4th ed.?;-).

Good luck!

Ingo




More information about the bind-users mailing list