sh-2.05b# cat /etc/dhclient.conf
interface "eth0" { }
send fqdn.fqdn "mobilep4.home.";
#fully qualified domain name of the machine
send fqdn.encoded on;
send fqdn.server-update off;
#don't update the dns (it will be updated by dhcpd)
sh-2.05b# dhclient eth0
Internet Software Consortium DHCP Client V3.0pl2
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Listening on LPF/eth0/00:08:02:67:1e:6b
Sending on LPF/eth0/00:08:02:67:1e:6b
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.5.1
bound to 192.168.5.20 -- renewal in 5519 seconds.
sh-2.05b# ping mobilep4.home
PING mobilep4.home (192.168.5.20): 56 data bytes
64 bytes from 192.168.5.20: icmp_seq=0 ttl=64 time=0.103 ms
64 bytes from 192.168.5.20: icmp_seq=1 ttl=64 time=0.088 ms
--- mobilep4.home ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.088/0.096/0.103/0.008 ms
sh-2.05b# host 192.168.5.20
20.50.168.192.in-addr.arpa domain name pointer mobilep4.home.
sh-2.05b#
Now you (hopefully :) have a nice DHCP server that does dynamic updates to the DNS :) . Remember that your DHCP client must send the machine hostname when asking for an address or the DNS would not be updated. When working with dhclient you can use the "send fqdn.fqdn" option, with pump you can use "pump -h", with windows you have to go to LAN->Properties->Protocol->TCP/IP->Advanced->DNS and check if the "Register with DNS" box is checked. If you have any comments or want to add something, feel free to contact me
DISCLAIMER
No liability for the contents of this document can be accepted. Use the concepts, examples and other content at your own
risk. There may be errors and inaccuracies that may damage
your system. Proceed with caution, and although this is highly unlikely, the author does not and can not take any
responsibility for any damage to your system that may occur as a direct or indirect result of information that is
contained within this document. You are strongly recommended to make a backup of your system before proceed and
adhere to the practice of backing up at regular intervals.
|