V
V
Vlad2016-03-14 11:20:31
Domain Name System
Vlad, 2016-03-14 11:20:31

How to make an NS server for your domain?

hello.
tell me, please, how can I register the dns server of my own domain at my site?
that is, if I have a video.ru site, then the DNS servers should be ns1.video.ru ns1.video.ru? how is that possible? I always set the NS of my hosting/vps

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
aol-nnov, 2016-03-14
@aol-nnov

what is the problem?
answer in order
1) raised your dns
2) it resolves to ns1.video.ru
3) it answers dns requests when you do dig ns1.video.ru @ip_address_of_your_ns
4) did you register your dns at the registrar? (if the problem is here, then everything is simple. specify ns1.video.ru <ip_address_of_your_ns>) usually the registrar has a separate field for such cases.

C
CityCat4, 2016-03-14
@CityCat4

Here in the "Publications" section there is an article in two parts - "Creating and managing DNS zones". Written a long time ago, but little has changed since then

V
Vladimir Zhurkin, 2017-07-20
@icCE

tell me, please, how can I register the dns server of my own domain at my site?
that is, if I have a video.ru site, then the DNS servers should be ns1.video.ru ns1.video.ru? how is that possible? I always set the NS of my hosting/vps

Unfortunately, there will be no short and clear answer here.
Another question, why would you want to do this?
But if you really want to, then here's roughly what you need to do.
As you have already been told, you need at least two servers with different ip addresses in different zones. This is a requirement so that two dns do not fall together at once.
These servers can be either on a Windows server or on any of the linux machines. If we are setting up on linux machines, then the installation of the northern part is necessary. I would recommend using powerdns, although of course there are a lot of materials on the network on configuring bind.
Alas, the configuration topic is not very trivial and I would recommend reading the book DNS and BIND - https://www.books.ru/books/dns-i-bind-5-e-izdanie-...
It says inside and out how dns is arranged and works + examples of different settings.
It's just that if you give an example of a working dns, he will say little without reading a book, but it's better to read a book than 100,500 examples. A couple of very crooked.
; test.loc Dumped Wed Jul 19 18:41:05 2017
;
test.loc. 86400 IN SOA ns1.test.loc. hostmaster.test.loc. (
2017062100 ;serial
10800 ;refresh
1800 ;retry
604800 ;expire
86400 ) ;minimum
test.loc. 900 IN A 192.168.10.1
test.loc. 900 IN NS ns1.test.loc.
test.loc. 900 IN NS ns2.test.loc.
ns1.test.loc. 900 IN A 192.168.10.2
ns2.test.loc. 900 IN A 192.168.10.3
test.loc. 900 IN MX 1 aspmx.l.google.com.
test.loc. 900 IN MX 10 aspmx2.googlemail.com.
test.loc. 900 IN MX 10 aspmx3.googlemail.com.
test.loc. 900 IN MX 10 aspmx4.googlemail.com.
test.loc. 900 IN MX 10 aspmx5.googlemail.com.
test.loc. 900 IN MX 5 alt1.aspmx.google.com.
test.loc. 900 IN MX 5 alt2.aspmx.google.com.
oko.test.loc. 900 IN A 192.168.10.4
nerv.test.loc. 300 IN A 192.168.10.5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question