How to set OVH Secondary DNS?

milos

New member
Joined
Oct 18, 2016
Messages
17
Hi there,

I already set the secondary DNS in my OVH server panel successfully.
I use Directadmin panel to manage our server.
I have some questions to complete the process:
1. Do I need to set the NS2 as SDNS in my domain registrar panel too?
2. Do I need to set NS2 as SDNS in DA DNS administration section? such as server.exampledomain.com as hostname, exampledomain.com as main domain that was registered in OVH SDNS and other domains that use server DNS?

Thanks in advance,
Milos
 
Admin level
1. IP management
2. Add IP
3. Click on main IP
4. Link the IP you add to the main IP. Check add to DNS and if you want add to Apache.
5. DNS Management
6. Main domain (domain.com, not server.domain.com)
7. Check if you have
--- domain.com. NS ns1.domain.com
--- domain.com. NS ns2.domain.com
--- ns1.domain.com. A xxx.xxx.xxx.xxx main IP
--- ns2.domain.com. A xxx.xxx.xxx.xxx secondary IP
8. Check main admin configuration
--- NS1 ns1.domain.com
--- NS2 ns2.domain.com

Be shure you have RDNS at OVH with secondary ip ns2.domain.com

That should work
 
Thank you very much!

Admin level
1. IP management
2. Add IP
3. Click on main IP
4. Link the IP you add to the main IP. Check add to DNS and if you want add to Apache.
5. DNS Management
6. Main domain (domain.com, not server.domain.com)
7. Check if you have
--- domain.com. NS ns1.domain.com
--- domain.com. NS ns2.domain.com
--- ns1.domain.com. A xxx.xxx.xxx.xxx main IP
--- ns2.domain.com. A xxx.xxx.xxx.xxx secondary IP
8. Check main admin configuration
--- NS1 ns1.domain.com
--- NS2 ns2.domain.com

Be shure you have RDNS at OVH with secondary ip ns2.domain.com

That should work

Hi,

Thank you very much for your reply.
Perfect guide.
All successfully done.

Best Regards,
Milos
 
i have a problem

Dear Trix Hosting,
Your guide completely done by me but i just saw a problem in my DNS Administration section.
In DNS for my main domain i can see all of you wrote except --- ns2.domain.com. A xxx.xxx.xxx.xxx secondary IP
I see ---ns2.domain.com. A xxx.xxx.xxx.xxx Main IP.
I decided to delete my current ns2 with main IP and create one new ns2 with secondary IP but i got error. It's not possible to delete ns2.

Please let's explain your guide again:
***************************************************
Admin level
1. IP management
2. Add IP (you mean secondary IP, correct or not?)
3. Click on main IP
4. Link the IP you add to the main IP. Check add to DNS and if you want add to Apache.(it's OVH's IP i should add it to apache? I want to use it only for my main domain.)
5. DNS Management
6. Main domain (domain.com, not server.domain.com)
7. Check if you have
--- domain.com. NS ns1.domain.com
--- domain.com. NS ns2.domain.com
--- ns1.domain.com. A xxx.xxx.xxx.xxx main IP
--- ns2.domain.com. A xxx.xxx.xxx.xxx secondary IP
8. Check main admin configuration
--- NS1 ns1.domain.com
--- NS2 ns2.domain.com
*****************************************************************
I have Secondary OVH DNS in my OVH panel as sdns2.ovh.ca. They checked with txt subdomain ownercheck that i really owner of main IP.So i have their secondary IP that joined with my main domain and main IP and their secondary DNS.

It's possible to add it to ns3 in my domain registrar panel and in directadmin? It's good idea or not?
When in directadmin i add OVH secondary IP, the status of IP is free. It's normal?
If not how i can realize your guide?
and i have some A and AAAA records for my RDNSs with current main IP, when i add secondary OVH IP by your guide these A and AAAA record don't appear automatically. Do i need add duplicate with OVH secondary IP?

Thank you very much in advance,
Milos
 
Ns2

You have to own both ips to use it on directadmin. That is your case?

My issue is that secondary IP is not mine. it's OVH's IP.
Can I own in DA their IP?
And if i will do it my current will be ns2.domain.com. A xxx.xxx.xxx.xxx secondary IP?
 
OVH Secondary DNS

for what sdns2.ovh.ca?
I have sdns2.ovh.ca and related IP.
 
You can setup in dns administration the ns2.domain.com A xxx.xxx.xxx.xxx ovh ip. And do not add as ip in ip management. Take care that the domain have to be resolving at ovh dns to work properly.
 
Hello,

My issue is that secondary IP is not mine. it's OVH's IP.
Can I own in DA their IP?
And if i will do it my current will be ns2.domain.com. A xxx.xxx.xxx.xxx secondary IP?

OVH offers a secondary (or slave DNS), and if you want to use it and want it to be synced with your DA server, then you will require additional scripts. I'm not sure whether or not anybody offers ready solutions on this. You might consider searching possible solution by your own.

If want to write them by your own you should take a look to here:

https://www.directadmin.com/features.php?id=506
https://www.directadmin.com/features.php?id=1094

or hire somebody to write them for you.
 
Thank you Alex for your reply.

This is OVH manual about how to configure SDNS.
http://docs.ovh.ca/en/guides-dns-configuration.html

*quote from their site*
Using your own DNS server
This is the procedure to host your domain on your own DNS server. The rest of this tutorial will use these values as example, you should change them according to your informations:

DOMAIN: mydomain.com
SERVER_HOST: ns0000000.ip-1-2-3.net
SERVER_IP: 9.9.9.9
DNS_SERVER: ns1.mydomain.com
First create a glue record (a pair of NS and A records) at your registrar (the specific instructions and procedures to do this vary with each registrar).

The glue record is essentially a couple of DNS records (NS and A records) binding the domain mydomain.com to your the primary zone of your DNS server ns1.mydomain.com and to the secondary DNS zone in sdns1.ovh.ca (OVH’s secondary DNS server).

For instance:

mydomain.com NS ns1.mydomain.com
mydomain.com NS sdns1.ovh.ca
ns1.mydomain.com A 9.9.9.9
sdns1.ovh.ca A 8.33.137.137

Once the glue record is created, you must do the same in the main DNS zone of your DNS server.

Only then you should create a secondary DNS zone in sdns1.ovh.ca like so:

Connect to you OVH manager
Select your server and navigate to the secondary DNS section
Add domain mydomain.com and IP address 9.9.9.9
You will be provided a secret token that you must add as TXT record of your DNS zone
The interface will validate that you are the owner of the domain and complete the configuration
Using this configuration, you can take advantage of a free secondary DNS server provided by OVH which will host a slave zone of your domain.

This secondary DNS server works as a backup of your main DNS server.

You need to authorize zone transfers in your server towards OVH’s secondary DNS server. It is very important that you only authorize trusted DNS servers. Here’s an example with BIND (/etc/named.conf):

Code:
acl trusted-servers  {
    9.9.9.9;        // ns1.mydomain.com
    8.33.137.137;   // sdns1.ovh.ca
};
zone mydomain.com  {
    type master;
    file "zones/mydomain.com";
    allow-transfer { trusted-servers; };
};
Once configured, don’t forget to restart BIND:

/etc/init.d/named restart

If i change my NS2 at my domain registrar panel from ns2.mydomain.com -> 123.123.123.123 to sdns1.ovh.ca -> 8.33.137.137
then my server.mydomain.com (hostname) and many sites that use my DNS ns1.mydomain.com and ns2.mydomain.com will be affected too.
 
Probably I overlooked.... but it seems OVH does not offer API access to add/delete domains on their DNS as of now. So you will need to do all the procedures manually. If you need automation, I'd highly recommend using a minimal VPS (dedicated to running bind only) and use it as a secondary DNS.
 
Thank you Alex for your reply.

This is OVH manual about how to configure SDNS.
http://docs.ovh.ca/en/guides-dns-configuration.html



If i change my NS2 at my domain registrar panel from ns2.mydomain.com -> 123.123.123.123 to sdns1.ovh.ca -> 8.33.137.137
then my server.mydomain.com (hostname) and many sites that use my DNS ns1.mydomain.com and ns2.mydomain.com will be affected too.

This procedure is to use secondary dns with main domain of your server. If you want to use your server with DA and master and slave dns server all in the same machine, you have to rent a IP to point it to your server. Then you can use that secondary IP for slave DNS on your machine. But its recomendable to have separate dns servers.
 
This procedure is to use secondary dns with main domain of your server. If you want to use your server with DA and master and slave dns server all in the same machine, you have to rent a IP to point it to your server. Then you can use that secondary IP for slave DNS on your machine. But its recomendable to have separate dns servers.

I actually want use OVH secondary server for my main domain of my server. I can use it for my machine too. It's good idea but it's my question how do it?

How i can change my ns2 in my domain registrar panel without errors on intodns.com?
Will be stealth ns2 error. And my machine and other domains which use my main domain dns will be affected too.
In OVH panel i cann add/delete how many domains as i wish including my server.mydomain.com.
My goal is reduce downtime of my server or minimum my main domain.
If i will do their guide as sent by me in previous post, it will work for my main domain? if yes it will support my important main domain or i should create secondary dns server for my machine to support my main domain?

Best regards,
Milos
 
Milos,

I actually want use OVH secondary server for my main domain of my server. I can use it for my machine too. It's good idea but it's my question how do it?

You've already posted a guide from OVH here. So why don't you simply follow it? It has everything that you need to complete the task.

How i can change my ns2 in my domain registrar panel without errors on intodns.com?

Go to your registrar panel and change values for the second name server.

Will be stealth ns2 error. And my machine and other domains which use my main domain dns will be affected too.

You might or not face numerous issues... we can't predict that. But you've got the guide with steps on how to succeed with this.

My goal is reduce downtime of my server or minimum my main domain.

Changing the only second nameserver hardly can bring to a downtime if you have valid zones on the new and old nameservers.

If i will do their guide as sent by me in previous post, it will work for my main domain? if yes it will support my important main domain or i should create secondary dns server for my machine to support my main domain?

No need to setup additional VPS as a secondary DNS server if you are going to use one from OVH.

If for any reason you hesitate to do it yourself drop us a message. We will be happy to offer to you our services and setup everything you might need ourselves.
 
Thank you Alex for your quick reply.

I have an idea.
Keep my ns1 and ns2.mymaindomain.com and in my domain registrar add ns3 as sdns1.ovh.ca.
in DA only change dns of mymaindomain.com. save dns1 and dns2.mymaindomain.com but add one A record to sdns1.ovh.ca and one ns record sdns1.ovh.ca.
It should work i guess.
I dont want change my dns of my machine from ns2.mymaindomain.com to sdns1.ovh.ca.
What is your opinion.
I changed named_checkzone=0 in directadmin.conf.

Best regards,
Milos
 
Milos,

You are free to use any setup you want. I don't use DNS servers on the same server with Directadmin (it to speak about single server only without multiserver function), and I can't recommend using such a scheme. I don't use DNS from OVH, and since they do not offer API for adding/deleting zones, I would not use them either. As every time I would need to add a new domain I would need to verify domain at OVH and add a zone to them, that requires too much time...

So if you asked me what scheme to choose, I'd say use at least 2 Directadmin servers with Multiserver function, or move DNS from Directadmin server to 2-3 separate virtual servers.
 
You can add a ns2.mydomain.com CNAME sdns2.ovh... but it will resolv at your own and primary DNS server, and could go down both at the same time. Follow the guide you post.
 
Thank you Trix.hosting for your kind attention to my problem.
All done by me except editing named.conf
I receive error that DA can't restart named service when i add codes to my named.conf.
I think that it's not for DA.
Look at this code please:
acl trusted-servers {
9.9.9.9; // ns1.mydomain.com
8.33.137.137; // sdns1.ovh.ca
};
zone mydomain.com {
type master;
file "zones/mydomain.com";
allow-transfer { trusted-servers; };
};


Maybe you know what i should do and how test that i connected successfully to OVH SDNS server.

Best regards,
Milos
 
Back
Top