Windows
 
nslookup
 
H:\>nslookup
Default Server:  hostname.domain3.domain2.domain1.com
Address:  10.35.1.21
 
Ref: WINDOWS\system32\drivers\etc\hosts
 
Linux
 
/etc/resolv.conf
/etc/hosts