FreeBSD DHCP client not working with dynamic DNS
Gerard Samuel
gsam at trini0.org
Mon Nov 8 10:08:21 PST 2004
Gerard Samuel wrote:
> Box 1: Firewall/DHCP Server/DNS (FreeBSD 5.3)
> Box 2: DHCP Client (FreeBSD 5.3R2)
>
> When I boot Box 2, it gets its IP address, but DNS doesn't
> get updated, so Box 2 is unknown to the LAN via its hostname.
> If I boot a windows box (tested with 2000/XP), and I've tested with a
> networked printer, they get an IP address, and DNS is updated
> for those devices.
>
> Any help would be appreciated.
> Thanks
>
> ---
> Box 1
>
> /usr/local/etc/dhcpd.conf
> --
> option domain-name "trini0.org";
> option domain-name-servers 192.168.0.1;
> option subnet-mask 255.255.255.0;
>
> default-lease-time 3600;
> max-lease-time 86400;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
> range 192.168.0.10 192.168.0.20;
> option routers 192.168.0.1;
> }
>
> # DNS
> ddns-update-style interim;
> ddns-domainname "trini0.org";
> ddns-rev-domainname "in-addr.arpa";
>
> key DHCP_UPDATER {
> algorithm HMAC-MD5.SIG-ALG.REG.INT;
> secret my_key;
> };
>
> zone trini0.org. {
> primary 192.168.0.1;
> key DHCP_UPDATER;
> }
>
> zone 0.168.192.in-addr.arpa. {
> primary 192.168.0.1;
> key DHCP_UPDATER;
> }
> --
>
> /var/named/etc/namedb/named.conf
> -- snip --
> key DHCP_UPDATER {
> algorithm HMAC-MD5.SIG-ALG.REG.INT;
> secret my_key;
> };
>
> zone "." {
> type hint;
> file "named.root";
> };
>
> zone "0.0.127.IN-ADDR.ARPA" {
> type master;
> file "master/localhost.rev";
> };
>
> zone "trini0.org" {
> type master;
> file "master/trini0.org";
> allow-update { key DHCP_UPDATER; };
> };
>
> zone "0.168.192.in-addr.arpa" {
> type master;
> file "master/trini0.org.rev";
> allow-update { key DHCP_UPDATER; };
> };
> -- snip --
>
>
> Box 2
> --
> /etc/rc.conf
> -- snip --
> ifconfig_fxp0="DHCP"
> -- snip --
Im changing my example of Box 2's /etc/rc.conf as its pertinent ->
hostname="gladiator.trini0.org"
ifconfig_fxp0="DHCP"
More information about the freebsd-questions
mailing list