Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to get IPv6 of a website?

Writer Matthew Harrington

How can I get the IPv6 address of any website ( eg ) using ping command in cmd on windows 8.1? And is it possible to do so if my OS only supports link-local IPv6? I tried this: ping -6 but it didn't work.

1 Answer

You can just use nslookup like you normally would. If the site has an IPv6 address it will be returned in the list:

nslookup google.com
Name: google.com
Addresses: 2607:f8b0:400a:804::1005 173.194.33.166 173.194.33.174 173.194.33.165 173.194.33.162 173.194.33.164 173.194.33.169 173.194.33.163 173.194.33.160 173.194.33.161 173.194.33.168 173.194.33.167

If you want to only return the IPv6 address (if present), you can use nslookup -query=AAAA:

nslookup -query=AAAA google.com
Name: google.com
Address: 2607:f8b0:400a:804::1005

Keep in mind that ping is not designed to be used as a lookup tool. In order to ping something the computer must do a lookup, and does end up showing you an IP address, but if your purpose is to find an IP address it makes more sense to just use nslookup directly. That's what it's there for.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy