Web lists-archives.com

Re: Get the external IP address from a Linux box


On 27/05/18 22:14, André Rodier wrote:
>> My script also does the Google DNS lookup.
> I have four IP addresses, and Goodle DNS returns the first one,
> although I query from the second one.

Are you sure that isn't a problem at your end?  How your firewall is
identifying and routing the traffic, perhaps?

I've got access to an IPV4 /29 block and did the Google DNS query from
two hosts and got their own IP addresses.

# dig -t txt +short o-o.myaddr.l.google.com @ns1.google.com

# dig -t txt +short o-o.myaddr.l.google.com @ns1.google.com

Kind Regards

Attachment: signature.asc
Description: OpenPGP digital signature