Answer the question
In order to leave comments, you need to log in
Set up your own dns server?
Hello.
Actually a subject here in what.
There is a server in germany and vds russia and i plan to rent it in vds usa. I would like to raise my own dns server on vdees, in order to throw fluff on myself and have my own ns ala ns1.mydomain.ru and ns2.maydomain.ru
As far as I understood this issue, I realized that I should configure it as follows.
1) In the domain control panel in the delegation section for the maydomain.ru domain, register ns1.mydomain.ru and ip vds which is in the USA, ns2.mydomain.ru and ip vds which is in Russia
2) Configure bind on vds
on both servers / etc/bind/hosts/mydomain.hosts
$ttl 38400
@ IN SOA ns1.mydomain.ru. info.mydomain.ru. (
2015071901
10800
900
604800
3600 )
@ IN A xxx.xxx.xxx.xxx
www IN A xxx.xxx.xxx.xxx
@ IN NS ns1.mydomain.ru.
@ IN NS ns2.mydomain.ru.
ns1 IN A 101.220.33.44
ns2 IN A 11.44.204.34
zone mydomain.ru {
type master;
file "/etc/bind/hosts/mydomain.hosts";
};
zone mydomain.ru {
type slave;
file "/etc/bind/hosts/mydomain.hosts";
masters {
101.220.33.44;
};
};
Answer the question
In order to leave comments, you need to log in
Take a closer look at the carousel slick kenwheeler.github.io/slick
there is an example of Slider Syncing
How can I make clicking on the thumbnail change the main image?
1. Yes
2. Not exactly.
On each server, /etc/bind/named.conf
insert a line into the file. include "/etc/bind/named.conf.zones";
The contents of the file "/etc/bind/named.conf.zones";
on the master will be as follows:
zone "mydomain.ru" {
type master;
file "/etc/bind/master/mydomain.ru";
allow-transfer { 11.44.204.34; }; // IP адрес слэйв сервера
allow-query { any; };
notify yes;
};
"/etc/bind/named.conf.zones";
on the slave :zone "mydomain.ru" {
type slave;
file "/etc/bind/slave/mydomain.ru";
masters { 101.220.33.44; }; // IP адрес мастер сервера
allow-query { any; };
};
/etc/bind/master/mydomain.hosts
$TTL 1d
@ IN SOA mydomain.ru. info.mydomain.ru. (
2015072000 ; Serial
3600 ; Refresh [1h]
600 ; Retry [10m]
1209600 ; Expire [14d]
36000 ) ; Minimum TTL [1h]
@ IN A xxx.xxx.xxx.xxx
www IN A xxx.xxx.xxx.xxx
@ IN NS ns1.mydomain.ru.
@ IN NS ns2.mydomain.ru.
ns1 IN A 101.220.33.44
ns2 IN A 11.44.204.34
/etc/bind/slave
, the zone file will be created by itself when the server is notified. If it doesn't work, see the link at the end. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question