How do I resolve an hostname to an ip address in linux?
hawksbill last edited by
There are various ways to do this. Just listing two here.
using dig command.
$ dig +short www.iucnredlist.org
Using host command. Needs some filtering to strip out only the IP address.
$ host www.iucnredlist.org
© Lightnetics 2020