Solved

BIND DNS - Do I Need It?

Posted on 2009-07-13
3
332 Views
Last Modified: 2012-05-07
Hi

I'm setting up a remote Apache webserver from scratch and I'm a bit confused about what role DNS plays on a webserver. I have a rudimentary understanding of how the DNS system works but I must be confused somewhere along the line.

1. On my PC I believe that the DNS settings I enter when I setup my broadband service tell my PC where to go to resolve domain names. Is this correct?

2. When I setup a URL it has a DNS control panel where I can set up my name servers and A/C/MX records. This server then communicates with the "Big 14" and tells them where my domain is located. Eventually my ISP's name servers get the info and when I type the url into my browser my PC goes to my allocated name servers and resolves the IP. Is this correct?

3. What does the DNS on an apache webserver do? Is it replacing the one described above (ie 2) or is it working like the PC DNS settings described above (ie 1) or is it doing something else?

Kind Regards,

0
Comment
Question by:lwfuk
3 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 250 total points
ID: 24842759
1) Yeah this is correct your DNS settings are the nameservers which could do recursive queries and could return an IP address resolved from the name you specify. This a a use of DNS in which it queries other name servers and returns back the resolved IP

2) When you setup a DOMAIN it has its DNS infromation. These DNS servers are responsible to memorizing what host occuies what IP address and responds to queries from other name servers. This is another function of DNS servers. In this case it wont respond to cliensts aking it any name but it will only respond to queries for specific names for the domains it is authorized for. So your ISP's nameserver gets the info and asks the "big 14" about your TLD server (such as .com, .uk, .tr). Then contacts the TLD (anc asks about the second level doman DNS (such as .example.com, co.uk, edu.tr). Then it contacts the second level server such as (www.example.com, comapny.co.uk, metu.edu.tr)
If it is all then gets the IP 1nfo and returns the result to you. If not goes further till it gets the response for initial request and returns the address for the query. This operation is called Recursion. Or Reqursive queries. So the info from the DNS is used your browser to make a connection to the IP adress HTTP port (80).

3) The DNS server responding to send your www.example.com is the DNS server responsible for serving queries about the IP names  for the  hosts located in your domain. HTTP server does not have a separate DNS. But for someone to find it the IP address it listens to must be registered to at least one authoritative domain server.

All in all the DNS server in 1 is just running as client and getting results from authoritative servers and serving the clients about this info. But the one in 2 is serving the data it is authoritative for.  Of course a DNS server can do both at the same time. It can server the data it is authoritative for while it runs recursive queries for the internal clients (XP or Linux PC's with DNS server setting pointing to it)
 
0
 
LVL 21

Assisted Solution

by:Julian Matz
Julian Matz earned 250 total points
ID: 24842762
Hi lwfuk,

No, you do not need a DNS server like Bind on your web server. This is only needed if you actually want it handling DNS requests.

When you register a domain, you need to assign it a minimum of 2 nameserver addresses. These 2 nameservers should ideally be dispersed in different geographic locations. When someone makes a request for the domain, first the root registry is contacted, the registry then returns the list of nameservers, and a request is made to those nameservers, which in turn provide the A records, which tell the browser what IP address to go to. MX and CNAME records are returned by your nameservers also, along with others (SOA, PTR, etc. etc.)

You would install Bind if you wanted to use your remote machine as one of these dispersed nameservers - for primary or secondary DNS.

Let me know if you have any more questions.
0
 

Author Closing Comment

by:lwfuk
ID: 31602948
Many thanks chaps.

Things are a lot more clear now.

Kind Regards,

Adrian Smith
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now