Adding host in DNS server in Server 2012


Prerequisites :
Set a static IP for you server. Before configuring a DNS server, you should at least have a basic idea about DNS server and how it works. If you don’t know anything you can check this post. If you want to know about the records inside a DNS server, check this post.

Like DHCP server, configuring basic DNS server in Server 2012 will take about 15-20 minutes only. After installing DNS server, you can either create a forward lookup zone or reverse lookup zone or you can add new hosts and enter their respective IP addresses and the DNS server will take care of the rest.
Now in this post we will add a single host to the DNS server and try to ping the host to see if the DNS server can resolve its IP address and ping the IP.
Now there are various records in DNS and since we will be adding a ‘A’ record in the DNS server..

  1. Summary of DNS server.

    Start screen

    Start screen

     

  2. Navigate to ‘Tools’ –> DNS.

    Tools --> DNS

    Tools –> DNS

     

  3. This is the DNS server window.
    You can configure ‘forward lookup zone’, ‘backward lookup zone’, ‘Trust Points’, ‘Forwarders’ from here.

    DNS window

    DNS window

     

  4. Right click on your server name.
    You can see various options. You can clear the cache memory, launch nslookup for some host, start stop or restart server from All tasks, or configure DNS server where you can choose or create forward lookup zone. But we won’t go there.
    We will just add a new host and see if DNS can resolve its address.

    Configure DNS server

    Configure DNS server

    First step to configure DNS server

    First step to configure DNS server

    Adding or creating forward lookup zone.

    Adding or creating forward lookup zone.

     

  5. Navigate to Forward lookup zone and your domain name (example: geekstarts.tech )

    Select your domain from Forward lookup zone

    Select your domain from Forward lookup zone

     

  6. Right click on your domain and select ‘New Host (A or AAAA)’

    Add new host

    Add new host

     

     

  7. Enter name. It will automatically create FQDN. Enter IP address. Leave the next two check box as it is.

    Add hostname and IP

    Add hostname and IP

     

  8. Click on Add host. You’ll get a confirmation window.

    Confirmation window

    Confirmation window

     

  9. You can see the new entry in your domain.

    Check the entry

    Check the entry

     

  10. Open cmd and ping the host. Check if DNS server can resolve the address you gave.

    Ping the host name

    Ping the host name

    You Start, Stop or Restart the server from All tasks menu.

    Start or stop DNS

    Start or stop DNS

    You can also check the error logs from DNS events under Global Logs.

    Events

    Events

     

Leave a Reply