0

Here is what I have on an opensuse laptop:

$ping www.google.com
...Name or service not known

$nslookup www.google.com
Server: 80.80.80.80
...
..
Non-authorative answer:
Name: www.google.com
Address: 216.58.215.100
...

$dig google.com Also works fine

My resolv.conf has nameserver 80.80.80.80 (as used by nslookup and dig)

My nsswitch has hosts: files dns

Any ideas on what could be wrong?

9
  • Which browser are you using?
    – hardillb
    Commented Oct 11, 2019 at 18:21
  • try nc google.com 80. once it connects, type GET / and see if you get any output
    – john doe
    Commented Oct 11, 2019 at 18:34
  • Used firefox and falkon.
    – BrianR
    Commented Oct 11, 2019 at 19:07
  • $nc google.com 80. Get me a nc: getaddrinfo for host google.com port 80 Name or service not known
    – BrianR
    Commented Oct 11, 2019 at 19:08
  • 1
    Do strace -e open ping www.google.com. Does it successfully open libnss_dns? If it doesn't even try to open that library then there's probably a typo or some other problem in nsswitch.conf. Commented Oct 11, 2019 at 19:44

1 Answer 1

0

So my current answer is to stop the nscd service. Seems many command (e.g. curl) checks there first but have workarounds. Ping will fail as it only checks with nscd. So far everything works.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .