Page 1 of 1

I couldn't run my own branded DNS

Posted: Mon Mar 21, 2016 6:34 am
by ayxano
I want to run my own name server. It is important for Vesta CP to send mails etc.
My domain is: alapar.az

First of all I created a droplet which is hostname is alapar.az
Then I created Floating IP for my droplet. I need 2 IP address to create glue records.
I installed Vesta CP and I created glue records on my domain manager:
ns1.alapar.az => 45.55.161.228
ns2.alapar.az => 159.203.149.151

Then I changes nameservers for alapar.az domain to:
ns1.alapar.az
ns2.alapar.az

And on Vesta CP I have these DNS records:
@ TXT "v=spf1 a mx ip4:45.55.161.228 ?all"
@ MX10 mail.alapar.az.
ftp A 45.55.161.228
pop A 45.55.161.228
www A 45.55.161.228
mail A 45.55.161.228
ns2 A 159.203.149.151
ns1 A 45.55.161.228
@ A 45.55.161.228
@ NS ns2.alapar.az.
@ NS ns1.alapar.az.


And my zone file is:

$TTL 14400
@ IN SOA ns1.alapar.az. root.alapar.az. (
2016032101
7200
3600
1209600
180 )

@ 14400 IN NS ns1.alapar.az.
@ 14400 IN NS ns2.alapar.az.
@ 14400 IN A 45.55.161.228
ns1 14400 IN A 45.55.161.228
ns2 14400 IN A 159.203.149.151
mail 14400 IN A 45.55.161.228
www 14400 IN A 45.55.161.228
pop 14400 IN A 45.55.161.228
ftp 14400 IN A 45.55.161.228
@ 14400 IN MX 10 mail.alapar.az.
@ 14400 IN TXT "v=spf1 a mx ip4:45.55.161.228 ?all"



and /etc/bind/named.conf file is:

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

zone "alapar.az" {type master; file "/home/admin/conf/dns/alapar.az.db";};


What's my wrong?

Re: I couldn't run my own branded DNS

Posted: Fri Mar 25, 2016 4:45 pm
by pandabb
Hello, check the guide below if it helps.

How to set up own Name Servers (vanity/private/child nameservers)

If you want to manage DNS zones using Vesta Control Panel, you will have to create 2 dns records, point them to server IP address and use them as a nameservers for the domain. In this example, we will use ns1.yourdomain.com and ns2.yourdomain.com.

Domain registrar
Every domain registrar has a different method of setting up private name servers. Below you will find instructions on how to create record in GoDaddy Account Manager.
1. Log in to your GoDaddy account manager
2. Next to domains, click launch
3. Click on the yourdomain.com
4. In the settings tab, click manage next to host names
5. Click add hostname
6. Enter the ns1
7. Enter the IP address of your server
8. Click add
9. Repeat above for the ns2
10. Change name servers for yourdomain.com to ns1.yourdomain.com and ns2.yourdomain.com

Vesta Control Panel
Once the private nameservers registration is complete, you need to configure Vesta Control Panel.
1. Add domain yourdomain.com (leave DNS Support mark checked)
2. Go to DNS menu
3. Click on edit under yourdomain.com
4. Change template to child-ns
5. Go to Packages menu
6. Edit package called default
7. Set ns1.yourdomain.com and ns2.yourdomain.com as nameservers

After you have done all steps, you can now set all of your domain names to use ns1.yourdomain.com and ns2.yourdomain.com. Please note that it may take up to 24 hours while dns records will start working.