安装torque出现的问题
发表于 : 2014-03-13 23:32
host不到本地主机名
/etc/resolv.conf 文件内容如下:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
/etc/network/interfaces 文件内容如下:
auto lo
iface lo inet loopback
/etc/hosts 文件内容如下:
127.0.0.1 localhost
127.0.1.1 CYWei
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
命令查看host情况,问题如下:
wcy@CYWei:~$ sudo gedit /etc/resolv.conf
wcy@CYWei:~$ sudo gedit /etc/network/interfaces
wcy@CYWei:~$ sudo gedit /etc/hosts
wcy@CYWei:~$ host localhost
localhost has address 127.0.0.1
localhost has IPv6 address ::1
wcy@CYWei:~$ host 127.0.0.1
1.0.0.127.in-addr.arpa domain name pointer localhost.
wcy@CYWei:~$ host CYWei
Host CYWei not found: 3(NXDOMAIN)
wcy@CYWei:~$ host 127.0.1.1
Host 1.1.0.127.in-addr.arpa. not found: 3(NXDOMAIN)
wcy@CYWei:~$ hostname
CYWei
wcy@CYWei:~$
host 127.0.0.1 或者 localhost 可以通
但是host 127.0.1.1 或者 CYWei(主机名)不通
/etc/resolv.conf 文件内容如下:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
/etc/network/interfaces 文件内容如下:
auto lo
iface lo inet loopback
/etc/hosts 文件内容如下:
127.0.0.1 localhost
127.0.1.1 CYWei
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
命令查看host情况,问题如下:
wcy@CYWei:~$ sudo gedit /etc/resolv.conf
wcy@CYWei:~$ sudo gedit /etc/network/interfaces
wcy@CYWei:~$ sudo gedit /etc/hosts
wcy@CYWei:~$ host localhost
localhost has address 127.0.0.1
localhost has IPv6 address ::1
wcy@CYWei:~$ host 127.0.0.1
1.0.0.127.in-addr.arpa domain name pointer localhost.
wcy@CYWei:~$ host CYWei
Host CYWei not found: 3(NXDOMAIN)
wcy@CYWei:~$ host 127.0.1.1
Host 1.1.0.127.in-addr.arpa. not found: 3(NXDOMAIN)
wcy@CYWei:~$ hostname
CYWei
wcy@CYWei:~$
host 127.0.0.1 或者 localhost 可以通
但是host 127.0.1.1 或者 CYWei(主机名)不通