GOOGLE Search

Google
 

Monday, February 11, 2008

Linux Tip No.14: Locally resolve hosts

Locally resolve hosts

File: /etc/hosts

[root@proxy etc]# more hosts

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost

203.189.xxx.xxx proxy.jepoy.net

192.168.0.254 proxy

192.168.0.36 winxp

[root@proxy etc]# ping winxp

PING winxp (192.168.0.36) 56(84) bytes of data.

[root@proxy etc]# ping proxy

PING proxy (192.168.0.254) 56(84) bytes of data.

64 bytes from proxy (192.168.0.254): icmp_seq=0 ttl=64 time=0.092 ms

No comments: