Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2004 21:52:43 +0100
From:      Emanuel Strobl <Emanuel.Strobl@gmx.net>
To:        freebsd-questions@freebsd.org
Cc:        Gerard Samuel <fbsd-questions@trini0.org>
Subject:   Re: FreeBSD DHCP client not working with dynamic DNS
Message-ID:  <200411082152.49291.Emanuel.Strobl@gmx.net>
In-Reply-To: <418FADBC.6090907@trini0.org>
References:  <418FADBC.6090907@trini0.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2429809.N3AsI8C1da
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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 b=
e=20
more correct:
interface "em0" {
    send host-name "gladiator";
}

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

=2DHarry

>
> 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=3D"DHCP"
> -- snip --
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"

--nextPart2429809.N3AsI8C1da
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQBBj9yhBylq0S4AzzwRAr3DAJ9v43nxfH5PRRw4iuwdSMJXYhz85wCeIP1t
UdpciiC5LdjWI2TjtPcn6yw=
=BmoW
-----END PGP SIGNATURE-----

--nextPart2429809.N3AsI8C1da--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411082152.49291.Emanuel.Strobl>