我花了很多时间在网站上搜索这个问题的答案。也就是说,当我ping 8.8.8.8
操作立即开始,但当我ping www.google.com
有大约 10 秒的延迟时,DNS 似乎无法解析到正确的 IP 地址。请记住,我是一个相对的 Linux 菜鸟,所以我尽量不做任何彻底的改变(是的,也许升级到 18.04 有点雄心勃勃)。
结果ifconfig
是:
enp0s31f6: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 1c:1b:0d:0f:a0:5d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xda100000-da120000
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.7.62 netmask 255.255.255.0 broadcast 192.168.7.255
inet6 fe80::2cae:25b:5a44:1a8c prefixlen 64 scopeid 0x20<link>
ether 1c:1b:0d:0f:a0:5b txqueuelen 1000 (Ethernet)
RX packets 92706 bytes 66911507 (66.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 65071 bytes 11095750 (11.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1213082 bytes 79847277 (79.8 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1213082 bytes 79847277 (79.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
当我dhclient -v enp0s31f6
有一个 DHCPDISCOVER 进程无法解析时。当我dhclient -v enp5s0
立即得到一个立即的答复时。
根据要求,结果如下nslookup
:
nslookup www.google.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: www.google.com
Address: 172.217.7.228
Name: www.google.com
Address: 2607:f8b0:4004:80f::2004
nslookup www.google.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: www.google.com
Address: 172.217.3.36
Name: www.google.com
Address: 2607:f8b0:4006:81b::2004
其他要求:
nmcli device show enp5s0 | grep IP4.DNS
IP4.DNS[1]: 192.168.1.1
很高兴做必要的工作来解决这个问题,只是需要一些关于问题所在的指导。
在此先感谢您的帮助!