How to set OVH Secondary DNS?

Milos,

I hope you will understand me correct. Forums are not the right place to start learning basics. If you copy-paste without understanding what you copy... one time you might finish with a ruined server... and lost data.

If you really want to learn, then at least read docs on every line you add in your configs or command you run: http://www.zytrax.com/books/dns/ch7/

Yes, sure it will require time and your attention. But this is the only way to learn basics.

A final hint: Do you really have zone mydomain.com on your server?
 
Hi Alex,

OK.
Thanks for your help.
I think that anywhere is a good place for learning. Basic or advanced doesn't matter.
Final hint: It was my last post at this site. Believe me!

Thank you guys all specially Trix.hosting from Lovely Argentina!

Best regards,
Milos
 
Very unlikely this will be your last post, i'm using DA for about 12 years now, and i still need help sometimes.

Don't get mad but Alex was right, here we help other member of the community for free and with our spare time, but if we give a suggestion and then users don't take the time to even read the output or the command the insert.. it's quite pointless.

Alex sayd that forum are not the place to start learning basic, and it's right. Because if you start to use a linux server, you may actually already know how to use linux, the basic at least, you can't expect that everyone give you a set of command ready to go and you just paste them without undertand them, this will just make you think that manage a server is very easy and it's not true.

So, honestly, i didn't even reply because your last post was quite a stupid question, because just reading it was clear that you did set "mydomain.com" in your config and that domain hardly was yours.

So, you can get mad and be offended how much you want, but Alex gave you a very easy hint to fix your problem, and you are responding that you're not going to ask help here anymore.. as i said, quite impossible...

So, instead of get rude and reply like an upset baby, understand your mistakes, learn from them, and remain a member of a community that has always helped each other.

You learn trying and making mistakes, not with other people works that are ready-to-go ;)

Up to you.

Best regards
 
So, honestly, i didn't even reply because your last post was quite a stupid question, because just reading it was clear that you did set "mydomain.com" in your config and that domain hardly was yours.
It's not true i didn't set "mydomain.com".
I don't know many many things about Linux but i know that instead of example.com i should fill my real domain.
Actually problem has been solved by me in base of OVH guide.
You are here very interesting guys. When i read your offensive replies to newbies users i can easily know your character.
Words such as "upset baby" and "stupid question" are not beautiful for official directadmin forum. So there is no right place to flout other users.

I read questions in this forum more than 4 years and always see your spam and offensive posts. When you replied to my post a few days ago, i told my brother that works with me that there is something unusual. These guys always flout newbies, i don't know why they didn't start flout me. At the i received my answers from you.

I will send in my next post in stackoverflow.com, webhostingtalk.com and this forum how join OVH SDNS Server with DA Server.

Good Luck,
Milos
 
Well, sorry if i offended you, but that's honestly what did looks like from your replyes, marking your "Final hint" in bold red.

And yes, you set mydomian.com, here it is your post
Code:
milos
milos is online now Registered User

Join Date
    Oct 2016
Posts
    16	

    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 {
[B]    9.9.9.9; // ns1.mydomain.com[/B]
    8.33.137.137; // sdns1.ovh.ca
    };
[B]    zone mydomain.com {[/B]
    type master;
[B]    file "zones/mydomain.com";[/B]
    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

And i'm actually very courious to see all my offensive replies that you say, considering i'm one of the Moderator (and Zeiter too) of the Forum and we co-operate with DA Staff almost daily to improve the application and add new features, and also considering the amount of post i have, and the amount of people that privately write to me for my help or even to pay me to mange their server, i really don't see how can i be an offensive person. And i never posted a SPAM post, you're actually doing it right now pointing different websites, but is not such a big deal.

My response two days ago on the other post, was a normal response that i usually give to users when they are making unclear requests, my response today was because you has been rude responding to Alex which have tryed to help you on this same thread multiple times.

Feel free to go to other websites, it's really up to you.

Best regards
 
How to set DA Server to OVH Secondary DNS Server (tutorial)

1. Add your main domain of your DA server to your OVH control panel as below:

OVH panel -> DNS -> Add a secondary DNS
- Fill your "maindomain.com" in related text box "Domain".
- Choose IP that your "maindomain.com" use from dropdown menu.
You will see this message from OVH:
Before continuing, you must add a TXT field in the DNS zone of the domain "maindomain.com", with the sub-domain ownercheck and the following value:xxxxxx
- Go to your DA panel
DNS Administration -> click on your "maindomain.com" -> and add an A record with name of "ownercheck" and value "xxxxxx"
Maindomain is your real domain and xxxxxx is OVH's token that you got in your OVH panel.
- After that click on CONFIRM in your OVH panel. If all is OK you will see your domain in Manage secondary DNS section.
Name of secondary host and related IPv4 and IPv6 are located in the top of page where you added your maindoman.com.
- Go to your domain registrar panel and change your ns2 to OVH's name of secondary host (in my case sdns1.ovh.ca) but it will be different for different users.
- Return back to your DA server panel and edit directadmin.conf (you should have root password)
If you can edit it through SSH then you can use nano or vi command to edit it at:
/usr/local/directadmin/conf/directadmin.conf
add named_checkzone=0 save and restart directadmin.
- Go to the DA panel -> DNS Administration
Open your "mydomain.com" zone and remove your old ns2.
add your OVH Secondary host dns (sdns1.ovh.ca or something else from your OH panel) to this zone
maindomain.com. NS OVH's SDNS

after that remove ns2.maindomain.com A record and add new
OVH's SDNS(for example: sdns1.ovh.ca) A OVH's SDNS IP(xxx.xxx.xxx.xxx)

- Go to DNS Administration of you DA panel
open server.maindomain.com and remove old ns2 record and add one new record as below:
server.maindomain.com NS OVH's SDNS(for example: sdns1.ovh.ca)

- Through file editor of your DA panel open named.conf
find your zone "maindomain.com" at the end of file and add this:
allow-transfer { trusted-servers; };
so your zone "maindomain.com" will be like this:
zone "maindomain.com" { type master; file "/var/named/maindomain.com.db"; allow-transfer { trusted-servers; }; };
change maindomain.com to your real domain.

and add this piece of code in named.conf too:
acl trusted-servers {
9.9.9.9; // ns1.mydomain.com
8.33.137.137; // sdns1.ovh.ca
};
change IP's to your main IP that your maindomain.com uses and second to OVH's SDNS IP.

-Restart named.conf from your DA panel "Service monitor" or from SSH.

All done.
Let's test that all is OK with your configuration or not:
Through SSH:
dig @OVH's SDNS maindomain.com

Notice you should wait for DNS propagation after changing DNS in your domain registrar panel. You can check that new DNS set or not via https://intodns.com

Best regrads,
Milos
 
Yes, they say "your "mydomain.com"", it is suppose to be your website, not mydomain.com, there is no point to create a DNS zone for a domain it is not yours.

You have just confirmed that you copy/paste without understand what you were doing.

Best regards
 
milos, take care that when the guide says "mydomain.com" you should write down your really domain name. Did you write your own domain instead of "mydomain.com" or "maindomain.com"?
 
Apparently yes he did use "mydomain.com", but he also sayd that now is working, so i guess he will ask somewhere else when will not work :)

And that's not beein a bad guy, i'm quite sure, reading the whole thread, that it's not working or not completly (as pointed out by Alex he will need to manually work on it everytime he got a new domain).

Best regards
 
Back
Top