Skip to main content
Topic: [SOLVED] Temporary failure in name resolution (Read 4609 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] Temporary failure in name resolution

No connection after reboot.
$ping pong.com
Quote
Temporary failure in name resolution

/etc/resolve.conf
Quote
# Generated by dhcpcd
nameserver 8.8.8.8
# /etc/resolv.conf.tail can replace this line

--- fix ---
If on start wpa_supplicant complains about another  wpa_supplicant running and using  /var/run/wpa_supplicant/wlan0
removing /var/run/wpa_supplicant/wlan0 and restarting wpa_supplicant
can fix connection.

Re: Temporary failure in name tesolution

Reply #1
Have you tried to add fallback nameservers like 1.1.1.1 and 4.4.4.4?

Re: Temporary failure in name tesolution

Reply #2
Yes I tried.
Also
$ping 192.168.0.1
Quote
Network is unreachable

dhcpcd.conf

Re: Temporary failure in name tesolution

Reply #3
Is 192.168.0.1 the IP address of your default gateway? If it is so, then something is wrong with your local network configuration, not with the DNS.

How do you connect to your wifi network, do you use wpa_supplicant or whatever?

When your connection to the router is OK, then you'll read something like
Code: [Select]
inet 192.168.1.36/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp5s0
in your 'ip a s' output under your wlan adapter entry.
It seems that your DHCP configuration fails for some reason and your wlan adapter doesn't receive an IP address and other needed stuff.

Re: Temporary failure in name tesolution

Reply #4
192.168.0.1 is my wifi router
I use wpa_cli to connect, it responds it is Connected Key negotiation completed.

I haven't change any settings or update.

Re: Temporary failure in name tesolution

Reply #5
Stupid question, do you have your dhcp daemon running?

Also, try to delete the 'noipv4ll' option from the config file and try to adjust your dhcpcd.conf according to the guide:
https://wiki.archlinux.org/title/dhcpd
(like help it by specifying the ip address of your router).

Re: Temporary failure in name tesolution

Reply #6
Yes I tried to sv down/up/status dhcpcd and wpa_supplicant.
 
When I  started wpa_supplicant mannually
$wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.cong -i wlan0
it complained other process may run  and suggested to remove file in
/var/run/wpa_supplicant/wlan0

After removing the file and reboot connection works.
But it could be a coincidence.

-------------------

Commented noipv4all

Re: Temporary failure in name resolution

Reply #7
Fixed connection again with removing  /var/run/wpa_supplicant/wlan0
and restarting wpa_supplicant

--- solved ---