You are not logged in.

#1 2018-12-10 18:10:42

lxhlx
Member
Registered: 2018-10-21
Posts: 27

[SOLVED] DNS error when trying to enter some pages

Hello, what happens is that in some I do have internet and in addition, I can access several pages. My problem is that, for example when trying to access wiki.archlinux.org, it does not work for me. When I ping, it says that the name is unknown. When I enter Chrome or Firefox, the following message appears:

"The IP address of the archlinux.org server could not be found.
DNS_PROBE_FINISHED_NXDOMAIN"

And the ping wiki.archlinux.org : ping: wiki.archlinux.org: Unknown name or service

I have tried from putting a static IP, to changing my resolv.conf but nothing works.

My /etc/resolv.conf:

# Generated by resolvconf
nameserver 190.157.8.33
nameserver 190.157.8.1
nameserver 8.8.8.8
nameserver 8.8.4.4

And my /etc/systemd/resolved.conf:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
DNS=8.8.8.8 8.8.4.4
#FallbackDNS=1.1.1.1 9.9.9.10 8.8.8.8 2606:4700:4700::1111 2620:fe::10 2001:4860:4860::8888
#Domains=
#LLMNR=yes
#MulticastDNS=yes
DNSSEC=off
#DNSSEC=allow-downgrade
#DNSOverTLS=no
#Cache=yes
#DNSStubListener=udp

In fact, I even updated my system but nothing. I appreciate your help.

Last edited by lxhlx (2018-12-12 03:45:10)

Offline

#2 2018-12-10 19:40:37

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

Re: [SOLVED] DNS error when trying to enter some pages

What's the ouput of

ps aux | grep resolved
dig @190.157.8.33 google.com
dig @190.157.8.33 wiki.archlinux.org

Assuming you're running resolved, see https://wiki.archlinux.org/index.php/Systemd-resolved and symlink /run/systemd/resolve/stub-resolv.conf

Offline

#3 2018-12-10 19:54:09

lxhlx
Member
Registered: 2018-10-21
Posts: 27

Re: [SOLVED] DNS error when trying to enter some pages

ps aux | grep resolved

systemd+   418  0.0  0.0  67716 10088 ?        Ss   06:56   0:05 /usr/lib/systemd/systemd-resolved
root     15655  0.0  0.0   8192  2240 pts/8    S+   09:45   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn resolved

dig @190.157.8.33 google.com

 
dig @190.157.8.33 google.com                                

; <<>> DiG 9.13.4 <<>> @190.157.8.33 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3990
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

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

;; ANSWER SECTION:
google.com.		167	IN	A	172.217.30.206

;; Query time: 34 msec
;; SERVER: 190.157.8.33#53(190.157.8.33)
;; WHEN: lun dic 10 09:51:02 -05 2018
;; MSG SIZE  rcvd: 55

dig @190.157.8.33 wiki.archlinux.org

 
; <<>> DiG 9.13.4 <<>> @190.157.8.33 wiki.archlinux.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7480
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1460
;; QUESTION SECTION:
;wiki.archlinux.org.		IN	A

;; ANSWER SECTION:
wiki.archlinux.org.	170	IN	CNAME	apollo.archlinux.org.
apollo.archlinux.org.	782	IN	A	138.201.81.199

;; Query time: 34 msec
;; SERVER: 190.157.8.33#53(190.157.8.33)
;; WHEN: lun dic 10 09:51:22 -05 2018
;; MSG SIZE  rcvd: 84

I did the following on my terminal: # ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf but it does not work yet.

Offline

#4 2018-12-10 20:02:05

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

Re: [SOLVED] DNS error when trying to enter some pages

dig wiki.archlinux.org
drill wiki.archlinux.org
nslookup wiki.archlinux.org

(they use different ways to determine the resolver)
Also the contents of /etc/nsswitch.conf, please.

Offline

#5 2018-12-10 22:05:29

lxhlx
Member
Registered: 2018-10-21
Posts: 27

Re: [SOLVED] DNS error when trying to enter some pages

/etc/nsswitch.conf

# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

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

dig wiki.archlinux.org

; <<>> DiG 9.13.4 <<>> wiki.archlinux.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51379
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1460
;; QUESTION SECTION:
;wiki.archlinux.org.		IN	A

;; ANSWER SECTION:
wiki.archlinux.org.	3600	IN	CNAME	apollo.archlinux.org.
apollo.archlinux.org.	956	IN	A	138.201.81.199

;; Query time: 199 msec
;; SERVER: 190.157.8.33#53(190.157.8.33)
;; WHEN: lun dic 10 12:01:39 -05 2018
;; MSG SIZE  rcvd: 84

drill wiki.archlinux.org

;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 25947
;; flags: qr rd ra ; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 
;; QUESTION SECTION:
;; wiki.archlinux.org.	IN	A

;; ANSWER SECTION:
wiki.archlinux.org.	1923	IN	CNAME	apollo.archlinux.org.
apollo.archlinux.org.	3387	IN	A	138.201.81.199

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 34 msec
;; SERVER: 190.157.8.33
;; WHEN: Mon Dec 10 12:01:47 2018
;; MSG SIZE  rcvd: 73

Offline

#6 2018-12-10 22:22:19

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

Re: [SOLVED] DNS error when trying to enter some pages

No obvious obstacles in nsswitch, dig+drill resolve from the 190.157.8.33 default fine.
What about nslookup?
Are you positive ping still fails?

Offline

#7 2018-12-10 22:38:23

lxhlx
Member
Registered: 2018-10-21
Posts: 27

Re: [SOLVED] DNS error when trying to enter some pages

nslookup wiki.archlinux.org

Server:		190.157.8.33
Address:	190.157.8.33#53

Non-authoritative answer:
wiki.archlinux.org	canonical name = apollo.archlinux.org.
Name:	apollo.archlinux.org
Address: 138.201.81.199
Name:	apollo.archlinux.org
Address: 2a01:4f8:172:1d86::1

So, how could I solve it?

Offline

#8 2018-12-10 22:55:52

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

Re: [SOLVED] DNS error when trying to enter some pages

There's really no apparent problem - all tried DNS clients work just fine.
Did you retry ping?

Offline

#9 2018-12-10 22:58:41

lxhlx
Member
Registered: 2018-10-21
Posts: 27

Re: [SOLVED] DNS error when trying to enter some pages

ping wiki.archlinux.org : ping: wiki.archlinux.org: Unknown name or service

I do not understand why he says the name is unknown

Offline

#10 2018-12-11 05:19:50

lxhlx
Member
Registered: 2018-10-21
Posts: 27

Re: [SOLVED] DNS error when trying to enter some pages

Hello,

I managed to fix it by restarting the router because I saw the following topic: https://bbs.archlinux.org/viewtopic.php?id=181213

However, before putting SOLVED on the title, I would like to know why it happens and if it happens again? I would not like to be rebooting the router every time it happens.
Thank you very much for your help and I hope you answer me!

Offline

#11 2018-12-11 11:02:39

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: [SOLVED] DNS error when trying to enter some pages

Which ISP do you have and what are brand & model of the router ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#12 2018-12-11 16:45:30

lxhlx
Member
Registered: 2018-10-21
Posts: 27

Re: [SOLVED] DNS error when trying to enter some pages

Lone_Wolf wrote:

Which ISP do you have and what are brand & model of the router ?

The name of my ISP is called CLARO and the model of my router is DWG849, brand THOMSON

Offline

#13 2018-12-11 22:16:42

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

Re: [SOLVED] DNS error when trying to enter some pages

Bug in resolved, likely "fixed" by the implicit reconnect after the router reboot.
The DNS query tools do not use nsswitch.conf and in particular not the "resolve" plugin which will invoke systemd-resolved

I'd tell you how to fix that, but there's https://wiki.archlinux.org/index.php/Co … d_projects and I don't want to be banned. Let's just say I'm personally unimpressed by the systemd NIH resolver.

Offline

#14 2018-12-12 03:44:35

lxhlx
Member
Registered: 2018-10-21
Posts: 27

Re: [SOLVED] DNS error when trying to enter some pages

Perfect, although today the same thing happened to me when I restarted the process in the following way: systemctl restart NetworkManager. Anyway, I'll call my ISP to change the router, I think it could be that. In advance, thank you very much for the help given!

Offline

#15 2018-12-12 08:35:27

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

Re: [SOLVED] DNS error when trying to enter some pages

I'm not sure that restarting NM will restart resolved.
You can disable the use of resolved, no idea when it became default for NM. See https://wiki.archlinux.org/index.php/Ne … _split_DNS

Offline

Board footer

Powered by FluxBB