> On Mon, Nov 14, 2011 at 11:44 AM, T o n g <[email protected]> wrote: >> I know how to get an IP address *info* using dig, but has anyone looked >> into how to get *only* the IP address? so that I can use, eg. >> >> the_ip=`get_ip host`
Tom H <[email protected]> wrote: > dig +short ... Fails for CNAME chains, sorry! $ dig +short www.bbc.co.uk www.bbc.net.uk. 212.58.246.94 (You could try dig +short ... | grep -v '\.$', but I've not tested that exhaustively.) Chris -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

