Question: does nslookup use hosts file?
Answer: nslookup does NOT use hosts file but DNS. Try using ping instead and it will return the IP provided in your hosts file. Setup the ip for this domain in a real DNS Server.