register DNS entry with dhclient
Steven Stremciuc
steve at freeslacker.net
Wed Feb 25 10:44:35 PST 2004
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
More information about the freebsd-net
mailing list