DNS stands for Domain Naming System and is used to convert domain names (web addresses) into Internet Protocol addresses. IP addresses are complicated and hard to remember, especially IPv6 addresses. DNS solves this issue by creating aliases for these long, complex numbers. The Internet uses DNS to translate FQDN (Fully Qualified Domain Names) into Internet IP addresses; ones that are routable and valid for use online. Local Area Networks or LANs also have DNS but this is usually used for private use or for forwarding Internet traffic to specific locations on the LAN.
LAN based DNS is used to translate server names or Intranet page names into private, non-routable IP addresses. For example, the server Bay has a DNS name of bay.company.org. This DNS name translates into 192.168.10.XXXX. Therefor when you type in "\\bay" to get files, the following is happening:
"\\bay" is translated into "\\bay.company.org" ("\\bay" alone is a NetBIOS name)
"bay.company.org" is translated into 192.168.10.XXX by the Companies DNS server, 192.168.10.1
You are transferred to the default share on 192.168.10.XXX
Most LAN DNS layouts are based on an Active Directory domain but if this is not required or wanted by an organization it is possible to setup a DNS domain for a LAN without Active Directory and this is how to do it:
1. Install Microsoft Windows Server 2003 Standard Edition.
2. Once you have finished, login to the server. A screen like the following should appear. Press Finish and then Yes to the confirmation.
3. The Manage Your Server Wizard will appear, exit out of that. We will be using the Control Panel and the dnsmgmt tool for configuration of the DNS server
4. Set your IP address by doing the following, navigate to Start, then Control Panel, then Network Connections, then right-click Local Area Connection and select Properties.
5. Select "TCP/IP Properties" and then Properties
6. Set a static IP address concurrent to the environment you are in. Set a DNS address as well relative to your workspace.
7. After setting your IP, navigate to Start, then right-click My Computer, and select Properties.
8. Switch to the Computer Name tab and then click "Change..."
9. On the dialogue that appears, select "More..."
10. Insert the name of the DNS domain you want your DNS server to be the server for. I chose sau3.org for mine. Best practices dictate that the DNS suffix should not be the same as your webpage.
11. After your press OK you will notice that your computer name has changed from SF-DNS-01. to SF-DNS-01.sau3.org.
12. When you press OK to apply these settings you will be asked to restart your server. Restart and continue with step 13.
13. Navigate to Start, then Control Panel, then Add or Remove Programs. Add or Remove Programs will open.
14. Click the button on the left that says "Add/Remove Windows Components". The Windows Components Wizard will open.
15. Select "Networking Services" and press the "Details..." button to the bottom right. The Networking Services dialogue will open.
16. Check "Domain Name System (DNS)" and press OK.
17. Press "Next" on the Windows Components Wizard page.
18. The Windows Components Wizard will configure components and eventually will need extra files. Insert your Windows Server 2003 disc and then Press OK to the following screen:
19. The wizard will prompt for a location. If you have the disc inserted press OK. If you are getting the files from a server or other location, select "Browse". When the wizard finishes press "Finish" and exit Add or Remove Programs.
20. Navigate to Start and then Run. Type in "dnsmgmt.msc" and press Enter.
21. If you test your DNS settings at this point you will find that your computer name cannot be found by DNS. This is exemplified by the following:
22. On dnsmgmt select Action, then Configure a DNS Server... The Configure a DNS Server Wizard will appear. Press Next.
23. Select "Create forward and reverse lookup zones" and then press Next. This will configure Root Hints, Forward lookup zones, and reverse lookup zones. Forward lookups convert DNS names into IP addresses. Reverse lookups convert IP addresses into DNS names. Root hints setup the base DNS system for the domain name.
24. Select "Yes, create a forward lookup zone now" and then press Next
25. Select "Primary zone" and then press Next
26. Enter in the zone name. This is the same thing you entered in step 10 and should correspond to the DNS suffix on the DNS server. Press Next.
27. Accept the default DNS file name and then press Next.
28. Select "Do not allow dynamic updates" and press Next. This means that only manual entires will be served. You will have to do all the entering of DNS names and IP addresses. On an AD server this is done dynamically every time you add a PC to the domain.
29. Select "Yes, create a reverse lookup zone now" and then press Next
30. Select "Primary zone" and then press Next
31. Enter the first 3 sets of numbers you entered in step 6 and press Next. This will associate any DNS requests for 192.168.10.X with the sau3.org domain
32. Accept the default DNS file name and then press Next.
33. Select "Do not allow dynamic updates" and press Next. This means that only manual entires will be served. You will have to do all the entering of DNS names and IP addresses. On an AD server this is done dynamically every time you add a PC to the domain.
34. On the Forwarders page, enter in the next-hop DNS server. This is the DNS server that DNS requests will go to if your DNS server does not know the answer. I set mine to the CTech DNS server. That DNS server is configured that if it does not know the answer to a DNS request to forward it to the next-hop DNS server. This is how DNS works.
35. The wizard is now complete. Click Next.
36. Now we need to set the primary DNS server for this server to itself. To do this open the Properties for Local Area Connection like we did in step 4. Click TCP/IP Properties and then Properties. Change the DNS server for this server to "127.0.0.1" (the loopback address). Click OK then Close.
37. Now you can run a "nslookup" on your DNS server and it will return an answer because it knows the IP address associated with your DNS server. If you run an "nslookup" on a host your DNS server doesn't know it will forward it to the next-hop. This is exemplified by the "nslookup www.yahoo.com".
38. Now we can add aliases. Open dnsmgmt the same way we did in step 20. Double click "Forward Lookup Zones" and then the zone you created.
39. Right click the white space and select "New Alias (CNAME)". Type in "dns" or any other name you want associate your DNS server with. In the FQDN text input type in the real name of the host you want to point this alias to. For me it is SF-DNS-01.sau3.org (the full computer name of my DNS server).
40. Now when you run an "nslookup dns" it points the IP address to the record for my server.
41. Now we can add hosts. Open dnsmgmt the same way we did in step 20. Double click "Forward Lookup Zones" and then the zone you created.
42. Right click the white space and select "New Host (A)". Type in "mac" or any other name you want associate your host with. In the IP address text input type in the IP address of the host you want to point this DNS record to. For me it is 192.168.10.72 (the IP address of the MacBook I am typing this document on). Click Add Host.
43. Now when you run an "nslookup mac" it points the IP address to the record for my MacBook.
44. Also, if I want to connect to the shared files on my MacBook, all I have to do is click Start, then Run, then type in "\\mac". Before my DNS server was setup I would have to find out the IP address of my MacBook and they run "\\%IPAddress%".
45. When I hit enter, my shared files are displayed.
©2011 Scott Fortin. All rights reserved.
Contact me here for reproduction or distribution rights.
No comments:
Post a Comment