Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying /etc/hosts? 1

Status
Not open for further replies.

cpjust

Programmer
Sep 23, 2003
2,132
0
0
US
Hi,
I added an entry to my /etc/hosts file such as:
Code:
127.0.0.1   server.domain.com
but when I do a nslookup on server.domain.com it still returns the real address instead of 127.0.0.1.

Do I need to restart the network services for it to re-read the /etc/hosts file or is there some other reason why it's doing that?
 
Thanks, ping didn't display the IP Address, but traceroute did. Although now I have to find another reason why my program isn't working right...
 
One of these two should do it using "[tt]ping[/tt]"...
Code:
ping -s -n server.domain.com
ping -s -v server.domain.com


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top