You are not logged in.

#1 2020-08-05 11:20:45

Arch59
Member
Registered: 2020-08-04
Posts: 19

Temporary failure in name resolution

Hello,

i have a fresh archlinux installation

i did

# ip link set emp4s0f0 up
# ip a add 192.168.0.22/24 dev emp4s0f0
# ip a
ok i see inet
# ping 192.168.0.1
ok i can ping my gateway
# ip r add 0.0.0.0/0 via 192.168.0.1
# ping 1.1.1.1
ok

My /etc/resolv.conf :
nameserver 192.168.0.1
nameserver 1.1.1.1

# ping www.archlinux.org
Temporary failure in name resolution

Offline

#2 2020-08-05 20:07:30

xerxes_
Member
Registered: 2018-04-29
Posts: 676

Re: Temporary failure in name resolution

Offline

#3 2020-08-06 12:40:12

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

Thanks for your response;

That's ok now because my box gateway (saw in configuration web page box) is 192.168.0.254 (not  192.168.0.1)

So

# ip link set emp4s0f0 up
# ip a add 192.168.0.22/24 dev emp4s0f0

# ip r add 0.0.0.0/0 via 192.168.0.254
# ping 1.1.1.1
ok
# ping www.archlinux.org

I see result after 6 sec.
Is it normal ?

While i ping 138.201.81.199 == www.archlinux.org
the result is instantaneous

My /etc/resolv.conf now is :
nameserver 192.168.0.254
nameserver 1.1.1.1

Last edited by Arch59 (2020-08-06 13:09:15)

Offline

#4 2020-08-06 12:51:11

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

1 - When I ping www.archlinux.org or www.google.fr, i see result after 6 sec.

Is it normal ?

2 - How can i doing to automatically execute these instructions at startup of archlinux ?
Or is it better to go through a higher level program ?

3 - I saw from https://wiki.archlinux.org/index.php/Systemd-resolved -> https://en.wikipedia.org/wiki/Resolvconf this :
"...When resolvconf is properly installed, the resolv.conf file is replaced by a symbolic link to /etc/resolvconf/run/resolv.conf and the resolver instead uses the dynamically generated linked file. In a system without resolvconf, the file is normally maintained manually or by a collection of scripts. The scripts may cause problems, because there is no program to control access to the file. Resolvconf controls access to the file, allowing many programs to use it at the same time..."

$ resolvectl status
"Failed to get global data : Unit dbus-org.freedesktop.resolve1.service nor found"

All is ok ?

Last edited by Arch59 (2020-08-06 12:56:48)

Offline

#5 2020-08-06 20:06:32

stingA0815
Member
From: Löffingen, Germany
Registered: 2016-04-21
Posts: 31

Re: Temporary failure in name resolution

Arch59 wrote:

1 - When I ping www.archlinux.org or www.google.fr, i see result after 6 sec.

Is it normal ?

nope

2 - How can i doing to automatically execute these instructions at startup of archlinux ?
Or is it better to go through a higher level program ?

depends on the service which handles the network interfaces/stack

3 - I saw from https://wiki.archlinux.org/index.php/Systemd-resolved -> https://en.wikipedia.org/wiki/Resolvconf this :
"...When resolvconf is properly installed, the resolv.conf file is replaced by a symbolic link to /etc/resolvconf/run/resolv.conf and the resolver instead uses the dynamically generated linked file. In a system without resolvconf, the file is normally maintained manually or by a collection of scripts. The scripts may cause problems, because there is no program to control access to the file. Resolvconf controls access to the file, allowing many programs to use it at the same time..."

$ resolvectl status
"Failed to get global data : Unit dbus-org.freedesktop.resolve1.service nor found"

All is ok ?

is your resolv.conf handled by systemd-resolved.service?

Where does /etc/resolv.conf point to / come from?

Offline

#6 2020-08-06 21:39:25

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

stingA0815 wrote:

is your resolv.conf handled by systemd-resolved.service?

I don't know

Where does /etc/resolv.conf point to / come from?

if i do
> ls -l /etc/resolv.conf
it is a regular file

> rm /etc/resolv.conf
> reboot
> ls -l /etc/resolv.conf
> /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
there is a new link created but i cannot write in this file now with nano and a cannot access to ../run/systemd/resolve/stub-resolv.conf

Last edited by Arch59 (2020-08-07 12:16:01)

Offline

#7 2020-08-07 06:11:13

seth
Member
Registered: 2012-09-03
Posts: 51,241

Re: Temporary failure in name resolution

Here's the madness of systemd-resolved handling DNS by voodoo and random file presence:
https://wiki.archlinux.org/index.php/Sy … solved#DNS

What if you remove the gateway from the resolver list (ie. your routers and by inference likely ISPs DNS server) and use 1.1.1.1, 8.8.8.8 or 9.9.9.9 directly?

Online

#8 2020-08-07 12:04:35

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

seth wrote:

Here's the madness of systemd-resolved handling DNS by voodoo and random file presence:
https://wiki.archlinux.org/index.php/Sy … solved#DNS

What if you remove the gateway from the resolver list (ie. your routers and by inference likely ISPs DNS server) and use 1.1.1.1, 8.8.8.8 or 9.9.9.9 directly?

I suppose you want to re-write the /etc/resolv.conf file to put 1.1.1.1 to test.

so

If /etc/resolv.conf contains only
nameserver 1.1.1.1 (or 8.8.8.8)
that's ok (i have putting "nameserver before").
> ping archlinux.org
give the results in the same time

But if a add my gateway box to get :
nameserver 192.168.0.254
# nameserver 192.168.0.254 is before nameserver 1.1.1.1
nameserver 1.1.1.1

,i have the 6 sec before obtening result from
> ping archlinux.org

Why, i understood that an internet box (ip @ gateway) contains a list of DNS ?

Last edited by Arch59 (2020-08-07 12:07:10)

Offline

#9 2020-08-07 12:09:46

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

Is it necessary that i use dhcpcd or dhclient ?

Offline

#10 2020-08-07 12:15:51

seth
Member
Registered: 2012-09-03
Posts: 51,241

Re: Temporary failure in name resolution

Please don't bump, edit your posts unless somebody has responded.

Some dhcp client is required if you obtain your IP via dhcp, but I assume that you're using Networkmanager and that takes care of this.
Do NOT run different networkmanaging services (like networkmanager and dhcpcd) at the same time, they'll enter a race.
The dhcp client is not related to your DNS issues.

Afaiu using 1.1.1.1 gets you fast DNS resolution, but using 192.168.0.254 (some consumer router?) is slow?
This means the issue is in the DNS configuration of your router. Typically these things don't run a full blown DNS server, but forward some external DNS server (usually provided by your ISP) and sometimes augment the result w/ a local config (eg. using dnsmasq or a similar service)
=> Inspect the DNS config of your router.

Online

#11 2020-08-07 12:17:47

progandy
Member
Registered: 2012-05-17
Posts: 5,196

Re: Temporary failure in name resolution

Arch59 wrote:

Is it necessary that i use dhcpcd or dhclient ?

No. You have to choose exactly one option from this list and remove or disable the rest (systemctl disable --now)

* Creating systemd unit files for a static ip configuration with ip link / ip addr / adding nameserver to /etc/resolv.conf (I would not recommend that)
* dhclient
* dhcpcd
* systemd-networkd (also needs systemd-resolved for automatic nameserver configuration)
* netctl
* connman
* networkmanager

Correction for seth: There may be some other options, but those are either irrelevant for ethernet, unmaintained (wicd) or too unknown. It may be possible to configure iwd for an unencrypted ethernet connection with dhcp, but I don't know how.

Last edited by progandy (2020-08-07 12:44:42)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#12 2020-08-07 12:25:59

seth
Member
Registered: 2012-09-03
Posts: 51,241

Re: Temporary failure in name resolution

iwd has a built-in dhcp client and you ignored wicd tongue
And I'm sure there's a truckload of esoteric dhcp implementations nobody here has ever heard of smile

Online

#13 2020-08-08 10:23:53

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

progandy wrote:

* Creating systemd unit files for a static ip configuration with ip link / ip addr / adding nameserver to /etc/resolv.conf (I would not recommend that)

If i want a static ip with DHCP, it is the same that  with ip link / ip addr / adding nameserver to /etc/resolv.conf ? No ? More security with DHCP ? ...

Last edited by Arch59 (2020-08-08 10:24:28)

Offline

#14 2020-08-08 11:14:48

seth
Member
Registered: 2012-09-03
Posts: 51,241

Re: Temporary failure in name resolution

It's not about security, but if there multiple clients in the subnet, it is faaaaaar easier to let the dhcp server control the IP distribution exclusively.
You can configure most network managing services (incl. even dhcpcd) to request a static IP, but even that has the formentioned caveat.

Again: nothing of this really relates to your DNS problems.

Online

#15 2020-08-08 11:22:23

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

For the dns i simply have

/etc/resolv.conf
nameserver 1.1.1.1

in this case i can ping archlinux.org, for example, and get an answer quickly

I think it's enough for this "/etc/resolv.conf"configuration isn't it

Offline

#16 2020-08-08 11:26:35

seth
Member
Registered: 2012-09-03
Posts: 51,241

Re: Temporary failure in name resolution

Yes, however you should investigate why and how your router provides you with what slow DNS server and ideally fix it there (to affect all other potential clients)

Online

#17 2020-08-08 11:58:06

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

With my box version it seems i cannot add DNS. DNS label exists on other box from my FAI.
In my case i have :

Redirections of ports / DHCP leases

Redirections of ports
add (extern port) (TCP|UDP)  (192.168.0.? : destination ip) (internal port)

Port range redirects
add (begin port) (end port) (TCP|UDP)  (192.168.0.? : destination ip)

Permanent DHCP leases
add (192.168.0.? : destination ip) (mac adress)

Offline

#18 2020-08-08 11:59:53

seth
Member
Registered: 2012-09-03
Posts: 51,241

Re: Temporary failure in name resolution

What's the brand/vendor/product of the router?

Online

#19 2020-08-08 12:05:48

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

freebox crystal (from free)

Offline

#20 2020-08-08 13:17:06

seth
Member
Registered: 2012-09-03
Posts: 51,241

Re: Temporary failure in name resolution

Do you have "Paramètres de la Freebox, puis DHCP"?
https://www.freenews.fr/freenews-editio … n-resoudre

Though https://www.universfreebox.com/article/ … e-probleme seems to suggest that the "crystal" box simply doesn't offer this configuration.

Online

#21 2020-08-08 14:14:25

Arch59
Member
Registered: 2020-08-04
Posts: 19

Re: Temporary failure in name resolution

Configuration of Freebox router section 

state : active
IP Freebox adress : 192.168.0.254 
i can change only the 0 and 254
Configuration of DHCP section

state : active
DHCP IP address range : 192.168.0.10  to 192.168.0.50
i can only change 10 and 50

DMZ IP Address:
192.168.0.0
i can only change the last 0

Adresse IP Freeplayer :
192.168.0.0
i can only change the last 0
Advanced options section

Ping response : active
Proxy WOL (Wake On Lan) : inactive
UPnP (Universal Plug and Play) : active
Redirections of ports / DHCP leases section

Redirections of ports
add (extern port) (TCP|UDP)  (192.168.0.? : destination ip) (internal port)

Port range redirects
add (begin port) (end port) (TCP|UDP)  (192.168.0.? : destination ip)

Permanent DHCP leases
add (192.168.0.? : destination ip) (mac adress)

Last edited by Arch59 (2020-08-08 14:42:32)

Offline

#22 2020-08-08 14:28:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,792

Re: Temporary failure in name resolution

Please edit your post to use BBCode code tags around file contents and program output.  That link is the same is under each post box for your reference.  Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB