1

I'm connected by PPTP VPN to another network, mainly a windows network. Running Ubuntu 16.04.1, freshly installed.

Most of the things I would like to connect to are on a .local domain. I find that any application that does a getaddrinfo during the connection phase to the .local domain will fail:

Remmina, for example, gives this error:

tcp_connect: getaddrinfo (Name or service not known) Error: protocol security negotiation or connection failure

I set up one workstation in DNS on both a .local and a .com domain and they both resolve fine:

rduz@henry:~$ nslookup bidsk0127.redacted.local
Server:     127.0.1.1
Address:    127.0.1.1#53

Name:   bidsk0127.redacted.local
Address: 172.16.5.155

rduz@henry:~$ nslookup bidsk0127.redacted.com
Server:     127.0.1.1
Address:    127.0.1.1#53

Name:   bidsk0127.redacted.com
Address: 172.16.5.155

I can connect fine to the .com name, no getaddrinfo error. I cannot connect to the .local, it shows the getaddrinfo error.

In the old days, on SLES as I recall, we would update /etc/host.conf to have a line that said 'mdns off' to get .local resolution to work. man host.conf doesn't show that as a valid option anymore.

Is there some way to fix things up so that the getaddrinfo call can correctly resolve a .local name?

Thank you.

Regards, Rich

| improve this question | | | | |
1

More googling and I found the answer. In my case, I don't want mdns, so I updated /etc/nsswitch.conf as follows:

root@henry:/etc# diff nsswitch.conf.orig nsswitch.conf
12c12
< hosts:          files mdns4_minimal [NOTFOUND=return] dns
---
> hosts:          files dns
| improve this answer | | | | |
  • With my limited knowledge of nsswitch.conf I would have expected files mdns4_minimal dns to be what you were looking for. Any reason that wouldn't work? – kasperd Dec 30 '16 at 13:46
  • Sorry, I missed your comment from way back in December. I don't know but it looks like a reasonable thing to try. I'll do so if I get a moment. – Rich Duzenbury Sep 7 '17 at 16:26
  • I can confirm that files mdns4_minimal dns works. – digory doo Apr 24 '18 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.