Sunday, October 8, 2017

domain name system - How to setup my own nameservers with a shared DNS service on my VPS



So I want to have my own nameservers, like ns1.mydomain.com and ns2 and I have the following things:





  • my domain (with godaddy)

  • a VPS with 1 IP

  • a DNS shared service with access to cPanel and ns1.hostingcompany.com and ns2.hostingcompany.com



So, it's possible to use their shared DNS service and get my own nameservers?


Answer



Use your VPS as primary for your DNS, then use a DNS replication service as secondary. This is simple and gives best reliability.




For your VPS: install and configure a DNS software. BIND is popular. djbdns is good.



As DNS replication (aka secondary DNS) service, there are several for free:





Find more services at this list of secondary DNS services page.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...