Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528418 - sys-apps/systemd-217 - DNS resolver fails
Summary: sys-apps/systemd-217 - DNS resolver fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-06 09:19 UTC by Juergen Rose
Modified: 2014-11-06 13:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2014-11-06 09:19:35 UTC
I have configure my network on "cheetahnew" with /etc/systemd/network/50-static.network

rose@cheetahnew:/home/rose(5)$ cat /etc/systemd/network/50-static.network
[Match]
Name=eth0

[Network]
DNS=141.89.64.1
DNS=141.89.194.254
Address=141.89.194.33/24
#Domains=bioinf.cs.uni-potsdam.de

#[Address]
#Address=141.89.194.33
#Broadcast=141.89.194.255

[Route]
Gateway=141.89.194.254


"systemctl status systemd-networkd" does not show any error:

rose@cheetahnew:/home/rose(6)$ systemctl status systemd-networkd
● systemd-networkd.service - Network Service
   Loaded: loaded (/usr/lib64/systemd/system/systemd-networkd.service; enabled)
   Active: active (running) since Di 2014-11-04 20:52:25 CET; 18h ago
     Docs: man:systemd-networkd.service(8)
 Main PID: 1950 (systemd-network)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-networkd.service
           └─1950 /usr/lib/systemd/systemd-networkd


But /etc/resolf.conf is a link to an nonexisting file and nslookup does not resolve any dns names:

rose@cheetahnew:/home/rose(7)$ ll /etc/resolv.conf 
lrwxrwxrwx 1 root root 32 24. Okt 14:59 /etc/resolv.conf -> /run/systemd/resolve/resolv.conf
rose@cheetahnew:/home/rose(8)$ nslookup distfiles.gentoo.org
;; connection timed out; no servers could be reached

rose@cheetahnew:/home/rose(9)$ ll /run/systemd/resolve
/bin/ls: Zugriff auf /run/systemd/resolve nicht möglich: Datei oder Verzeichnis nicht gefunden


The directory /run/systemd/resolve does not exist. Restarting systemd-networkd.service does not help:

root@cheetahnew:/root(10)# systemctl restart systemd-networkd.service
root@cheetahnew:/root(11)# ll /etc/resolv.conf 
lrwxrwxrwx 1 root root 32 Oct 24 14:59 /etc/resolv.conf -> /run/systemd/resolve/resolv.conf

root@cheetahnew:/root(12)# ll /run/systemd/resolve
/bin/ls: cannot access /run/systemd/resolve: No such file or directory
Comment 1 Mike Gilbert gentoo-dev 2014-11-06 13:00:07 UTC
Please google the problem, or ask in a support forum before filing a bug.

resolv.conf generation was moved to systemd-resolved in 215 or 216.

systemctl enable systmed-resolved.service
systemctl start systemd-resolved.service
Comment 2 Juergen Rose 2014-11-06 13:12:33 UTC
(In reply to Mike Gilbert from comment #1)
> Please google the problem, or ask in a support forum before filing a bug.
> 
> resolv.conf generation was moved to systemd-resolved in 215 or 216.
> 
> systemctl enable systmed-resolved.service
> systemctl start systemd-resolved.service

Thank you for your answer. But I was just googling few days ago and found the solution to run systemd-networkd and create manually the link from /run/systemd/resolve/resolv.conf to /etc/resolv.conf. But probably I still had an old version of systemd.

Regards
Juergen