My stupid, I think I broke something with the DNS while trying to set up directory sharing over the network.
Browser access to websites fails.
# ping opensuse.org
ping: opensuse.org: Name or service not known
However, pinging IP addresses works.
Also nslookup google.com or any other domain works.
**
#** nslookup google.com
Server: 192.168.42.129
Address: 192.168.42.129#53
Non-authoritative answer:
Name: google.com
Address: 142.250.186.110
Name: google.com
Address: 2a00:1450:4001:831::200e
This also works.
# host 158.255.46.17
17.46.255.158.in-addr.arpa domain name pointer server.guildmedia.net.
strace fails
# strace -e trace=open -f resolveip google.com
resolveip: Unable to find hostid for 'google.com': host not found
+++ exited with 2 +++
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether e4:11:5b:2c:75:19 brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 10:0b:a9:1b:0f:b8 brd ff:ff:ff:ff:ff:ff
altname wlp37s0
inet 192.168.43.175/24 brd 192.168.43.255 scope global dynamic noprefixroute wlo1
valid_lft 6035sec preferred_lft 6035sec
inet6 fe80::62a5:2aa4:c920:51bb/64 scope link noprefixroute
valid_lft forever preferred_lft forever
# grep "NETCONFIG_DNS" /etc/sysconfig/network/config
NETCONFIG_DNS_POLICY="auto"
NETCONFIG_DNS_FORWARDER="resolver"
NETCONFIG_DNS_FORWARDER_FALLBACK="yes"
NETCONFIG_DNS_STATIC_SEARCHLIST=""
# When the NETCONFIG_DNS_FORWARDER variable is set to "resolver",
NETCONFIG_DNS_STATIC_SERVERS=""
NETCONFIG_DNS_RANKING="auto"
NETCONFIG_DNS_RESOLVER_OPTIONS=""
NETCONFIG_DNS_RESOLVER_SORTLIST=""
# netconfig -v update
<13>May 19 13:08:51 netconfig: Executing '-v update' for pid 4232
debug: lockfile created (/var/run/netconfig.pid) for PID 21632
debug: lockfile created
debug: Module order: dns-resolver dns-bind dns-dnsmasq nis ntp-runtime
debug: dns-resolver module called
debug: Resolved dns-policy 'auto' for service 'NetworkManager' to 'STATIC_FALLBACK * NetworkManager'
debug: Static Fallback
debug: Other: *
debug: Use NetworkManager policy merged settings
debug: exec get_dns_settings: /var/run/netconfig/NetworkManager.netconfig
debug: get_dns_settings: service 'NetworkManager' => rank '1'
debug: get_dns_settings: DNS_SEARCHLIST_1=''
debug: get_dns_settings: DNS_SERVERS_1='192.168.43.1'
debug: exit get_dns_settings: /var/run/netconfig/NetworkManager.netconfig
debug: write_resolv_conf: ' ' ' 192.168.43.1 '
debug: dns settings written to /var/run/netconfig/resolv.conf
debug: /etc/resolv.conf is already a link to /var/run/netconfig/resolv.conf
debug: dns-bind Module called
debug: dns-dnsmasq Module called
debug: nis Module called
debug: Resolved nis-policy 'auto' for service 'NetworkManager' to 'STATIC_FALLBACK * NetworkManager'
debug: Static Fallback
debug: Other: *
debug: Use NetworkManager policy merged settings
debug: exec get_nis_settings: /var/run/netconfig/NetworkManager.netconfig
debug: exit get_nis_settings: /var/run/netconfig/NetworkManager.netconfig
debug: set_nisdomainname: 176
debug: set_nisdomainname: => yes
debug: set_nisdomainname: old]=, new[176]=
debug: format_yp_conf called with :
debug: Using static fallback
debug: format_static[0] called
debug: write_yp_conf
debug: nis settings written to /var/run/netconfig/yp.conf
debug: /etc/yp.conf is already a link to /var/run/netconfig/yp.conf
debug: nis domainname '' is up to date
debug: ntp-runtime Module called
debug: Resolved ntp-policy 'auto' for service 'NetworkManager' to 'STATIC_FALLBACK * NetworkManager'
debug: Static Fallback
debug: Other: *
debug: Use NetworkManager policy merged settings
debug: exec get_ntp_settings: /var/run/netconfig/NetworkManager.netconfig
debug: get_ntp_settings: NTP_SERVER_LIST=''
debug: exit get_ntp_settings: /var/run/netconfig/NetworkManager.netconfig
debug: write_chrony_servers:
debug: ntp servers written to /var/run/netconfig/chrony.servers
I did the following to recreate teh resolv.conf, but that makes no difference to the DNS issue
# rm /etc/resolv.conf && systemctl restart NetworkManager.service
### /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.
nameserver 192.168.43.1
If there is any more information you’d like me to provide, please let me know.
Any help would be greatly appreciated. I know enough to get myself into trouble with networking, but not enough to fix it.