FreeBSD DHCP client not working with dynamic DNS
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 -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD DHCP client not working with dynamic DNS
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD DHCP client not working with dynamic DNS
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 -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] pgpfDwyfIwce4.pgp Description: PGP signature
Re: FreeBSD DHCP client not working with dynamic DNS
Emanuel Strobl wrote: 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. Worked like a charm. Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]