Paul Groves composed on 2017-08-22 19:13 (UTC+0100):
I have a strange problem when pinging a few machines on various iterations of opensuse / ubuntu.
I wanted to ping a computer on my lan e.g. ping paul-pc
which returned: ping: paul-pc: Name or service not known
so I then ran: nslookup paul-pc
which returned the correct IP of paul-pc
I am also unable to ssh to the hostname but I can using the IP.
any idea why?
I am confused because I can ping and ssh other devices on the same network without issue.
the computer I am ping-ing from is a static IPv4 address here is it's config file /etc/network/interfaces
# The loopback network interface auto lo iface lo inet loopback
# The primary network interface auto enp0s3 iface enp0s3 inet static address 192.168.0.20 netmask 255.255.255.0 gateway 192.168.0.1 network 192.168.0.0 #secondary DNS disabled for troubleshooting dns-nameservers 192.168.0.4
Which openSUSE is yours? Is NetworkManager installed? (not here) Does /etc/sysconfig/network/routes exist? If so, what's in it? (here, one line setting default) My (fixed IP) primary interface file only has 3 lines in it: BOOTPROTO='static', STARTMODE='auto' and IPADDR=.... -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org