wtorek, 24 października 2017

Configurue Linux Mint / Ubuntu Linux to support .local domains and domains from local DNS

I had a problem where .local domains served from development server and resolved using local DNS server did not work.

To make it work, you don't need to modify /etc/resolv.conf

Here is the solution to this problem:

Go to
/etc/NetworkManager/NetworkManager.conf

find a line like this:
dns=dnsmasq

and comment it like this:
#dns=dnsmasq

Save/Close

Now open
/etc/avahi/avahi-daemon.conf

Find this line:
#domain-name=local

and change to:
domain-name=.alocal

Restart your machine and you are ready to go.

In theory it should be possible to make this work without restarting (by restarting just the proper services)

service avahi-daemon restart
service network-manager restart

But I restarted first and it was working so I'm not sure. Please let me know if it worked for you.