Answer the question
In order to leave comments, you need to log in
How is NS server resolving done?
I can not understand one nuance. Let's say there is an example.com
domain and I want to have my own NS - ns1.example.com and ns2.example.com
1. I take two machines, roll BIND, make the necessary entries.
2. At the registrar, in the domain control panel, I enter my NS
. How, when accessing the example.com domain, are the IPs of my NSs preliminarily identified, which, in turn, will already have to report the IP of the site to the client?
Those. how for the domain example.com the chain will be executed
клиент обратился к example.com -> . -> com. -> ns1.example.com. -> возврат IP example.com клиенту
Answer the question
In order to leave comments, you need to log in
Briefly, using the example of my domain (qs.biz)
(the point is the root domain, resolving starts from it)
[email protected]:~$ host -t NS -v .
Trying "."
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64922
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 110843 IN NS b.root-servers.net.
. 110843 IN NS j.root-servers.net.
...... тут ещё много.
[email protected]:~$ host -t NS -v biz. b.root-servers.net.
Trying "biz"
Using domain server:
Name: b.root-servers.net.
Address: 192.228.79.201#53
Aliases:
.......
;; AUTHORITY SECTION:
biz. 172800 IN NS b.gtld.biz.
biz. 172800 IN NS a.gtld.biz.
.....
;; ADDITIONAL SECTION:
a.gtld.biz. 172800 IN A 156.154.124.65
b.gtld.biz. 172800 IN A 156.154.125.65
a.gtld.biz. 172800 IN AAAA 2001:503:7bbb:ffff:ffff:ffff:ffff:ff7e
......
[email protected]:~$ host -t NS -v qs.biz. 156.154.124.65
Trying "qs.biz"
Using domain server:
Name: 156.154.124.65
Address: 156.154.124.65#53
.....
;; AUTHORITY SECTION:
qs.biz. 7200 IN NS MASTER.qs.biz.
qs.biz. 7200 IN NS SLAVE1.qs.biz.
;; ADDITIONAL SECTION:
MASTER.qs.biz. 7200 IN A 176.9.238.243
SLAVE1.qs.biz. 7200 IN A 46.4.251.94
SLAVE1.qs.biz. 7200 IN AAAA 2a01:4f8:120:918c::a
[email protected]:~$ host qs.biz. 176.9.238.243
Using domain server:
Name: 176.9.238.243
Address: 176.9.238.243#53
Aliases:
qs.biz has address 176.9.238.243
[email protected]:~$ host -t NS -v vlad.pro. b0.pro.afilias-nst.org.
Trying "vlad.pro"
Using domain server:
Name: b0.pro.afilias-nst.org.
Address: 2001:500:c1::1#53
Aliases:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33961
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;vlad.pro. IN NS
;; AUTHORITY SECTION:
vlad.pro. 86400 IN NS slave1.qs.biz.
vlad.pro. 86400 IN NS master.qs.biz.
Received 74 bytes from 2001:500:c1::1#53 in 55 ms
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question