Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
If you want to write a script that can resolve an interface IP address, then perform a DNS lookup on the IP (basically an interface to hostname lookup), see the following page:
Resolving an IP Address and Hostname