simple but usefull – you have the ip address of an computer in your local LAN – but you don’t know it’s computername.

for internet-usage the host command is usefull because it shows – if a website is reachable by IPv6 or not. (your LAN network needs to operate in IPv6 in order to ping6 host)

# try to find hostname for ip address (resolve ip)
suse12:~ # host domain name pointer COMPUTERNAME.DOMAIN.local.

suse12:~ # host has address has address has address has address has address mail is handled by 10
suse12:~ # host has address has IPv6 address 2a01:4f8:c17:1b24:2:: mail is handled by 10

# this command: nslookup, dig, host is not installed per default on centos
yum install bind-utils
# also on debian/ubuntu/arch it might be missing
apt-get install dnsutils -y

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!