Question

DigitalOcean's Nameservers: IP-adress?

  • Posted September 11, 2013

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!

Subscribe
Share

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

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.

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)

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>

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>

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.

Remember, ns3

Hello I found that IPS are

ns1.digitalocean.com - 173.245.59.51 ns2.digitalocean.com - 173.245.59.41

Is this okay?

If you’re doing this from a Windows machine you can open a command (dos) prompt and type: <br> <br>ping ns1.digitalocean.com <br> <br>this is what you should see: <br> <br>Pinging ns1.digitalocean.com [198.199.120.125] with 32 bytes of data: <br>Reply from 198.199.120.125: bytes=32 time=133ms TTL=57 <br>Reply from 198.199.120.125: bytes=32 time=132ms TTL=57 <br>Reply from 198.199.120.125: bytes=32 time=131ms TTL=57 <br>Reply from 198.199.120.125: bytes=32 time=132ms TTL=57 <br> <br>the same goes for ns2.digitalocean.com and ns3.digitalocean.com