Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Hostname to IP Address

Sample commands to get the IPv4 address of a domain host name:

$ ping -c1 togaware.com | awk '/^PING/{print $3}' | tr -d '()'
207.38.86.6
$ dig togaware.com | awk '/ANSWER SECTION/{getline; print $5}'
207.38.86.6
$ host togaware.com | awk '/has address/{print $4}'
207.38.86.6
$ nslookup togaware.com | awk '/Address: /{print $2}' | grep -v ':'
207.38.86.6


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.