ping hostname
or
nslookup hostname
For more details:
http://www.zilckh.com/how-to-find-ip-address-from-hostname-in-a-windows-system-using-command-line/
hostname.
With the following command: No hostname
Typically on a command line (or command prompt in Windows) you can type the command 'hostname' and it will tell you the name of the computer you're working on.
The hostname (the name of the computer) can be found in most Linux distributions by issuing the hostname command without arguments. Alternatively, you can view the contents of /etc/hosts. The hostname will be listed next to the IP address 127.0.1.1.
you can use the ping command. the syntax is open DOS and then type ping ipaddress of the host machine
To ping a host 1,000 times, you can use the command line in your operating system. On Windows, open Command Prompt and type ping -n 1000 [hostname or IP address], replacing [hostname or IP address] with the target you want to ping. On Linux or macOS, use the command ping -c 1000 [hostname or IP address]. This will send 1,000 echo requests to the specified host.
hostname router1
The host name and the ip address is present in the HttpRequest object. Usually it is passed as an argument to the doXXX methods. public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { // Get client's IP address String ipAddress = req.getRemoteAddr(); // Get client's hostname String hostname = req.getRemoteHost(); }
from the global configuration mode
ping hostnameyou can ping different ways, by hostname or IPexample by ip to Google's dns server.ping 8.8.8.8example by hostname to google.comping google.com
Most operating systems have a methodology for determining the host name of a client. On the command line, the command is usually 'hostname', for both Windows and Unix/Linux. From the GUI Windows perspective, looking at the System or Computer properties will reveal the hostname.
Type your answer here... Router(config)# hostname Fontana