Yunbao VPN

Usage and troubleshooting

Compare Linux system resolution with DNS through NSS

System address results can come from hosts files or other name services. Identify the lookup path before explaining differences from direct DNS queries.

Content updated:

Steps

  1. In the service environment run getent ahostsv4 example.com with the actual hostname, recording the time and all addresses.
  2. Read the hosts: line in /etc/nsswitch.conf and relevant /etc/hosts entries without changing them.
  3. If dig is already available, run dig @RESOLVER example.com A against an administrator-selected resolver. Align hostname, record type, and time before comparing unique IPv4 sets.

Interpretation

getent uses NSS, so its output is not a direct authoritative DNS query. ahostsv4 may repeat addresses for socket types; compare unique IPs rather than counting output lines.

Next steps and limits

Retain raw results and lookup configuration for investigation of local mappings, caches, or resolver paths. Treat empty results as unknown. Applications with their own resolvers may differ from system results.

References and further reading

Back to all guides

Ready to connect?

Get the app from the official website and follow the instructions for your device.

Download ↓