How to fix .local dns resolution on Fedora 23
Most likely in your nsswitch file you have a line like
hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname mymachines
The default settings instructs the pc to resolve all .local addresses with multicast dns instead of normal dns.. which is not always what we want, plus if no result is found the NOTFOUND part just gives up. To fix we can just remove those parts. In my case I just use
hosts: files dns myhostname mymachines
UPDATE (June 7th 2016)
Instead of removing the mdns part completely we can just move ‘dns’ to be before it. For example:
hosts: files dns mdns4_minimal [NOTFOUND=return] myhostname mymachines
Restart your machine and your addresses should resolve properly
Recent Comments