Cannot load website using domain name

Hi all,
I need some help figuring out why I cannot load a website using the domain name but it loads using the IP address. The website loads fine on Windows OS. Domain resolution to IP address is fine.

@MissSB:

Which Web-Browser are you using?

Is the systemd “nscd.service” enabled and executing?

Does your “resolv.conf” look like the following?

 > file /etc/resolv.conf
/etc/resolv.conf: symbolic link to /var/run/netconfig/resolv.conf
 >

In other words, is your “resolv.conf” –

autogenerated by netconfig!

I’ve used Firefox, Chrome and Opera - same result.

Yes it is

 systemctl status nscd.service
● nscd.service - Name Service Cache Daemon
Loaded: loaded (/usr/lib/systemd/system/nscd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-06-01 07:46:05 EAT; 12h ago
Main PID: 982 (nscd)
Tasks: 15 (limit: 4915)
CGroup: /system.slice/nscd.service
└─ 982 /usr/sbin/nscd

Here’s what resolv.conf looks like

$ file /etc/resolv.conf
/etc/resolv.conf: symbolic link to /run/netconfig/resolv.conf

@MissSB:

Then, the Router connecting your LAN to the Internet isn’t providing the correct Name Service response to the DHCP request your openSUSE system makes when it boots.

If, you’re using the Network Manager then, you can use “nmcli” to query your system’s DNS –

> nmcli --fields ip4.dns,ip6.dns con show [connection_name]

To determine the connection name, use:

> nmcli -t --fields NAME con show --active

Or, install the “bind-utils” package and proceed as follows:

 > nslookup opensuse.org
Server:         192.168.178.1
Address:        192.168.178.1#53

Non-authoritative answer:
Name:   opensuse.org
Address: 195.135.221.140
Name:   opensuse.org
Address: 2001:67c:2178:8::16

 > 
 > nslookup www.opensuse.org
Server:         192.168.178.1
Address:        192.168.178.1#53

Non-authoritative answer:
www.opensuse.org        canonical name = proxy.opensuse.org.
proxy.opensuse.org      canonical name = proxy-nue.opensuse.org.
Name:   proxy-nue.opensuse.org
Address: 195.135.221.140
Name:   proxy-nue.opensuse.org
Address: 2001:67c:2178:8::16

 >

The DNS server address mentioned in the examples is the private IP address of the Router which connects my private IP LAN to the Internet.

Querying system’s DNS:

$ nmcli -t --fields NAME con show --active
Wired connection 2
EssBee
$ nmcli --fields ip4.dns,ip6.dns con show EssBee
IP4.DNS[1]: 192.168.100.1
IP6.DNS[1]: fe80::1

nslookup queries

nslookup opensuse.org
Server:         192.168.100.1
Address:        192.168.100.1#53

Non-authoritative answer:
Name:   opensuse.org
Address: 195.135.221.140
Name:   opensuse.org
Address: 2001:67c:2178:8::16
nslookup www.opensuse.org
Server:         192.168.100.1
Address:        192.168.100.1#53

Non-authoritative answer:
www.opensuse.org        canonical name = proxy.opensuse.org.
proxy.opensuse.org      canonical name = proxy-nue.opensuse.org.
Name:   proxy-nue.opensuse.org
Address: 195.135.221.140
Name:   proxy-nue.opensuse.org
Address: 2001:67c:2178:8::16

@MissSB:

Your Router’s IPv6 address (your DNS server) is a bit strange – it’s an extremely short IPv6 address – here on this machine:

 > nmcli --fields ip4.dns,ip6.dns con show '??? ???'
IP4.DNS[1]:                             192.168.178.1
IP6.DNS[1]:                             fd00::5e49:79ff:fedc:e1aa
 >

You may have to check your Router’s DNS setup.

  • Apart from that, at least the openSUSE addresses seem to be resolving correctly.

Problem is I have tried this on different connections (different ISPs) and my colleagues (using Windows) on the same connections have no issue. When I load the website on my phone it works however, when I tether my phone to the laptop it does not load. I was also able to load the website on Windows guest via Virtualbox on my laptop. It just leaves my OS as a common denominator I think.

@MissSB:

Then, I would consider configuring your Linux systems to use a public DNS Server: <https://public-dns.info/>

  • Or, use DuckDuckGo as your Firefox Search Engine and search for “Public DNS Servers”.

In the file ‘/etc/sysconfig/network/config’ set the following parameters to point to your favourite DNS Server(s):

  • NETCONFIG_DNS_STATIC_SEARCHLIST
  • NETCONFIG_DNS_STATIC_SERVERS

Please check that, the value of the parameter “NETCONFIG_DNS_FORWARDER” is set to “resolver”.