On Tue, Nov 15, 2011 at 5:02 AM, Chris Davies <chris-use...@roaima.co.uk> wrote: >> On Mon, Nov 14, 2011 at 11:44 AM, T o n g <mlist4sunt...@yahoo.com> wrote: > Tom H <tomh0...@gmail.com> 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` >> >> dig +short ... > > Fails for CNAME chains, sorry! > > $ dig +short www.bbc.co.uk > www.bbc.net.uk. > 212.58.246.94
Why sorry?! You're right. Thanks. I have a "ds" alias for "dig +short" that I use more or less regularly; if I've come across this issue, I must've ignored/filtered out the output in which I wasn't interested! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=sz0vxz3k8+wkuspecvmhe_piu+rt38udduzkyejdol...@mail.gmail.com