|
|
我看到了/etc/resolv.conf 有一些域名地址
- joey@debian:~$ cat /etc/resolv.conf
- search
- nameserver 60.191.244.5
- nameserver 60.191.244.2
- nameserver 192.168.1.10
复制代码
在/etc/network/interfaces 的ifup static ip设置里面 有一个我自己设置的dns-nameservers 192.168.1.10
- # The primary network interface
- auto eth0
- iface eth0 inet static
- address 192.168.1.37
- netmask 255.255.255.0
- network 192.168.1.0
- broadcast 192.168.1.255
- gateway 192.168.1.10
- # dns-* options are implemented by the resolvconf package, if installed
- dns-nameservers 192.168.1.10
复制代码
那么,我ifup eth0的时候,dns 服务器 到底是哪个??
如果我用dhcp (dhclient eth0) 动态分配ip的话,dns又是哪个??
如何设置像xp一样,有主用dns和备用dns?? |
|