1

One of my computers won't resolve a domain that the local gateway resolves with a CNAME. The nsswitch config is identical on both machines. I just can't work out what the cause is.

computer A (works):

$ getent ahosts cloud.$domain 10.12.0.2 STREAM rockpro64 10.12.0.2 DGRAM 10.12.0.2 RAW 

computer B (doesn't):

$ getent ahosts cloud.$domain $ # exit code 2 

corresponding dns requests are issued and answered (during the call to getent): wireshark screenshot (OPT disables dnsseq-rr)

interestingly (computer B):

getent ahostsv4 cloud.$domain 10.12.0.2 STREAM rockpro64 10.12.0.2 DGRAM 10.12.0.2 RAW 

nsswitch.conf on both machines:

.. hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns .. 

from dnsmasq's config (on the gateway):

cname=cloud.$domain,rockpro64 

EDIT:

/etc/gai.conf is identical on both machines and consists only of comments.

4
  • Are these dual-stack IPv4+IPv6 machines? Do you have an /etc/gai.conf file? On dual stack machines this can change what getaddrinfo(3) returns, which is what ahosts uses. Commented Oct 16 at 20:49
  • 2
    Please don't post images of text. Copy and paste the text itself into your question and format it as code by selecting it and pressing Ctrl-K or by using the editor's {} icon, or by adding a line containing three backticks before AND after the text. Commented Oct 17 at 0:11
  • @StephenHarris thank you for the info! i didn't know about that file. the files are identical on both machines, consisting only of comments. Commented Oct 17 at 16:32
  • @cas I tried the text export of wireshark but it's very verbose. Do you know of a way to get the synopsis like shown in the screenshot? Commented Oct 17 at 16:40

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.