You are not logged in.

#1 2018-11-17 17:19:01

spira_mirabilis
Member
Registered: 2017-05-29
Posts: 26

Names not resolved

Yesterday I connected my computer (Arch) to a new WLAN, browsing without any problem at all. Today, same computer, same WLAN, I can't browse anymore: the names are no longer resolved. Other devices on the same network can browse. I tried to connect my computer to my Android hotspot and it worked.

$ ping google.com
ping: google.com: Name or service not known
$ dig google.com  
; <<>> DiG 9.13.3 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34550
;; flags: qr rd ra cd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; MBZ: 0x7fe8, udp: 512
;; QUESTION SECTION:
;google.com.            IN  A

;; ANSWER SECTION:
google.com.     97  IN  A   216.58.205.142

;; Query time: 3 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
;; WHEN: Sat Nov 17 16:12:12 CET 2018
;; MSG SIZE  rcvd: 55

I also tried to set custom DNSs to my /etc/resolv.conf, with no changes.

nameserver 1.1.1.1
nameserver 1.0.0.1

The router is a FRITZ!Box 7170, I'm not able to find any DNS related settings.

Offline

#2 2018-11-17 17:33:15

AstroPig7
Member
Registered: 2018-11-16
Posts: 8

Re: Names not resolved

This might not be a DNS problem but a routing problem, especially if changing your name server doesn’t help. Can you reboot the FRITZ!Box?

Offline

#3 2018-11-17 17:34:00

null
Member
Registered: 2009-05-06
Posts: 398

Re: Names not resolved

The ";; SERVER: 192.168.178.1#53(192.168.178.1)" line indicates that dig is using your fritzbox successfully as DNS server.

Does your internet connection work? As in: can you ping external hosts, i.e. 1.1.1.1? If so, what is the content of your /etc/nsswitch.conf? If not, how do you connect to the internet?

Offline

#4 2018-11-17 17:43:20

spira_mirabilis
Member
Registered: 2017-05-29
Posts: 26

Re: Names not resolved

Can you reboot the FRITZ!Box?

Already tried.

Does your internet connection work?

The connection works, my laptop is the only connected device which I'm not able to browse with.

what is the content of your /etc/nsswitch.conf

passwd: files mymachines systemd
group: files mymachines systemd
shadow: files

publickey: files

hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

Offline

#5 2018-11-18 07:58:50

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

Re: Names not resolved

Do you configure your network using systemd-networkd? "ps aux | grep resolved"?

Online

#6 2018-11-18 09:35:27

spira_mirabilis
Member
Registered: 2017-05-29
Posts: 26

Re: Names not resolved

I didn't configure my network, I always just connected to the Wifi and it works (but not this time).

$ ps aux | grep resolved
systemd+   460  0.1  0.0  50812  9220 ?        Ss   10:29   0:00 /usr/lib/systemd/systemd-resolved

Offline

#7 2018-11-18 10:00:04

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Names not resolved

spira_mirabilis wrote:

I didn't configure my network

Well something must have done. Arch comes with no network configuration when first installed.
How do you connect to the network, enter passwords, etc.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2018-11-18 11:10:30

spira_mirabilis
Member
Registered: 2017-05-29
Posts: 26

Re: Names not resolved

I use nmtui to select the wifi and enter the password.

Offline

#9 2018-11-18 13:17:33

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

Re: Names not resolved

Either configure networkmanager to not use resolved, see https://jlk.fjfi.cvut.cz/arch/manpages/ … ger.conf.5 or configure resolved "properly", see https://wiki.archlinux.org/index.php/Sy … figuration
Alternatively drop NM and use wifi-menu on top of netctl. Ensure to disable systemd-resolved.
(Notice that "properly" is not actually possible since resolved's DNS resolution is systematically broken - deterministic DNS resolution is simply not possible)

Online

#10 2018-11-18 20:28:13

spira_mirabilis
Member
Registered: 2017-05-29
Posts: 26

Re: Names not resolved

Thank you very much seth. I'll try with the options you listed. Which of those options do you suggest?
I'm no longer in that location, so I'm not able to reproduce  this problem, at least for the next weeks.

Last edited by spira_mirabilis (2018-11-18 20:35:17)

Offline

#11 2018-11-18 20:51:55

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

Re: Names not resolved

The one that suits you best. *My* preferences do not necessarily match yours and none of those options is outright stupid.
If you use a DNS cascade, systemd-resolved is a big no-go, but if you just want to use some DNS server that probably will provide you w/ the expectable resolution, they'll all - given proper config - get the job done.

Online

Board footer

Powered by FluxBB