Find IP of website via Chrome console

I have just changed the DNS records for a website, but they have yet to propagate on the East coast. Fortunately, I can see the change via my West coast proxy.

I need to get the IP of the new server that the new records are pointing to. Is there a fast and easy way to do this via the Chrome developer console?

1

5 Answers

Looking through the console, I don't see any built-in function to do this. However, there are several Chromium extensions that do what you want.

One of them is ipvfoo (web store). It displays the hostname and corresponding IPv4/IPv6 address for all requests made when loading the current page:

ipvfoo screenshot

Actually yes you can.

  1. Go to Developer Tools > Network.

  2. Reload your page.

  3. Select one of the URLs from the domain in question. The IP will be shown under Headers > General > Remote Address.

5

You can use this tab in Chrome, it shows you all the IP addresses that the browser is serving pages from.

Just type this into the browser URL and you should be good from there!
chrome://net-internals/#dns

3

If it doesn't have to be through the Chrome console, just ping the website in command prompt and it will give you the IP address.

1

If your problem is (was) that the IP address would flip back and forth between the old and new one, then one way to prevent the flip on your computer is to setup the IP address in your /etc/hosts file.

That file has a list of IP and corresponding names. For example:

8.8.8.8 example.com

I often do that when I switch my DNS IP addresses since I usually have the caches setup for at least 1h and often 1 day (My IPs change rarely).

You can do the exact same thing under MS-Windows. The main problem is to find the /etc/hosts file. It's actually buried within the C:\Windows\system32\drivers directory (that directory changed slightly between versions of Windows, I think, but it's there at least in Win8 and Win10). In newer versions of MS-Windows the file is read-only by default. May sure to make it read/write before trying to edit it.

For a browser to pick up the new address, you may have to restart it. Browsers may also have caches as pointed out by @BaldockJa's answer.

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

You Might Also Like