Results 1 to 2 of 2
I have the following line added to /etc/hosts:
Code:
192.168.0.253 centos
When I navigate to "centos" in a browser, a DNS lookup for "centos" is performed before it resolves the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-18-2009 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 9
Linux does DNS lookup before it looks at hosts file.
I have the following line added to /etc/hosts:
When I navigate to "centos" in a browser, a DNS lookup for "centos" is performed before it resolves the IP in my hosts file. Is this normal behavior?Code:192.168.0.253 centos
Edit: It seems that only Opera does this...wget goes straight to the host file. Strange, will have to investigate Opera further.
- 09-19-2009 #2
What does your file '/etc/host.conf' have?
Code:etc $ cat host.conf order hosts,bind


Reply With Quote
