Sync /etc/hosts file across multiple machines
-
02-10-2019 - |
Pergunta
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.
Solução
Instead of having a /etc/hosts file for each machine you might instead consider using a DNS server.
Outras dicas
You can run rsync on any of the macs/linux, and deltacopy on windows
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow