best way to go about dhcp

22 views
Skip to first unread message

lpesc...@google.com

unread,
May 15, 2018, 12:56:54 PM5/15/18
to Ansible Project
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?

Richard Hector

unread,
May 16, 2018, 7:21:02 AM5/16/18
to ansible...@googlegroups.com
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

Jordan Borean

unread,
May 16, 2018, 7:43:58 AM5/16/18
to Ansible Project
Yes, DNS is what people normally use to resolve hostnames to IP addresses.

Larry Pescatore

unread,
May 16, 2018, 8:58:22 AM5/16/18
to ansible...@googlegroups.com
Is there a module for dhcp scan?

Sent from my iPhone. Please excuse any typos.


On May 16, 2018, at 4:43 AM, Jordan Borean <jbor...@gmail.com> wrote:

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

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/Q3STw5fK8NY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/04a58475-2e3e-44de-b89c-bd9277778adc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages