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.

2 komentarze:

  1. bardzo ciekawy blog, zawierający sporo przydatnych informacji - niestety wygląda że to już koniec - może jednak zmienisz zdanie i jeszcze tu wrócisz ?

    OdpowiedzUsuń
    Odpowiedzi
    1. Publikuję teksty związane z problemami, z którymi sam walczyłem i co do których widać, że w internecie trudno spotkać dobre rozwiązanie. Bez obaw to nie jest koniec. Ostatnio jestem bardzo zadowolony z Linuksa bo jest bezproblemowy. Jeśli coś się pojawi, to na pewno opiszę

      Usuń