Skip to content

baker7caleb/understanding-domain-name-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

How DNS Works

Understanding DNS

Domain Name System or DNS in laymans terms is the address book for the internet. We as users remember the Fully Qualified Domain Name (FQDN) of websites such as www.google.com rather than the Internet Protocol (IP) addresses. DNS helps users in that sense: people type in the FQDN and the DNS servers resolve the IP addresses of the websites on the backend to connect us to the website. It's like remembering your friend's name in your contacts list on your phone versus remembering their phone number, it is just easier! In this tutorial, I will be showing a way to build intuition on how DNS works.

Environments and Technologies Used

  • Microsoft Azure Virtual Machines
  • Microsoft Remote Desktop
  • Microsoft Active Directory DNS

Steps

Create two virtual machines

First, you need to create two virtual machines: one will be the domain controller (DC-1) and the other will be a regular client (Client-1). This lab builds off of the Active Directory lab and will be setup the same way.

You can view the Active Directory lab here.

Once you have your two virtual machines, log into both using Microsoft Remote Desktop.

1.

2.

Using Active Directory DNS

Next step, go into DC-1 and open up the Server Manager. Click on Tools -> DNS. Once at the DNS Manager, click on the domain (mydomain.com), right click in the main window pane and click "New Host (A or AAAA)...". Type in "mainframe" in Name and the private IP address of DC-1 (10.0.0.4) and click "OK."

3.

4.

5.

6.

Next, go into Client-1 and find the Command Prompt in the Start menu. In Command Prompt, type "ping mainframe". You will see that the ping results return to DC-1's private IP address.

7.

Next, go back into the DNS Manager and right click "mainframe" and click properties. Change the IP address to 8.8.8.8 and click "OK." Close Command Prompt and reopen it as an administrator. You can do this by right clicking on Command Prompt and "Run as administrator".

8.

9.

From here, type "ipconfig /flushdns". This will flush the DNS cache and the change to mainframe should now show. Then type "ping mainframe" and it should now show mainframe's new IP address of 8.8.8.8.

10.

11.

Next, we'll change a CNAME record. Go back into DC-1 and into the DNS Manager. Right click in the main window pane and click "New Alias (CNAME)..." Type in "search" in "Alias name" and for the FDQN type in Google's.

13

?.

Once this is done, go back into Client-1 and back into Command Prompt. Type in "ping search" and see the results. The ping should result to Google's IP address and FQDN.

14

After completing this lab, you should have a basic understanding of how and what DNS is.

REMEMBER TO DELETE YOUR RESOURCES ONCE YOU ARE DONE WITH THE LAB!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published