Skip to content

Instantly share code, notes, and snippets.

@lnoering
Last active April 28, 2017 13:35
Show Gist options
  • Save lnoering/81eaff0561b6db40a30b to your computer and use it in GitHub Desktop.
Save lnoering/81eaff0561b6db40a30b to your computer and use it in GitHub Desktop.
DNSMASQ - Criar apenas um HOST para atender a todos os projetos.
## Config ##
# abrir as configurações do dnsmasq ( sudo vim /etc/dnsmasq.conf ) e adicionar #
address=/local.com.br/127.0.0.1
# reiniciar o dnsmasq #
sudo service dnsmasq restart
# editar o arquivo ( /etc/resolv.conf ) para incluir o local nameserver #
nameserver 127.0.0.1
# iniciar o dnsmasq ao ligar o pc #
systemctl enable dnsmasq.service
# arquivo hosts adicionar #
127.0.0.1 *.local.com.br
## Links ##
http://www.santiagolizardo.com/article/how-to-setup-wildcard-subdomains-in-linux#.VcyROXUVhBc
https://www.iceflatline.com/2010/02/how-to-install-and-configure-dnsmasq/
https://davejamesmiller.com/blog/installing-dnsmasq-wildcard-local-domains-debian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment