FreeBSD DHCP client not working with dynamic DNS

Emanuel Strobl Emanuel.Strobl at gmx.net
Mon Nov 8 12:52:55 PST 2004


Am Montag, 8. November 2004 18:32 schrieb Gerard Samuel:
> 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.

Add 'send host-name "gladiator";' to /etc/dhclient.conf or if you want to be 
more correct:
interface "em0" {
    send host-name "gladiator";
}

Dont forget to change the em0 interface to what your interface really is.

-Harry

>
> 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 --
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041108/2e93b4fc/attachment.bin


More information about the freebsd-questions mailing list