** Before you set up DNS on your server, be sure you have registered your private nameservers at your Domain Registrar. Tutorials for the most common knowledge domain registrars are available in our Knowledge basal.
PART 1 – DNS SERVER INSTALLATION
To install a DNS server from the Control Panel, follow these steps:
From the Start menu, choice Administrative Tools – > Server Manager .
Expand and click Roles from the left field window. Choose Add Roles
Follow the ace by selecting the DNS Server character ( leave any previously checked items checked )
Click NEXT and then INSTALL to install DNS in Windows Server 2008
PART 2 – DNS SERVER CONFIGURATION
From the Start menu, choose Administrative Tools – > DNS to open the DNS comfort .
Highlight your computer name and choose Configure a DNS Server to launch the Configure DNS Server Wizard .
Click NEXT and then select the first option, Create a Forward lookup zone
On the next screen, leave the default option selected, This Server maintains the zone, and chink NEXT
now you will need to enter the sphere name that you want to create your first zone charge for. We are using “ example.com ” in this tutorial :
Click NEXT, and NEXT again on the adjacent two screens
On the Forwarders screen, select the choice “ No, it should not forward queries “
PART 3 – MANAGING DNS RECORDS
There are many types of DNS records, this is a basic tutorial and will show you how to point your domain name to the IP address you assigned to your web site via an A record. You can besides create other types of DNS records ( MX, CNAME, etc ) in a alike fashion .
In DNS Manager, expand your waiter name, then expand the ‘Forward Lookup Zones’ , right-click on your domain diagnose and choose Properties
Click on the Start of Authority (SOA) tab .
The SOA resource commemorate is constantly the first record in a DNS zone. Set the Primary Server to your primary coil nameserver :
next, pawl on the Name Servers check .
Remove anything presently listed, and chink Add and enter your nameservers ( i.e. – ns1.yourdomain.com, ns2.yourdomain.com )
When done, click OK to close the window. You are now ready to set up your zone records .
Right-click on your domain mention under Forward Lookup Zones, and choose New Host (A or AAAA)…
Leave the Name battlefield blank, and under IP Address, enter the IP address you configured for this web web site in IIS, and click Add Host .
You will most probably besides want to make a record for ‘ world wide web ’, so repeat the above gradation but this fourth dimension alternatively of leaving the Name field blank, record world wide web in that airfield :
PART 4 – DISABLE DNS RECURSION
The final step you ’ ll want to perform is to disable DNS recursion. This will help secure your waiter from a assortment of DNS recursion attacks .
To disable recursion, right-click on your DNS server and go to ‘ Properties ‘ .
Click the ‘ Advanced ‘ yellow journalism .
then check the corner labeled “ Disable recursion “
Congratulations! You have now set up DNS in Windows Server 2008 and have set up DNS records for your domain name.
You can create extra DNS records as needed ( MX, CNAME, etc ) by right-clicking on the domain under Forward Lookup Zones and selecting the allow type of record you wish to create .
You can test that your DNS waiter is by rights serving DNS from a Windows command motivate, by using the nslookup command in this format :
nslookup example.com ns1.yourdomain.com
For exemplar :