|
|
||
|
|
||
|
|
||
Today's Internet relies heavily on a large number of distinct and simple protocols, many of which have been scaled to their conceivable limit to keep up with the growth of the global network. The Domain Name System (DNS) is a perfect example of such a protocol, though many would consider it theoretically infinitely scaleable. Originally designed for simply translating easy-to-remember
This chapter will cover the following:
DNS Background and Function A brief explanation of the DNS protocols and how they came to be.
Information Disclosure How DNS-based information disclosure can inadvertently allow an attacker to map your network.
Global Weaknesses Problems with the global implementation of DNS and how they might affect your organization.
Your Organization's DNS Servers An explanation of common threats and how to avoid them or mitigate their impact.
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
As DNS is one of the most important protocols in use on the Internet today, we'll begin with some background. Afterward, we'll discuss modern-day security considerations and what you need to look out for when contemplating DNS security within your organization.
Paul Mockapetris
| Note |
More information on BIND, ISC, and Paul Vixie may be found at http://www.isc.org/. |
While the RFCs make interesting reading, a two-minute primer on DNS is all you need to know in order to understand its overall design. The system itself is elegant in its simplicity and impressive in its proven scalability. The most important overall concept in DNS is the use of hierarchical name spaces and the use of the dot character (".") as the
> dnstracer -c -s . http://www.yahoo.com
Tracing to http://www.yahoo.com via A.ROOT-SERVERS.NET, timeout 15 seconds
A. ROOT-SERVERS.NET [.] (198.41.0.4)
\___M.GTLD-SERVERS.NET [com] (192.55.83.30)
\___ns5.yahoo.com [yahoo.com] (216.109.116.17) Got authoritative answer
\___ns4.yahoo.com [yahoo.com] (63.250.206.138) Got authoritative answer
\___ns3.yahoo.com [yahoo.com] (217.12.4.104) Got authoritative answer
\___ns2.yahoo.com [yahoo.com] (66.163.169.170) Got authoritative answer
\___ns1.yahoo.com [yahoo.com] (66.218.71.63) Got authoritative answer
\___E.GTLD-SERVERS.NET [com] (192.12.94.30)
\___ns5.yahoo.com [yahoo.com] (216.109.116.17) Got authoritative answer
\___ns4.yahoo.com [yahoo.com] (63.250.206.138) Got authoritative answer
\___ns3.yahoo.com [yahoo.com] (217.12.4.104) Got authoritative answer
\___ns2.yahoo.com [yahoo.com] (66.163.169.170) Got authoritative answer
\___ns1.yahoo.com [yahoo.com] (66.218.71.63) Got authoritative answer
\___K.GTLD-SERVERS.NET [com] (192.52.178.30)
\___ns5.yahoo.com [yahoo.com] (216.109.116.17) Got authoritative answer
\___ns4.yahoo.com [yahoo.com] (63.250.206.138) Got authoritative answer
\___ns3.yahoo.com [yahoo.com] (217.12.4.104) Got authoritative answer
\___ns2.yahoo.com [yahoo.com] (66.163.169.170) Got authoritative answer
\___ns1.yahoo.com [yahoo.com] (66.218.71.63) Got authoritative answer
\___J.GTLD-SERVERS.NET [com] (192.48.79.30)
... ad nauseum through the last of the thirteen root servers.
Whenever we explain this process to people, we are usually asked, "Where do I get the root server addresses in order to start this whole sleuthing process?" Their addresses are stored on your disk or, rather, your name server's disk. DNS server software packages come prepackaged with a root server listing in the form of a DNS cache file (also sometimes called the hints file) that lists the 13 root DNS servers (A through M) in the form of {A-M}.ROOT-SERVERS.NET and their corresponding IP addresses. This file should be updated periodically, though root server IP address changes seldom occur. Obviously, the security of this specific file on your name server's hard disk is of paramount importance. In fact, the security of every server in the lookup chain described above is critically important.
| Tip |
Visit http://www.root-servers.org for a table of all the root DNS servers, the latest root hints file, and news about root DNS operations. |
Often we are asked, "Why are there
|
|
||
|
|
||
|
|
||