Bug 1312778
Summary: | [NetworkManager] failure of DNS name resolution | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joachim Frieben <jfrieben> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 24 | CC: | awilliam, bgalvani, dcbw, jfrieben, johannbg, juliux.pigface, lkundrak, lnykryn, msekleta, muadda, psimerda, satellitgo, s, systemd-maint, zbyszek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-03-10 20:03:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joachim Frieben
2016-02-29 09:37:02 UTC
Can you please paste the content of /etc/resolv.conf? If there's a nameserver in there, are you able to ping it? And what's the output of "nmcli c; nmcli g"? Thanks. -- Fedora 23 ---------------------------------------------------------------- /etc/resolv.conf: # Generated by NetworkManager nameserver 192.168.2.1 Output of 'nmcli c': NAME UUID TYPE DEVICE ThisVPN 8be1e252-c920-4879-9204-701c09754ee5 vpn -- enp0s25 51915f63-7819-4924-a37c-55be510840b9 802-3-ethernet -- ThisWifi 9b04b922-a70b-49ab-9d4a-fdc0200cfd8d 802-11-wireless wlp3s0 virbr0-nic e70f8f72-ec66-4462-a7bf-d7955843e3db generic virbr0-nic virbr0 1930cfce-d1f0-4e20-acc4-a08862a98b33 bridge virbr0 Output of 'nmcli g': STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN connected full enabled enabled enabled enabled -- Fedora 24 ---------------------------------------------------------------- /etc/resolv.conf is a symbolic link to a non-existing file resolv.conf in some systemd-related directory Output of 'nmcli c': NAME UUID TYPE DEVICE ThisWifi 7917cfb6-7497-45f7-a01d-ddbf44d2b6cf 802-11-wireless wlp3s0 Wired Connection 1 0ce34b8d-9861-4cfe-b878-89e7014a41cc 802-3-ethernet -- Output of 'nmcli g': STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN connected (site only) limited enabled enabled enabled enabled I tried to upgrade to systemd-229-3 on rawhide, remove /etc/resolv.conf and reboot. Now I'm in the same situation: root@rawhide ~ # ll /etc/resolv.conf lrwxrwxrwx. 1 root root 34 Feb 29 14:45 /etc/resolv.conf -> ../run/systemd/resolve/resolv.conf root@rawhide ~ # ll /run/systemd/resolve/resolv.conf ls: cannot access /run/systemd/resolve/resolv.conf: No such file or directory root@rawhide ~ # systemctl status systemd-resolved ● systemd-resolved.service - Network Name Resolution Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: man:systemd-resolved.service(8) NetworkManager doesn't touch resolv.conf when it's a link owned by another daemon and someone (systemd-networkd ?) created the link but is not managing the file. I'm not sure why the link is created on a default installation. Reassigning the bug to systemd. The link is created by systemd-tmpfiles if it doesn't exist. If it should point at something else, somebody has to create it. It seems that the stub link created (prematurely (?)) by systemd prevents NetworkManager from creating the proper file /etc/resolv.conf. After removing the broken symbolic link /etc/resolv.conf -> ../run/systemd/resolve/resolv.conf and turning the network device off and on again, the correct symbolic link /etc/resolv.conf -> /var/run/NetworkManager/resolv.conf is created, and name resolution works as expected. *** This bug has been marked as a duplicate of bug 1313085 *** |