Question

DigitalOcean's Nameservers: IP-adress?

I’m trying to set up a host name with DigitalOcean. My domain registrar (the web interface) is not only asking for the nameservers (like ns1.digitalocean.com ns2.digitalocean.com ns3.digitalocean.com) but also for the IP-addresses of the nameservers. Where can I find them? Thank’s!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

At this current point in time they are as follows: <br> <br>ns1.digitalocean.com has address 198.199.120.125 <br>ns2.digitalocean.com has address 141.0.170.89 <br>ns3.digitalocean.com has address 198.199.95.114 <br> <br>For future reference you can use the “host” command on your droplet to find the IP of a hostname (and a hostname of an IP, if there is one): <br> <br>e.g. host ns1.digitalocean.com <br> <br>[user@webserver ~]$ host ns1.digitalocean.com <br>ns1.digitalocean.com has address 198.199.120.125 <br>

Short answer

    DNS           |       IP

--------------------- | ------------- ns1.digitalocean.com | 173.245.58.51 ns2.digitalocean.com | 173.245.59.41 ns3.digitalocean.com | 198.41.222.173

How you can get DNS IP address On linux or macos, open terminal and ping the dns domain name: (I am not a windows user but I guess it should be the same command through cmd)

$ ping -c 1 ns1.digitalocean.com

The output would be something like this:

PING ns1.digitalocean.com (173.245.58.51) 56(84) bytes of data.
64 bytes from ns1.digitalocean.com (173.245.58.51): icmp_seq=1 ttl=55 time=22.0 ms

--- ns1.digitalocean.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 22.077/22.077/22.077/0.000 ms

And there you have the IP address to your DNS:

ns1.digitalocean.com (173.245.58.51)

It seems that the ip’s for all of your nameservers are changing quite frequently. If so, does this mean that I have to keep checking them regularly and keep logging into my registrar to update them? My registrar requires both host and ip for each nameserver.