best way to go about dhcp

Hi, Posting a hypothetical.
Since my windows environment relies on a hosts file with addresses in said file,
what do you do when your environment is dhcp? Like if the IPs keep changing, whats to be done in the hosts file?

So the requirement is to be able to resolve a name to an IP address, to
connect to the host, right?

If you want dynamic, changing ip addresses, you probably want to have
the dhcp server update DNS (which means using DNS rather than hosts files)

Alternatively, make sure the ip addresses don't change - either set them
statically on the machine (outside the dhcp dynamic range), or configure
the dhcp server to allocate fixed addresses.

I don't use Windows, but I believe all those things are possible.

Richard

Yes, DNS is what people normally use to resolve hostnames to IP addresses.

Is there a module for dhcp scan?