23,120
社区成员
发帖
与我相关
我的任务
分享
[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
----------------------------------------------------