ping -a IP - random mirror name shown rather than host name!

I’ve setup a couple of Samba servers

When I type ping -a IP of server - random mirror name is shown
i.e ping -a 192.168.1.80 returns pinging opensuse.schludtech.de [192.168.1.80] with 32 bytes of data:

if I reboot - it will probably another name

I’m assuming this is the mirror the machine is connected to for updates!

If I ping the assigned Hostname - that return the IP correctly !

NB: I have checked our SLES 15SP3 Servers at work and these all respond correctly
ie. pinging 192.168.1.7 with 32 bytes of data
I notice there a few seconds pause before anything is returned from the SLES boxes

Any ideas ??

Any “192.168..” address is private – not part of the Internet.

If you are on a corporate network, then you should ask about this problem at your corporate network staff.

Hi
Or check the hosts file(s), local dns for the resolution name to that ip address (on your local network 192.168.1.xxx).

/etc/hosts contains

192.168.1.80 homeserver


If I ping homeserver I do get the IP

However, ping -a returns a random mirror as per my post
IPV6 is disabled

It would be really helpful if you could post the full command and output from console…

Documents\ping-image.png

oops

C:\Users\bas\Documents\ping-image.png

C:\Users\bas>ping -a 192.168.1.80

Pinging download.opensuse.org [192.168.1.80] with 32 bytes of data:
Reply from 192.168.1.80: bytes=32 time<1ms TTL=64
Reply from 192.168.1.80: bytes=32 time<1ms TTL=64
Reply from 192.168.1.80: bytes=32 time<1ms TTL=64
Reply from 192.168.1.80: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.1.80:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

Code tags make the stuff readable. :wink:

What does the command

hostname

give you on 192.168.1.80?

Again, command and output in code tags, plz :slight_smile:

PS: You ping from a Windows machine?

Hello,

There is an important, but not easy to find feature on the forums.

Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

An example is here: Using CODE tags Around your paste.

Regards,

The most likely explanation for this, is that you are behind a firewall that separates you from the Internet. And on that firewall there is a proxy server which sets up proxy connections to sites that you are permitted to access.

YES! I am - as I said above Ping from the OpenSure box is correct

BTW: NO Proxy Server just a Draytek 2862 Router with NAT

No Proxy - just a Drayteck 2862 Router with NAT

BTW: I am pinging from a Windows 10 PC

Ping 192.168.1.80 does respond correctly from the OpenSuSe Box

Please use Code-Tags for command output and do not write inside a quote.
https://forums.opensuse.org/showthread.php/536143-Using-Code-Tags-Around-Your-Paste

Question not answered…