我注意到当我执行需要密码的命令时,终端最近变得太慢了。显示 [sudo] 密码需要几秒钟...
我在 Ubuntu 13.04 64 位上使用戴尔 XPS 开发人员版(i7,8G RAM)。
升级到 17.04 后,我无法再解析本地网络 (silvesternet.local) 中的地址。我收到以下回复:
$ systemd-resolve edgerouter
edgerouter: resolve call failed: No appropriate name servers or networks for name found
Run Code Online (Sandbox Code Playgroud)
在日志中,只有与此查找相关的事务超时报告。
我使用 Wireshark 来嗅探网络流量,它似乎甚至没有尝试查找名称。没有任何 dns 流量。查找另一个外部域工作正常。
围绕同一主题的许多问题都提到更改 nsswitch.conf,但这似乎并没有解决任何问题。我目前的设置是:
hosts: files mdns4_minimal dns [NOTFOUND=return] resolve [!UNAVAIL=return] mdns4
Run Code Online (Sandbox Code Playgroud) 我想使用 dnsmasq 获得快速的 dns 解析并保持默认的 systemd-resolved。
寻找一种优雅的方式来做到这一点
如果这似乎是第十次重复,我很抱歉,但在其他情况下提供的答案都没有解决我的问题。
我正在尝试使用公共 WIFI,就像我两天前成功做的那样。正常的程序是:
现在我不再超越第 2 步了。我在双引导机器上。我可以使用 Widows 10 正常访问互联网,但不能使用 Ubuntu 18.04。
在 Windows 上我得到:
SSID: SEC Wi-Fi
Protocol: 802.11n
Security type: Open
Network band: 2.4 GHz
Network channel: 6
IPv4 address: 192.168.33.154
IPv4 DNS servers: 192.168.0.1
192.168.0.1
Manufacturer: Intel Corporation
Description: Intel(R) Dual Band Wireless-AC 7260
Driver version: 17.15.0.5
Physical address (MAC): 0C-8B-FD-75-00-D5
Windows IP Configuration
Host Name . . . . . . . . . . . . : DESKTOP-G83LKQ1
Primary …
Run Code Online (Sandbox Code Playgroud) 我新安装了 Ubuntu 16.10 并 rsync 将我以前的主目录从 kubuntu 16.04 备份到我的新安装。事情运行良好,但尽管经过多次试验和错误,我还是无法解析本地地址。
所有网络似乎都在完美运行。Internet 浏览、外部地址的 DNS 查找、ssh 等都很棒。在本地,我可以通过 ssh 使用他们的地址访问机器,但不能访问他们的名字。这一切在 nautilus/samba 中都可以正常工作,这意味着 WINS 可以正常工作。看来,唯一的问题是本地网络 DNS。我已经安装并运行了 avahi-daemon,因为它是随 Ubuntu 一起提供的。
我已经包含了一些故障排除,使用 <<>> 来缩短冗余或正确工作的部分。
$ nmcli g
STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected full enabled enabled enabled enabled
$ ping tendril8 << or tendril8.local >>
ping: tendril8: Name or service not known
$ ping gateway
PING gateway (192.168.1.1) 56(84) bytes of data.
64 bytes from gateway (192.168.1.1): icmp_seq=1 ttl=64 time=4.16 ms
$ ping askubuntu.com
PING askubuntu.com …
Run Code Online (Sandbox Code Playgroud)