[NTLUG:Discuss] quick and dirty dns lookups -vs-dhcp

Richard Geoffrion ntlug at rain4us.net
Tue Jul 16 08:19:50 CDT 2002


> >The windows box uses dhcp to get an internal network
> >address (192.168.1.x), so I really can't add it to
> >the hosts file.
> >
>
> For a simplistic reverse-dns lookup "solution", you can always add a
> name for each IP address that your dhcp server provides to its
> /etc/hosts. For example:
>
> 192.168.1.1 dhcp1.localnet
> 192.168.1.2 dhcp2.localnet
> 192.168.1.3 dhcp3.localnet

Are there any methods by which a server can reverse lookup ip addresses that
have been handed out by dhcp?  In other words, if my dhcp server hands out
an address, then future lookups on that address should resolve to whatever
hostname is present in the dhcpd.leases file.

Of course I say 'should', but it's more of a 'could?'  What about some way
to automatically populate the hosts file with assigned dhcp addresses?

Can you tell that I don't know what to ask because I don't know what's
possible?

Help?

-Richard





More information about the Discuss mailing list