Quantcast
Viewing latest article 16
Browse Latest Browse All 50

Answer by mckenzm for How can I ping a computer in Linux?

Pay attention, people with years of experience overlook this.I apologise to Windows users presumably using PuTTY.

On Linux systems (clients), SSH resolves the host "name" in this order...

(Ubuntu naming shown as an example)

  1. Entries in ~/.ssh/config
  2. Entries in /etc/ssh/ssh_config
  3. Entries in /etc/hosts...etc.

This resolution is local and "nslookup" does not see these. You need to look yourself if strange results are occurring. Your router may cache DNS lookups as well. This will be an issue if your host is a laptop and frequently changes IP addresses.


Viewing latest article 16
Browse Latest Browse All 50

Trending Articles