Called in rc.local or custom wireless networking scripts, dhcphosts.pl generates an /etc/hosts file for a host on a DHCP network, allowing the use of hostnames regardless of given IP addresses. The code can also be found at http://dual.home.comcast.net/perl/dhcphosts.txt
#!/usr/bin/perl
# dhcphosts.pl – by dual
#
# Generates an /etc/hosts file for a
# box on a DHCP network
#
# – [...]