How To Find IP Address Of a Domain Using Command Line In Windows

Ads by Google

In Windows, you can do plenty of things using command line. Converting a domain name to its IP address using the nslookup command is one of them. You can also find IP address of any website’s host machine.

Here’s is the step by step procedure:

1. Click on Start button and type cmd in the search box. Press “Enter”.

command line windows

2. Windows command prompt will open. Now type nslookup ftp.yahoo.com and press enter.

nslookup ip address

3. It will show you Yahoo FTP IP address. This is IP address of the server where yahoo.com is hosted.  Similarly you can find host machines for any other website.

yahoo ftp address

Ads by Google

4. If you want to look up IP address of a website then type nslookup in the command prompt and press enter.

nslookup command

5. Now enter the domain name of any website and press enter. It will show you the IP address of that particular site. For example I typed google.com and pressed enter. It returned Google’s IP address: 209.85.231.104.

It means if I type http://209.85.231.104 in a browser’s address bar, google.com will open.

google ip address

Similarly you can convert any other domain name into its IP address. You can also check the result by typing the IP address in the browser address bar.

Now, for the more tech savvy folks among you, the nslookup command is used for testing out DNS servers. The above tutorial just outlines the basic usage of this command. There’s a lot more you could do with it. We will take it up in detail in a future post.

Remember, for websites that don’t have a dedicated IP address, you could get different results each time you use this command.

Before You Go...

Just wanted to let you know that we've just launched our YouTube Channel where we'll upload awesome video content. Make sure you hit the subscribe button to stay up to date with the new videos we upload every week.

Get Guiding Tech articles delivered to your inbox.

Also get a free ebook when you subscribe.

We will never share your address. Unsubscribe at any time.