我面临DNS解决问题,有时在我的Ubuntu14.04.2LTS信任。
我已将我的系统配置为网络管理器,以处理静态IP分配。我也尝试通过更改DNS服务器地址,但当这个问题发生时,我不能通过URL访问任何网站,但我只能通过IP访问。
在这个问题上,我试过
转储脚本
###### Start of debugging information for resolvconf ######
### ls -l /etc/resolvconf
total 16
-rw-r--r-- 1 root root 172 Dec 13 2012 interface-order
drwxr-xr-x 2 root root 4096 May 21 11:02 resolv.conf.d
drwxr-xr-x 2 root root 4096 May 21 10:57 update.d
drwxr-xr-x 2 root root 4096 Jul 23 2014 update-libc.d
### cat /etc/resolvconf/interface-order
# interface-order(5)
lo.inet*
lo.dnsmasq
lo.pdnsd
lo.!(pdns|pdns-recursor)
lo
tun*
tap*
hso*
em+([0-9])?(_+([0-9]))*
p+([0-9])p+([0-9])?(_+([0-9]))*
eth*
ath*
wlan*
ppp*
*
### ls -l /etc/resolvconf/resolv.conf.d
total 8
-rw-r--r-- 1 root root 1 May 19 10:08 base
-rw-r--r-- 1 root root 151 Dec 13 2012 head
### cat /etc/resolvconf/resolv.conf.d/base
### cat /etc/resolvconf/resolv.conf.d/head
# 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
### ls -l /etc/resolvconf/run
ls: cannot access /etc/resolvconf/run: No such file or directory
### ls -l /run/resolvconf
total 4
-rw-r--r-- 1 root root 0 Jun 10 12:41 enable-updates
drwxr-xr-x 2 root root 60 Jun 10 12:42 interface
-rw-r--r-- 1 root root 170 Jun 10 12:42 resolv.conf
### cat /run/resolvconf/enable-updates
### cat /run/resolvconf/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 8.8.8.8
### ls -l /run/resolvconf/interface
total 4
-rw-r--r-- 1 root root 19 Jun 10 12:42 NetworkManager
### cat /run/resolvconf/interface/NetworkManager
nameserver 8.8.8.8
### ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 29 May 21 11:09 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
### lsattr /etc/resolv.conf
lsattr: Operation not supported While reading flags on /etc/resolv.conf
### cat /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 8.8.8.8
### cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
#dns=dnsmasq
no-auto-default=E0:69:95:AB:91:5A,
[ifupdown]
managed=false
###### End of debugging information for resolvconf ######我不能通过做这些事情来解决问题。但唯一的解决办法是重新启动我的电脑。
请帮助我,因为它完全卡住了我的全部工作,因为重新启动系统和失去连接的任何时候。
你的帮助将不胜感激。
卡文。
发布于 2015-08-20 12:30:29
我遵循了以下步骤,我的问题解决了。
dns=dnsmasq中添加#来注释掉/etc/NetworkManager/NetworkManager.conf。prepend domain-name-servers 127.0.0.1;中添加#注释/etc/dhcp/dhclient.confresolvconf:-u解析network-manager或重新启动系统:服务网络管理器重新启动发布于 2015-05-26 11:48:50
尝尝这个
在/etc/NetworkManager/NetworkManager.conf中注释掉行dns=dnsmasq
sudo nano /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
#dns=dnsmasq并重新启动NetworkManager服务。
sudo restart network-manager然后
sudo rm -f /etc/resolv.conf # Delete the symbolic link和
sudo nano /etc/resolv.conf
# Content of static resolv.conf
nameserver 8.8.4.4
nameserver 8.8.8.8在这种情况下,您的pc将在没有dnsmasq的情况下解析/etc/resolv.conf中的dns服务器的名称。
https://askubuntu.com/questions/628398
复制相似问题