the problem is simple but i dont how to do this . i have a centos 6 vps and installed ajenti control panel .. now i want to point my domain to my vps .. my domain is example.com and i want to use nameservers because i have a additional nameservers for my vps ..so my vps has a one ip address and two nameserver ip ..so now i have confused .. if i want add a records to my example.com and bind record on vps in both ? i am installed bind and i know its easily with out my own name server but i want to use my own nameserver..... the actual problem is i want to make my own nameserver and point that to my vps .. thats it .. ..now i created A record in domain register panel but ns1.example .com nameserver is invalid shows .any one help me to make my own name server and to point to my vps?
Hello there, I've been reading some of you others posts, and it seems you are very new to server administration. There is a difference on what name servers your actual web server uses and what name servers your domain uses. To answer the question above, you need to add A records and NS records to your DNS zone file for the domain. Your registrar is showing an error because you need to register the name servers with the registrar before you can use them. You may need to ask them for help or let us know who you have them registered though. Your zone file should look similar to the following: example.com. 86400 IN NS ns1.example.com. example.com. 86400 IN NS ns2.example.com. ns1.example.com. 14400 IN A YOURIP#1 ns2.example.com. 14400 IN A YOURIP#2 Are you using a control panel for your server? Hope that helps, Chris
Here you go: http://www.setupmyvps.com/adding-a-domain-to-your-vps-part-3-nameservers/ Parts 1 and 2 cover WHM and cPanel (though you're using ajenti, so it'll be different). That article is for GoDaddy VPS, but the concepts work on any provider - you just need to find the same pages in their admin toolbox. Hope it helps.
Unless you are just doing this to learn, I don't recommend hosting your own nameservers. That is just one more thing to manage on your server. If your DNS fails any services (email/web) that depend upon it will also go offline. So I recommend using your registrar or a DNS provider. While we have over 100+ servers at our disposal, we still don't host our own DNS as we prefer not to have to worry about it. We use DNS Made Easy for our DNS services. If you are doing this to learn, then see: https://www.digitalocean.com/community/articles/how-to-install-the-bind-dns-server-on-centos-6 or similar article for whatever OS you are using.
if i want to configure it was just easy ..but i want to use namservers ..now i created a zone file in bind and saved into /etc/named.conf ... also changed domain registrar records but now showing nothing ..my domain is sreerajworld.com.. i dont know when dnslookup didnt show any thing