On 16/05/18 04:56, lpescatore via Ansible Project wrote:
> 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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/59050fa8-5fba-5580-8e2c-b2e0e9bb7699%40walnut.gen.nz.
For more options, visit https://groups.google.com/d/optout.

Reply via email to