Dynamically updating etchosts

To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Originally seeming to be a relatively simple task, managing the hosts file with Chef rose some interesting challenges.

You will need a dynamic dns provider, of which there are many, and they will provide tools for updating the DNS records - usually called automatically by your router or manually using a Desktop app.Here are the links to the hostsfile github repo and hostsfile on the Chef community website.Before writing this LWRP, I knew what I wanted the interface to look like.The kernel maintains the current (unqualified) hostname of the system.Before trying to set your hostname, it’s important to know how to tell when you’ve got it right.