Do I need to have 2 IP addresses to create DNS?

Paul Wellner Bou

Well-known member
Registered
Joined
Apr 20, 2016
Messages
95
Points
6
I am learning to manage an unmanaged VPS, in CWP it has a place to create DNS

example:
Code:
IP1 -> ns1.example.com
IP2 -> ns2.example.com
My question is, Do I need to have 2 IP addresses to create DNS? or just one?

example

Code:
IP1 -> ns1.example.com
IP1 -> ns2.example.com
If I only use one IP address for creating DNS then it can cause some issues for my VPS?
 

Shahzadqayyum

Member
Registered
Joined
Apr 16, 2016
Messages
34
Points
0
No problem! minimum 2 IPs required if both of the name servers are in Different subnets.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
You should use two ip if you want to create your own DNS server. But as you are running a VPS, the best solution is to shutdown the DNS server and to use any other DNS hosting such as Cloudflare. Or you can start your own anycast DNS servers with 8 VPS around the world ^^
 

Paul Wellner Bou

Well-known member
Registered
Joined
Apr 20, 2016
Messages
95
Points
6
No problem! minimum 2 IPs required if both of the name servers are in Different subnets.
What are different subnets?

You should use two ip if you want to create your own DNS server. But as you are running a VPS, the best solution is to shutdown the DNS server and to use any other DNS hosting such as Cloudflare. Or you can start your own anycast DNS servers with 8 VPS around the world ^^
Mean I can use 1 IP if I go with Cloudflare, it will help me solve the problem completely?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
What are different subnets?
A subnet is a range of ip. defined by the first ip of the block, and his size. Example 192.168.0.0/28 is not on the same subnet than 192.168.0.18/30 as /28 means a mask of 255.255.255.240 and you have only 16 IP in your block.

Mean I can use 1 IP if I go with Cloudflare, it will help me solve the problem completely?
No I mean, just shutdown your DNS server and use cloudflare to do it for you. Because if you can run yourself a DNS server, there is no reason to do it because it will use resources (a lot if it's BIND) and your DNS will never been as fast as Cloudflare DNS.

Test from : https://tools.keycdn.com/performance
To run it copy the url of a image on your website. in the cloudflare test : https://virtubox.pw/wp-content/uploads/2016/06/cropped-logo.png

Even if you have a bad web hosting, with cloudflare your website address is resolved faster.

 
Older Threads
Replies
5
Views
2,246
Replies
20
Views
10,648
Replies
22
Views
10,438
Replies
32
Views
21,088
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top