Can't get my Fritzbox (router) in the browser anymore with address fritz.box

Worked for years until a few days ago. Firefox forces a https://fritz.box encrypted connection which does not work between router and pc and then says page not found. Chromium throws a “DNS_PROBE_FINISHED_NXDOMAIN”. I can reach the router by entering its IP (192.168.178.1) directly. I found this thread: https://forums.opensuse.org/showthread.php/540176-new-pepwave-router-no-internet/page3 and tried the advice of post #26. But already the host command won’t work:

me@ryzen:~> host fritz.box 
Host fritz.box not found: 3(NXDOMAIN)

My /etc/resolv.conf contains


search fritz.box 
nameserver 194.150.168.168 
nameserver 46.182.19.48 
nameserver 192.168.178.1

Anybody with ideas?

One thing is for sure, fritz .box can not be found on the DNS of the internet.

To resolve it thus it must either be in the systems /etc/hosts, or it must be in a DNS server special for your LAN, and one is probably running the FritzBox itself.

For /etc/resolv.conf please also post

ls -l /etc/resolv.conf

because it nowadays may be a symbolic link.

Also in your resolv.conf I assume that 192.168.178.1 is your FritzBox, but that will only be asked when the two others fail to work at all.

Are you sure the Fritzbox was always the last in that list?

I think I have seen this misunderstanding earlier:
The list of DNS servers is tried from top to bottom. When the top one is alive and gives an answer that is then OK. Even if the answer is NXDOMAIN.
The next in the list is only tried if the first does not answer at all (times out). Thus as long as one of the two upper DNS servers are alive, the third one will never be asked anything.

So what happens if you make the FritzBox (192.168.178.1) first in that list?

Also, since years and years –


 > l /etc/resolv.conf
lrwxrwxrwx 1 root root 30 14. Jul 2021  /etc/resolv.conf -> /var/run/netconfig/resolv.conf
 > cat /var/run/netconfig/resolv.conf
### /etc/resolv.conf is a symlink to /var/run/netconfig/resolv.conf
### autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
### Call "netconfig update -f" to force adjusting of /etc/resolv.conf.
search fritz.box
nameserver 192.168.178.1
nameserver fd00::5e49:79ff:fedc:e1aa
 > 
 > grep 'NETCONFIG_DNS_STATIC_' /etc/sysconfig/network/config
NETCONFIG_DNS_STATIC_SEARCHLIST="fritz.box"
NETCONFIG_DNS_STATIC_SERVERS="192.168.178.1"
 > 
 > grep 'NETCONFIG_DNS_FORWARDER' /etc/sysconfig/network/config
NETCONFIG_DNS_FORWARDER="resolver"
NETCONFIG_DNS_FORWARDER_FALLBACK="yes"
# When the NETCONFIG_DNS_FORWARDER variable is set to "resolver",
 > 

That was it, solved. I rearranged the nameservers so the fritzbox is first and everything is back to normal. I didn’t put the fritzbox at the end of the list myself. Maybe during some update the network configuration was re-done, I run practically daily a

sudo zypper --verbose dup --allow-vendor-change --details

. Thank you Henk, you scored it on the first shot :).

Hi dcurtisfra, that is too much to the point so I’m not quite sure what you hint at. I entered the commands you showed, the only real difference is this:

grep 'NETCONFIG_DNS_STATIC_' /etc/sysconfig/network/config 
**NETCONFIG_DNS_STATIC_**SEARCHLIST="" 
**NETCONFIG_DNS_STATIC_**SERVERS=""

Where get **NETCONFIG_DNS_STATIC_**SEARCHLIST and **NETCONFIG_DNS_STATIC_**SERVERS set and do I need them (what for)?

They are parameters in the file ‘/etc/sysconfig/network/config’ – either edit the file or, use the YaST →

  • Section “System” → module “Network Settings” → tab “Hostname/DNS” → “Domain Search” → enter “fritz.box” – it’s a list – for Laptops more than one Domain Name can be entered …

In ‘/etc/sysconfig/network/config’ this is the content of the parameter “NETCONFIG_DNS_STATIC_SEARCHLIST” – a list of Domain Names to be searched …

  • Tab “Hostname/DNS” → Name Server 1/2/3 – enter the IP addresses of all of your Name Servers.

In ‘/etc/sysconfig/network/config’ this is the content of the parameter “NETCONFIG_DNS_STATIC_SERVERS” – also a list.
AFAICS, despite YaST only allowing 3 addresses to be configured, there doesn’t seem to be a limit to the list length of the configuration file’s parameter …


      NETCONFIG_DNS_STATIC_SERVERS
              List of namserver IP addresses used for host-name lookup.

              When the NETCONFIG_DNS_FORWARDER variable is  set  to  "resolver",  the  name  servers  are  written  directly  to
              /etc/resolv.conf.

              Otherwise,  the  nameserver  are written into a forwarder specific configuration file. Whether the nameservers are
              written as fallback to the /etc/resolv.conf, depends on the NETCONFIG_DNS_FORWARDER_FALLBACK variable.   When  the
              /etc/resolv.conf  does  not  contain  any nameservers, the glibc makes use of the name server running on the local
              machine (the forwarder).

With AVM FRITZ!Box Routers it can be confusing – the Domain Name of the private LAN and WLAN and Mesh is “fritz.box” and –

  • The Host Name of the box is also “fritz.box” …

 > dig fritz.box

; <<>> DiG 9.16.6 <<>> fritz.box
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23234
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 3

;; QUESTION SECTION:
;fritz.box.                     IN      A

;; ANSWER SECTION:
fritz.box.              9       IN      A       192.168.178.1

;; AUTHORITY SECTION:
fritz.box.              9       IN      NS      fritz.box.

;; ADDITIONAL SECTION:
fritz.box.              9       IN      A       192.168.178.1
fritz.box.              9       IN      AAAA    fd00::5e49:79ff:fedc:e1aa
fritz.box.              9       IN      AAAA    2001:9e8:34b9:e800:5e49:79ff:fedc:e1aa

;; Query time: 0 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
;; WHEN: Di Mär 15 17:21:04 CET 2022
;; MSG SIZE  rcvd: 129

 > dig -x 192.168.178.1

; <<>> DiG 9.16.6 <<>> -x 192.168.178.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57959
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 1, ADDITIONAL: 3

;; QUESTION SECTION:
;1.178.168.192.in-addr.arpa.    IN      PTR

;; ANSWER SECTION:
1.178.168.192.in-addr.arpa. 9   IN      PTR     fritz.box.
1.178.168.192.in-addr.arpa. 9   IN      PTR     www.fritz.box.
1.178.168.192.in-addr.arpa. 9   IN      PTR     myfritz.box.
1.178.168.192.in-addr.arpa. 9   IN      PTR     www.myfritz.box.
1.178.168.192.in-addr.arpa. 9   IN      PTR     fritz.nas.
1.178.168.192.in-addr.arpa. 9   IN      PTR     www.fritz.nas.
1.178.168.192.in-addr.arpa. 9   IN      PTR     fritz-nas.fritz.box.
1.178.168.192.in-addr.arpa. 9   IN      PTR     fritz-nas.box.
1.178.168.192.in-addr.arpa. 9   IN      PTR     wpad.box.
1.178.168.192.in-addr.arpa. 9   IN      PTR     wpad.fritz.box.

;; AUTHORITY SECTION:
1.178.168.192.in-addr.arpa. 9   IN      NS      fritz.box.

;; ADDITIONAL SECTION:
fritz.box.              9       IN      A       192.168.178.1
fritz.box.              9       IN      AAAA    fd00::5e49:79ff:fedc:e1aa
fritz.box.              9       IN      AAAA    2001:9e8:34b9:e800:5e49:79ff:fedc:e1aa

;; Query time: 0 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
;; WHEN: Di Mär 15 17:21:18 CET 2022
;; MSG SIZE  rcvd: 394

 > dig -x fd00::5e49:79ff:fedc:e1aa

; <<>> DiG 9.16.6 <<>> -x fd00::5e49:79ff:fedc:e1aa
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1384
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 1, ADDITIONAL: 3

;; QUESTION SECTION:
;a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. IN PTR

;; ANSWER SECTION:
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR fritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR www.fritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR myfritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR www.myfritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR fritz.nas.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR www.fritz.nas.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR fritz-nas.fritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR fritz-nas.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR wpad.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN PTR wpad.fritz.box.

;; AUTHORITY SECTION:
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.f.ip6.arpa. 9 IN NS fritz.box.

;; ADDITIONAL SECTION:
fritz.box.              9       IN      A       192.168.178.1
fritz.box.              9       IN      AAAA    fd00::5e49:79ff:fedc:e1aa
fritz.box.              9       IN      AAAA    2001:9e8:34b9:e800:5e49:79ff:fedc:e1aa

;; Query time: 3 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
;; WHEN: Di Mär 15 17:21:33 CET 2022
;; MSG SIZE  rcvd: 440

 > dig -x 2001:9e8:34b9:e800:5e49:79ff:fedc:e1aa

; <<>> DiG 9.16.6 <<>> -x 2001:9e8:34b9:e800:5e49:79ff:fedc:e1aa
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31077
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 1, ADDITIONAL: 3

;; QUESTION SECTION:
;a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. IN PTR

;; ANSWER SECTION:
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR fritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR www.fritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR myfritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR www.myfritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR fritz.nas.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR www.fritz.nas.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR fritz-nas.fritz.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR fritz-nas.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR wpad.box.
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN PTR wpad.fritz.box.

;; AUTHORITY SECTION:
a.a.1.e.c.d.e.f.f.f.9.7.9.4.e.5.0.0.8.e.9.b.4.3.8.e.9.0.1.0.0.2.ip6.arpa. 9 IN NS fritz.box.

;; ADDITIONAL SECTION:
fritz.box.              9       IN      A       192.168.178.1
fritz.box.              9       IN      AAAA    fd00::5e49:79ff:fedc:e1aa
fritz.box.              9       IN      AAAA    2001:9e8:34b9:e800:5e49:79ff:fedc:e1aa

;; Query time: 0 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
;; WHEN: Di Mär 15 17:21:45 CET 2022
;; MSG SIZE  rcvd: 440

 > 

Okay, many thanks for your detailed reply. I entered the parameters in /etc/sysconfig/network/config. The DNS-Servers of my system are handled by networkmanager which seems distinct from the entries in YAST. My LAN is much simpler than yours, so “dig” answers only in brief. Interesting and nice to learn this, thanks again.