Finding the IP address of your Cloudflare Nameserver

When you change your nameservers to point to Cloudflare, some domain registrars (e.g. GoDaddy) ask you to provide the IP address of the nameservers alongside them.

You can find the IP address needed with an online tool, or a command.

Using an online tool
You can use an online tool to find the IP address of your Cloudflare nameserver.

One example is digwebinterface.com, you can just enter your two Cloudflare nameservers (as in the example below) and click ‘Dig’, the tool will then return the IP address for each nameserver.
image

An alternative is dnschecker.org, you can just enter the nameserver, make sure the dropdown shows A and click search. It will then return the IP.

Using the command line

Windows 10

To open the terminal:
Click the start icon image
Type cmd and click to open the ‘Command Prompt’ image

The command
To see the IP address of the Cloudflare nameserver, we will use a command called nslookup. Enter this in your command line:
nslookup name.ns.cloudflare.com replacing name.ns.cloudflare.com with your first Cloudflare nameserver. Then press enter/return to run the command.
You will get a response that looks something like:

Server:  one.one.one.one
Address:  2606:4700:4700::1111

Non-authoritative answer:
Name:    name.ns.cloudflare.com
Addresses:  2001:0db8:85a3:0000:0000:8a2e:0370:7334
          192.0.2.1

This will give you the IP addresses of the nameserver. The one you most lilely want is the IPv4 address which is the second one in the format 192.0.2.1 in the example above. Just repeat the process for your second nameserver.

Mac

To open the terminal:
The Terminal can usually be found under Applications > Utilities and will look something like:image

The command
To see the IP address of the Cloudflare nameserver, we will use a command called dig. Enter this in your command line:
dig A name.ns.cloudflare.com +short replacing name.ns.cloudflare.com with your first Cloudflare nameserver. Then press enter/return to run the command.
You will get a response that looks something like this:

192.0.2.1

This will give you the IP addresses of the nameserver. Just repeat the process for your second nameserver.

Linux

To open the terminal:
Opening the terminal will vary on different linux distributions, however the icon normally liiks something like: image and often appears on the dock or under ‘Administration’ in the menu.
You can also use the shortcut Ctrl + Alt + T.

The command
To see the IP address of the Cloudflare nameserver, we will use a command called dig. Enter this in your command line:
dig A name.ns.cloudflare.com +short replacing name.ns.cloudflare.com with your first Cloudflare nameserver. Then press enter/return to run the command.
You will get a response that looks something like this:

192.0.2.1

This will give you the IP addresses of the nameserver. Just repeat the process for your second nameserver.


Note: This tutorial contains links to external resources over which we have no control. As always, any commands you run on your own device are at your own risk.



Tutorial Reference: CT-45

Reviewed: 05/20

This is a Community Tutorial, most are wiki posts, so can be contributed to by Regulars and MVPs here. If there is a tutorial you would like to see, you can request one here.

If you would like to provide any feedback on this tutorial, please post in the #Meta category, tag your post #TutorialFeedback and let us know the Tutorial Reference above.

Other great resources on this community include the Community Tips . These address best practices when configuring Cloudflare, how to fix issues you may see, and tools to troubleshoot. Also you can view Expert Tips, great posts on the community from people in the know that may help you with your issue.

We encourage users to check out these great resources and the Cloudflare Support Centre before posting


1 Like