Sync /etc/hosts file across multiple machines
-
02-10-2019 - |
Question
Does anyone know an easy way to synchronize your /etc/hosts file across multiple machines? I use a MacBook, a MacMini, a Windows Machine as well as a Linux VM to develop websites with so it would be ideal to have all of them have the same hosts config.
Solution
Instead of having a /etc/hosts file for each machine you might instead consider using a DNS server.
OTHER TIPS
You can run rsync on any of the macs/linux, and deltacopy on windows
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow