How To Create Nameservers On Vps
5 Answers 5
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:
- afraid
- BuddyNS
- Twisted4life
Find more services at this list of secondary DNS services page.
answered Jun 9 '12 at 17:55
michelemichele
575 3 silver badges 7 bronze badges
2
Depending on the VPS hosting company, you can install and run your own nameserver on your VPS and have your nameserver like ns.mydomain.com
. If you use the shared DNS, you will have to use the ns1.hostingcompany.com
nameservers.
answered Jun 8 '12 at 23:56
laurentlaurent
2,025 16 silver badges 13 bronze badges
3
-
But I only have 1 IP, can I repeat the address for the second nameserver?
Jun 9 '12 at 0:08
-
No, but you can give two names to the same IP. For a usual setup, I would stick with the shared DNS, mainly because a DNS server will "steal" your VPS resources without adding much.
Jun 9 '12 at 0:19
-
obs: by names, I mean A records of course
Jun 9 '12 at 0:24
Your VPS hosting company may act as your secondary DNS servers, but for a small domain it may be just as well to use your domain registrar. This can make lookups a little faster for those servers that need to look up you address.
answered Jun 9 '12 at 3:55
BillThorBillThor
27k 2 gold badges 34 silver badges 69 bronze badges
There's a reason why at least 2 nameservers are required. Don't put both name servers on the same machine.
If you want to run your own DNS servers, set up another cheap VPS somewhere. It doesn't require a lot of resources. However, you'll need to learn about BIND.
answered Jun 9 '12 at 6:56
xoferxofer
3,012 11 silver badges 19 bronze badges
create your both name server under 1 ip. Install bind on your VPS server. Configure Bind server and use your own Name server under your VPS server.
answered Jun 9 '12 at 7:13
UsmanUsman
7 2 bronze badges
Not the answer you're looking for? Browse other questions tagged domain-name-system vps nameserver or ask your own question.
How To Create Nameservers On Vps
Source: https://serverfault.com/questions/397090/how-to-setup-my-own-nameservers-with-a-shared-dns-service-on-my-vps
Posted by: aokiafteptips.blogspot.com
Ok, let's suppose that I want my nameservers appear as ns.mydomain.com, the only way to do this is setting up my own DNS server? or I can get my ns.mydomain.com using a external DNS service too?
Jun 10 '12 at 8:19
You can get personalized names on external DNS services also. This requirement is usually called "Vanity DNS" and is usually paid.
Jun 25 '12 at 21:51