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 172.20.0.7 7.0.20.172.in-addr.arpa domain name pointer COMPUTERNAME.DOMAIN.local. suse12:~ # host yahoo.de yahoo.de has address 124.108.105.24 yahoo.de has address 106.10.212.24 yahoo.de has address 77.238.184.24 yahoo.de has address 74.6.50.24 yahoo.de has address 98.137.236.24 yahoo.de mail is handled by 10 mx-eu.mail.am0.yahoodns.net. suse12:~ # host dwaves.de dwaves.de has address 78.46.249.71 dwaves.de has IPv6 address 2a01:4f8:c17:1b24:2:: dwaves.de mail is handled by 10 dwaves.de. # 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!