Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2004 11:44:42 -0700
From:      Steven Stremciuc <steve@freeslacker.net>
To:        zhangweiwu@realss.com
Cc:        freebsd-net@freebsd.org
Subject:   Re: register DNS entry with dhclient
Message-ID:  <403CED1A.7030704@freeslacker.net>
In-Reply-To: <Law11-F41qZGUTwSIQK00001af8@hotmail.com>
References:  <Law11-F41qZGUTwSIQK00001af8@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Zhang Weiwu wrote:

> I thought it won't be difficult to let FreeBSD register domain name.
> after read the specific part of dhclient.conf(5), I created a
> /etc/dhclient.conf file:
> ------
> #my hostname is thinkpad.lan, 'lan' is our default search domain
> send fqdn.fqdn "thinkpad.lan";
> send fqdn.server-update on;
> ------

As I understand it the FreeBSD dhclient is not registering the domain
name with the DNS server. It just sends it to the DHCPd and the DHCPd
updates the DNS server. At least that's how it works on my LAN.

I'm running FreeBSD 4.9. here's my entire /etc/dhclient.conf:
-------
interface "em0" {
send host-name "professorfrink";
}
-------

note: according to man pages this expects hostname in rc.conf to be blank
example entry in /etc/rc.conf:

hostname=""

my dhcp server updates the dns entry and it works out great. here's me
pinging professorfrink from another box:

barney# ping professorfrink
PING professorfrink.home.freeslacker.net (192.168.100.185): 56 data bytes
64 bytes from 192.168.100.185: icmp_seq=0 ttl=63 time=0.584 ms
64 bytes from 192.168.100.185: icmp_seq=1 ttl=63 time=0.409 ms
64 bytes from 192.168.100.185: icmp_seq=2 ttl=63 time=0.459 ms

hope that helps and good luck,

Steven Stremciuc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?403CED1A.7030704>