If yours doesn't, set up a DNS server (see this answer for a possible way). Some VM software will automatically provide DNS services to virtual machines and serve names declared in /etc/hosts (or HOSTS.TXT on Windows) on the host. The normal way to declare the name of a machine on Unix systems (like most of the world outside pre-Internet protocols) is to register it with DNS. ![]() Note that in order for a machine to know another machine's name, it isn't enough to set the name in that machine's /etc/hosts: that won't let other machines know. If you want to perform a reverse DNS lookup, use a tool whose job it is to work with DNS, such as host 192.168.56.42 or nslookup 192.168.56.42. If you pass an IP address, ping just uses the IP address. If you pass a host name, ping does a DNS lookup to get the address. If you pass an IP address, it displays an IP address.Īfter all, why would it bother with DNS? Pinging only requires the IP address. Many (most?) ping implementations don't do reverse DNS lookup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |