Add a new blog
May 13

Use /etc/hosts to direct wildcard domain name

You need to set up a DNS server. (install dnsmasq (is light) or bind (is rather heavy)). To install...

Ubuntu OS:

sudo apt-get install dnsmasq

In /etc/NetworkManager/dnsmasq.d/dnsmasq-localhost.conf




sudo /etc/init.d/dnsmasq restart

with Mac OS:

Install dnsmasq

brew update # Always update Homebrew and the formulae first

brew install dnsmasq

sudo brew services start dnsmasq

sudo brew services start dnsmasq

Configure dnsmasq

Its default configuration file is located at /usr/local/etc/dnsmasq.conf and contains examples of

Send us a message. We will reply as soon as we can.

Save your professional blogger profile.

Join our blogger group and earn more income.

Sign up Log in