Name Resolution Issues
- if some DNS queries work from client, but others don’t, then there is a more complex problem
- after:
- performing successful connectivity test by IP address
- verified host’s DNS resolvers are working
- target host or service still does not respond to pinging by name
- check:
- for a fault within the name resolution process
- after:
Name Resolution Methods
- To trouble shoot name resolution,
- establish exactly how the process works on that specific host
- host can use a variety of methods to resolve a name to an IP address
- establish exactly how the process works on that specific host
- name resolution methods:
- Check local name caches
- one complication is that there are different types of cache and separate caches for individual applications (i.e. web browsers)
- on Windows, use:
ipconfig /displaydnsto monitor DNS cacheipconfig /flushdnsto clear system DNS cache
- Check HOSTS
- HOSTS file is a static list of host name to IP address mappings
- local resolver is likely to try to use any HOSTS file mappings first
- or mappings might be cached automatically
- default location for HOSTS file is:
- Windows:
%SystemRoot%\system32\drivers\etc\ - Linux: usually in
/etc
- Windows:
- in most cases, HOSTS should not contain any entries
- other than the loopback address
- any static entries in HOSTS could be the cause of a name resolution issue
- file can be used for troubleshooting
- Verify DNS records using
nslookupordigtools- might be some discrepancy between:
- the records returned by the resolver
- the records configured on the authoritative DNS server that maintains the zone
- use these utilities to check what records are returned by the resolver
- if trying to connect to an Internet resource, compare:
- these records returned to those by public resolvers
- if trying to connect to an Internet resource, compare:
- consider whether clients have cached a record that has been changed recently
- reconfiguration of DNS records should be planned and implemented carefully to avoid caching problems
- might be some discrepancy between:
- Check local name caches
Info
- any text preceded by
#in HOSTS file is a comment- to verify a name resolution problem,
- edit the HOSTS file and place the correct name and IP address record in the file for the test host
- when you ping the name, success suggests a name resolution service problem