L
L
LittleMeN2011-09-07 09:51:26
Amazon Web Services
LittleMeN, 2011-09-07 09:51:26

How do I set up DNS on AWS for my own domain?

Good day,

I purchased a domain on webn**es.ru.

I set up ubuntu micro instance on Amazon and did the following BIND9 setup on AWS:

1. Added a line at the end of the
/etc/bind/named.conf file

...<br/>
include &quot;/etc/bind/zones.conf&quot;;<br/>

2. Created a file
/etc/bind/zones.conf

zone &quot;мойдомен.ru&quot; {<br/>
type master;<br/>
file &quot;/etc/bind/мойдомен.ru&quot;;<br/>
};


3. Created a file
/etc/bind/mydomain.ru

$ORIGIN interdoc.co.cc.<br/>
$TTL 86400 ; 1 day<br/>
@ IN SOA мойдомен.ru. root.мойдомен.ru. (<br/>
 2011090600 ; serial<br/>
 14400 ; refresh (4 h)<br/>
 3600 ; retry (1 h)<br/>
 2592000 ; expire (4w2d)<br/>
 600 ; minimum (10 minute)<br/>
)<br/>
NS ns1.мойдомен.ru.<br/>
NS ns2.мойдомен.ru.<br/>
мойдомен.ru. A 192.168.0.1<br/>
*.мойдомен.ru. CNAME @<br/>
ns1 A 192.168.0.1<br/>


on good domain requires at least 2 NameServer'a. I raised and configured the first one together with WebServer - I have one Amazon instance, the DNS server - also known as WebServer - is naturally one.

and here I had a hitch… what to do with the second backup slave ns2.mydomain.ru.

Loop NS1 to NS2 - how to set up master and slave zones on the same DNS server - is it necessary?

Raising a second instance only for slave NS - is it justified?

Use someone else's custom slave - tell me who provides this, preferably free?

Throw in the reserving slave NS and specify only one NS in the domain settings for webn**es.ru - and so it will do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2011-09-07
@bondbig

Loop NS1 to NS2
Maybe, it doesn't make much sense. You do not need to configure anything additionally, the concepts of slave / master exist only inside replication between servers, there is no difference for external clients.
Raising a second instance only for slave NS - is it justified?
Huh, I don't see the point. It is better:
Use someone else's custom slave
Thousands of them, easydns, afraid.org, Yandex , etc.
To score on the reserving slave NS and specify only one NS in the domain settings for webn**es.ru - and so it will do?
Also an option, why not? RFC recommends, but it will work anyway, it all depends on the criticality of this service for you and / or the customer. But it is better to use free/inexpensive dns-hosting. If you want cool things, then zerigo.com.

V
Vlad Zhivotnev, 2011-09-07
@inkvizitor68sl

debian.pro/125 times
debian.pro/156 two
debian.pro/92 three

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question