ubuntu:dns:open_dns_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:dns:open_dns_server [2020/07/15 09:30] – external edit 127.0.0.1 | ubuntu:dns:open_dns_server [2021/01/10 21:13] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - DNS - Open DNS Server ====== | ||
- | |||
- | Running the dns server ' | ||
- | |||
- | It means anyone can query your server for IP address and your dns server will answer them. | ||
- | |||
- | To illustrate this, we have two nameservers running bind for domain example.com. | ||
- | |||
- | <code bash> | ||
- | ns1.example.com | ||
- | ns2.example.com | ||
- | </ | ||
- | |||
- | We ask ns1.example to resolve outside domain google.com and if we get IP address (A record) in the answer section, then it means it is an 'open dns server' | ||
- | |||
- | <code bash> | ||
- | dig @ns1.example.com google.com | ||
- | dig @ns2.example.com google.com | ||
- | |||
- | ;; global options: | ||
- | ;; Got answer: | ||
- | ;; ->> | ||
- | ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 | ||
- | |||
- | ;; QUESTION SECTION: | ||
- | ; | ||
- | |||
- | ;; Query time: 32 msec | ||
- | </ | ||
- | |||
- | Since there is no ANSWER section or IP address both the nameservers does not constitute open dns server. | ||
- | |||
- | If you happen to run bind8 or later, all you have to do is set ' | ||
- | |||
- | <code bash> | ||
- | options { | ||
- | .... | ||
- | recursion no; | ||
- | } | ||
- | </ | ||
ubuntu/dns/open_dns_server.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1