- Published on : 08 March 2014 at 19:32 UTC
The DNS server is used to match a domain name (and its subdomains) with its corresponding IP address.
For example, when you type "google.com" in the address bar of your browser, it sends a request to the DNS server (specified either in the settings of your network connection, or those in the browser if you have modified) requesting the IP address corresponding to the domain. Questioned if the DNS server has information about this area, it will respond by sending the IP address corresponding to the domain name requested (220.127.116.11 in this case). Otherwise, he will ask a root DNS server (which must be configured on the DNS server) to obtain information and send them to you.
A DNS server can also do the reverse, ie to match an IP address with a domain name. This technique is used, for example, by the utility "NSLOOKUP" which we use to the end of the tutorial.
- Configuring Static IP
- Installation of "DNS Server" role
- Configuring the DNS server (to support Internet)
- Configuring the DNS server (for LAN)
- SOA and NS
- Creating records
- nslookup utility
- Configuring Clients
First, we will define a static IP address on our server (if you do not already have). To do this, click the network icon -> Network and Sharing Center.
Click on "Manage network connections".
Go to the properties of your "Local Area Connection".
Select "Internet Protocol Version 4 (TCP/IPv4)" and click "Properties".
Select "Use the following IP address" and enter the necessary information.
If you do not know how to fill these boxes, read our tutorial "Define a private static IP address".
Open the Server Manager and click on "Add Roles".
Note : If you have already configured an Active directory on your server, this role is already installed.
Select "DNS Server" and click "Next".
The wizard displays a description of the DNS server.
First we will configure our DNS server to respond to all requests, even if they relate to matters that are not configured on our DNS server. This is done by the root servers.
Go to the Start Menu -> Administrative Tools -> DNS.
Right-click your DNS server and click "Properties".
By default, your listening on all IP address (and therefore all network cards in IPv4 and IPv6) DNS server. If you want it only listen on certain IP addresses, select "Only the following IP address".
As mentioned previously, for our server to respond to all requests, we need to configure the root servers. Windows Server 2008, they are already configured.
If our server can not resolve some domains (or domain registrations), we will have to redirect the request to another DNS server. In our tutorial, we will redirect the request to the public Google's DNS server.
Click on "Edit".
Then simply add the desired typing their IP addresses DNS servers.
IP addresses of the DNS servers are Google :
Once you have specified an IP address, your server will attempt to resolve the domain name corresponding to the IP address. If all goes well, a green "v" should appear before it.