You are not logged in.

#1 2014-04-29 06:28:50

souenzzo
Member
Registered: 2012-10-31
Posts: 36

[SOLVED][systemd-networkd] Cant use dns or something like

[edit]
SOLUTION: You need to set a resolv.conf
[/edit]

Hi all
Im trying to use systemd-networkd and its really looks nice.
BUT I cant use any kind of dns.
At the moment, Im with this config

[Match]
Name=enp2s0
Host=my-dear-desktop

[Network]
DHCP=true

there is no error or something like on

systemctl status systemd-networkd

. I also try some other configs with static dns, nothing work.
so, i have internet/network connection, but without names =/
I have tryed many configs like UseDNS=true or DNS=8.8.8.8 at myconfig.network but nothing works. sad

$ ping www.google.com
ping: unknow host www.google.com
$ ping 173.194.118.145 ##google's IP##
##normal ping##
$ ping my-notebook-localname
ping: unknow host my-notebook-localname
$ ping 192.168.25.23 ##notebook local IP##
##normal ping##

Last edited by souenzzo (2014-04-30 00:52:57)

Offline

#2 2014-04-29 06:46:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED][systemd-networkd] Cant use dns or something like

What does your /etc/resolv.conf look like when you're connected?
Does it work if you just use dhcpcd instead of systemd-networkd?
Does it work with a manual static config (including resolv.conf)?

Offline

#3 2014-04-30 00:52:14

souenzzo
Member
Registered: 2012-10-31
Posts: 36

Re: [SOLVED][systemd-networkd] Cant use dns or something like

My problem was missing resolv.conf
I just start dhcpcd at once, generates resolv.conf and all works.
Thanks!!!
I will propose to add a note in the wiki with "you need to manually resolv.conf set"

Offline

#4 2014-04-30 08:18:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED][systemd-networkd] Cant use dns or something like

Not necessary, as your issue was specific to your system, and is unlikely to be encountered by others.

resolv.conf is provided by the filesystem package, which is of course part of every base Arch install. If it was not present on your system, somebody (or something) deleted it.

Offline

Board footer

Powered by FluxBB