ubuntu:dns:lame_nameserver_delegation
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:dns:lame_nameserver_delegation [2019/11/27 00:33] – created peter | ubuntu:dns:lame_nameserver_delegation [2021/01/10 21:09] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - DNS - LAME Nameserver Delegation ====== | ||
- | |||
- | A nameserver which gives non-authoritative answer is usually called ' | ||
- | |||
- | Every domain must have at least 2 nameservers and if each is asked, and if they all have domain zone information, | ||
- | |||
- | An example of lame delegation is: | ||
- | |||
- | <code bash> | ||
- | example.com | ||
- | example.com | ||
- | </ | ||
- | |||
- | ns1.example.com is configured to have zone information about the domain but ns2.example-server.net was not configured properly and does not have any information about the domain. | ||
- | |||
- | To get more in-depth understanding, | ||
- | |||
- | 1. First we find the nameservers of example.com: | ||
- | |||
- | dig example.com NS | ||
- | |||
- | <code bash> | ||
- | ;; ANSWER SECTION: | ||
- | example.com. | ||
- | example.com. | ||
- | </ | ||
- | |||
- | 2. Since we have received 2 nameservers, | ||
- | |||
- | > dig @b.iana-servers.net example.com NS | ||
- | > dig @a.iana-servers.net example.com NS | ||
- | |||
- | <code bash> | ||
- | ;; Got answer: | ||
- | ;; ->> | ||
- | ;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 | ||
- | |||
- | ;; QUESTION SECTION: | ||
- | ; | ||
- | |||
- | ;; ANSWER SECTION: | ||
- | example.com. | ||
- | example.com. | ||
- | </ | ||
- | |||
- | Look in the flags. | ||
- | |||
- | <code bash> | ||
- | flags: qr aa rd | ||
- | </ | ||
- | |||
- | Since ' | ||
- | |||
- | <WRAP important> | ||
- | **CAUTION**: | ||
- | |||
- | You should not use CNAME (alias) along with NS records and it often confuses most resolvers causing loops and often leads to ' | ||
- | |||
- | <code bash> | ||
- | example.com. | ||
- | example.com. | ||
- | example.com. | ||
- | </ | ||
- | |||
- | |||
- | So never use CNAME along with NS records. | ||
- | </ | ||
ubuntu/dns/lame_nameserver_delegation.1574814782.txt.gz · Last modified: 2020/07/15 09:30 (external edit)