23,217
社区成员




[root@CentOS ~]# cat /etc/resolv.conf
#nameserver 10.110.108.1
[root@CentOS ~]# ./gethost
----------------------------------------------------
gethostbyname: Host name lookup failure
[root@CentOS ~]# vi /etc/resolv.conf
[root@CentOS ~]# cat /etc/resolv.conf
nameserver 10.110.108.1
[root@CentOS ~]# ./gethost
----------------------------------------------------
Host name : www.a.shifen.com
IP Address : 220.181.6.175
----------------------------------------------------