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):
(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.
/etc/gai.conffile? On dual stack machines this can change whatgetaddrinfo(3)returns, which is whatahostsuses.{}icon, or by adding a line containing three backticks before AND after the text.