{"id":48177,"date":"2012-09-28T00:00:00","date_gmt":"2012-09-28T00:00:00","guid":{"rendered":"https:\/\/www.techopedia.com\/dns-one-internet-protocol-to-rule-them-all\/"},"modified":"2020-11-07T00:09:46","modified_gmt":"2020-11-07T00:09:46","slug":"dns-one-internet-protocol-to-rule-them-all","status":"publish","type":"post","link":"https:\/\/www.techopedia.com\/2\/28709\/networks\/dns-one-internet-protocol-to-rule-them-all","title":{"rendered":"DNS: One Internet Protocol to Rule Them All"},"content":{"rendered":"
Do you find it easy to remember long numbers? Most humans don't, but don't despair: Computers find it easy. Which, as it turns out, is exactly what the Domain Name System<\/a> (DNS) is all about. This is a protocol that turns a domain name like Techopedia.com into an Internet Protocol<\/a> (IP) address – in this case 184.72.216.57 – which is what computer use to identify each other over a network. So, if you've ever been online, chances are you've benefited from DNS, whether you realize it or not. It's a big part of what makes the Internet user-friendly for humans, and brings all the behind-the-scenes technical stuff down to earth. Let's look a little closer at one of the most integral parts of the Internet.<\/p>\n Among those who don't work with the technical aspects of the Internet, there's sometimes a common, pervading confusion about exactly what DNS actually does. It's surprising that a relatively innocuous three-letter acronym can be responsible for such perplexity and puzzlement when in reality, its job is a truly simple one.<\/p>\n It might be said that DNS makes the Internet more human friendly than computer friendly. That's because the vast majority of DNS lookups simply convert either a name to a number, or a number to a name. Contrary to popular belief it's really that straight forward.<\/p>\n Let's start with the basics and simply concoct an example using a Web browser<\/a> that is asked to visit www.techopedia.com<\/a>.<\/p>\n Since computers work best with numbers (they use ones and zeros in the binary computing language<\/a>), a DNS lookup is performed on the computer upon which the browser is running. The results of that query are that www.techopedia.com<\/a> is converted to an IP address, in this case an IP address that belongs to Amazon Web Services: 184.72.216.57.<\/p>\n That's called a forward DNS lookup. Conversely, a reverse DNS lookup <\/em>is the just the opposite, and occurs when an IP address is converted to a name, or 184.72.216.57 becomes www.techopedia.com<\/a>.<\/p>\n There are various reasons why this conversion is needed, but both these types of queries are important.<\/p>\n To say that DNS is key to the Internet is understating the obvious. Without it, very few services operate at all, never mind partially. Even those services running in the background that should probably function without correctly functioning DNS are often in a poor state of misconfiguration and fail anyway. What this means is that we rely on DNS for everything from email to video, to Twitter and Facebook.<\/p>\n The sheer numbers of DNS lookups in any given day are mind blowing. Google launched its own DNS resolver service in 2009. By 2012, it had served more than 70 billion requests.<\/p>\n That kind of volume shows just how useful a DNS resolver is in performing reliable DNS lookups for free without the need to run your own name servers<\/a>. In fact, most Internet service providers (ISPs) provide Internet users with name servers, which may be the DNS resolvers you're using right now.<\/p>\n Let's take a step back and look at the bigger picture briefly. The hierarchy that allows a DNS query to be answered is quite simple.<\/p>\n Trusted institutions (such as government bodies, NASA, ISPs and universities) are responsible for certain top-level domain names<\/a> such as .com or .biz. When your browser sends its initial request for a domain name's IP address, the query is first sent to what's called a root server<\/a>.<\/p>\n These root servers know which name servers (and which ISPs) correlate to the requested domain name and, they pass the query to them for an answer. Through anything from a few to several traversed name servers later, the browser is then given the answer it's looking for (hopefully), and can then connect to the IP address it has been given.<\/p>\n Check out the DNS records for Techopedia here<\/a>. Part of this is shown below.<\/p>\n <\/p>\n <\/p>\n There are many different types of DNS records, but for our purposes the two we're interested in are those needed for websites and email.<\/p>\n The A record is a simple announcement. It states that a particular hostname, or in other words a DNS name, points at one or more IP addresses.<\/p>\n It might be declared on a name server as shown below, where the "www" record points to the IP address 98.76.54.32:<\/p>\n IN A www.techopedia.com<\/a> 98.76.54.32<\/p>\n In order to send email to a domain name you would announce what's called a mail exchanger record (abbreviated to MX), like so:<\/p>\n IN MX mail.techopedia.com 12.34.56.78<\/p>\n Here the hostname "mail" points at an IP address and should accept email for that domain name. (Learn about other common DNS records in 12 DNS Records Explained<\/a>.)<\/p>\n Despite an unforgiving run of security issues, the most popular name server is BIND<\/a>. It has been around since the late 1980s and is widely accepted as the DNS implementation of choice. Another popular alternative, which came about following BIND's repeated security issues, djbdns<\/em> or otherwise commonly called TinyDNS<\/a>, is, as you might expect, a very small, lightweight piece of software that offered a financial reward if a security hole was exposed within its software as a way to attract users who had given up on BIND's track record for security.<\/p>\nWhat's DNS?<\/span><\/h2>\n
The Domain Name System in Action<\/span><\/h2>\n
DNS: The Big Picture<\/span><\/h2>\n
Common Lookups<\/span><\/h2>\n
Popular Name Servers<\/span><\/h2>\n
DNS: An Old Trick That Still Works<\/span><\/h2>\n