How 2 Know
If you can't Google it, You Can Knowing it.

resolve hostname to internet address or vice versa

Host Commands,It’s a good command to resolve the IP Address to Hostname of Hostname to IP Address ( it’s check file ‘/etc/hosts’) which you can use it on your script:

For Example

#host TEstServer
TEstServer is 10.10.10.10



#host 127.0.0.1
loopback is 127.0.0.1,  Aliases:   localhost

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from How 2 Know

Subscribe now to keep reading and get access to the full archive.

Continue reading