Can only ping hostname but not a domain

1

Ubuntu Gnome 13.10

What I can do:

  • ping hostnameX
    • Response: PING hostnameX.domain.local (10.0.0.1)
  • nslookup hostnameX
    • Response: Name: hostnameX.domain.local; Address: 10.0.0.1
    • Response coming from: Server: 127.0.1.1; Address: 127.0.1.1
  • nslookup hostnameX.domain.local
    • Response: Name: hostnameX.domain.local; Address: 10.0.0.1
    • Response coming from: Server: 127.0.1.1; Address: 127.0.1.1

What I CANNOT do:

  • ping hostnameX.domain.local
    • Response: ping: unknown host hostnameX.domain.local

This happens with all hostnames within the domain

This is my /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search domain.local

I already tried the same with dnsmasq disabled, without success...

UPDATE: I also tried some other distros (debian and opensuse), and they all have the same problem. So it looks to me as a general network problem, but what exactly...

Any clues?

intrixius

Posted 2014-01-16T12:08:10.050

Reputation: 113

so when your nslookups succeed, do they indicate your that the nameserver responding to the query is the one running on 127.0.1.1? – Frank Thomas – 2014-01-16T12:42:40.337

@FrankThomas I added this to my question – intrixius – 2014-01-16T13:01:44.140

What does your domain.local zone look like? – NickW – 2014-01-16T15:20:17.447

@NickW do you mean on the dns server? I don't have access to the server unfortunately – intrixius – 2014-01-16T17:47:11.773

If 127.0.0.1 is serving domain.local, you should have access to it? – NickW – 2014-01-16T17:51:19.937

@NickW no that IP is my localhost, which is serving dnsmasq... – intrixius – 2014-01-17T08:22:18.530

Answers

0

While trying to join the windows domain with LikeWise, I found a note on this page in the troubleshooting section, which states to remove 'mdns4' entry from the 'hosts:' part in /etc/nsswitch.conf when trying to join an AD domain with a .local syntax. I did this and suddenly I could ping (and therefore also access) FQDNs within the .local domain ...

A second source is describing the same problem and sollution

intrixius

Posted 2014-01-16T12:08:10.050

Reputation: 113