Leap 15.6
Set up and started Samba and then I can no longer access web sites. Seems to be something with the DNS.
ping responds “name or service not known”, but nslookup responds with proper address.
I’ve tried to stop Samba, but that doesn’t help. Also tried to stop firewall temporarily, but no success.
So how can I solve this?
Hello and welcome to the openSUSE forums.
Please always copy/paste what you do and get into a post. Thus not “ping responds …”, but
henk@boven:~> ping -c1 forums.opensuse.org
PING forums.opensuse.org(atlas.infra.opensuse.org (2a07:de40:b27e:1204::10)) 56 data bytes
64 bytes from atlas.infra.opensuse.org (2a07:de40:b27e:1204::10): icmp_seq=1 ttl=50 time=22.0 ms
--- forums.opensuse.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 21.964/21.964/21.964/0.000 ms
henk@boven:~>
you see that my example includes the line with the prompt and the command. So we all can see exact what you did and got and not your interpretation of it. (yes, we do trust computers more then people )
And use the “Preformatted text” button </>
for posting these computer copy/pastes like my example above.
Apart from showing a ping
and a nslookup
to a problem web URL, you could also show a host
of it and, because you think there is a DNS problem cat /etc/resolv.conf
Show
grep hosts /etc/nsswitch.conf
Thanls for your suggestions!
Her it comes
nsswitch:
hosts: [NOTFOUND=return] files mdns_minimal dns wins
ping:
ping: bt.no: Name or service not known
nslookup:
Server: 192.168.68.1
Address: 192.168.68.1#53
Non-authoritative answer:
Name: bt.no
Address: 3.167.2.70
Name: bt.no
Address: 3.167.2.122
Name: bt.no
Address: 3.167.2.114
Name: bt.no
Address: 3.167.2.108
resolv.conf:
### /etc/resolv.conf is a symlink to /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.68.1
This is missing in your computer texts.
BTW, I do get a different answer:
henk@boven:~> nslookup bt.no
Server: 195.121.1.66
Address: 195.121.1.66#53
Non-authoritative answer:
Name: bt.no
Address: 18.239.50.57
Name: bt.no
Address: 18.239.50.69
Name: bt.no
Address: 18.239.50.33
Name: bt.no
Address: 18.239.50.96
henk@boven:~>
It looks like you have configured your internet device manually to be able to enter the address of your internal (i.e. in your LAN) name server. In this case you have also to specify the DNS server of your external connection (your internet provider).
I tried to add DNS of my provider but that didn’t change anything.
OK here it comes again.
ojt@zappa:~> nslookup forums.opensuse.org
Server: 192.168.68.1
Address: 192.168.68.1#53
Non-authoritative answer:
Name: forums.opensuse.org
Address: 195.135.223.50
Name: forums.opensuse.org
Address: 2a07:de40:b27e:1204::10
ojt@zappa:~> grep hosts /etc/nsswitch.conf
hosts: [NOTFOUND=return] files mdns_minimal dns wins
ojt@zappa:~> ping -c1 forums.opensuse.org
ping: forums.opensuse.org: Name or service not known
ojt@zappa:~> cat /etc/resolv.conf
### /etc/resolv.conf is a symlink to /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.68.1
(I’ve added the DNS of my provider also, so< there are 2 more nameserver lines in the nslookup.)
I think there is a misunderstanding here.
When there are more nameserver
entries in /etc/resolv.conf
that means that when the first of them times out, the second one is tried. As long as the first one is reachable, the other ones are not consulted.
Removed the local DNS completely. It didn’t make a differnence.
That’s wrong. It should have been
hosts: files mdns_minimal [NOTFOUND=return] dns wins
So, quick question … “what” are you using to configure your network settings?
NetworkManager ??
Wicked ??
Something else ??
(( sidenote: an observation on my part …you wrote you “tried to add your provider’s DNS” … but the subsequent output of your resolv.conf shows NO evidence of that change ).
Thanks a lot! That fixed the problem, but maybe also hilighted a bug in the configuration tools? As far as I know I didn’t edit this file by hand.
Yes, this is a bug that lurked around for years. Unfortunately, to fix this bug someone needs to provide the exact steps how to reproduce it.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.