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. localhost.localdomain localhost proxy winxp

[root@proxy etc]# ping winxp

PING winxp ( 56(84) bytes of data.

[root@proxy etc]# ping proxy

PING proxy ( 56(84) bytes of data.

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

No comments: