Difference between revisions of "Ifs-domains"

From CDOT Wiki
Jump to: navigation, search
(Undo revision 104918 by Rchan (Talk))
(Undo revision 104917 by Rchan (Talk))
Line 1: Line 1:
[[Category: RCHAN]]
+
Remember
= Windows DNS Server =
+
Add your nameserver's hostname as well as the IP (ex: ns1.mydomain.com or nameserver.mydomain.com)
== Introduction ==
 
Domain Name System (DNS) is a system that is used in TCP/IP networks for naming computers and network services that is organized into a hierarchy of domains. DNS naming locates computers and services through user-friendly names. When a user enters a DNS name in an application, DNS services can resolve the name to other information that is associated with the name, such as an IP address. [http://technet.microsoft.com/en-us/library/cc753143.aspx Source:Technet.microsoft.com]
 
  
=== Objectives ===
+
{|class="wikitable sortable" border="2" width="80%"
* To run an authoritative DNS server for your Domain.
 
* Add DNS server role to your Windows 2008 VM.
 
* To configure and maintain a primary DNS server for a given domain.
 
=== Hardware and software requirements (Bring to all Labs)===
 
* CentOS 6.5 x86_64 Live CD/DVD
 
* CentOS 6.5 x86_64 Installation DVD1
 
* Windows Server 2008 R2 Installation DVD
 
* SATA Hard Disk (500GB+) in removable disk tray
 
* USB Memory Stick (8GB+)
 
* Lab Logbook
 
  
=== Prerequisites ===
+
!Name
* Complete Task 5 of Lab 2 - A working Windows server 2008 VM with GUI.
+
! Domain Name
* Has been assigned a network ID (Please ask you professor if you haven't got one yet.) and recorded on front page of your Lab Logbook.
+
! Network
* Has requested and been assigned a DNS domain name for this course.
+
! Name Server IP
 +
! Name Server Host
 +
! Root Nameserver
  
==Task 1: Assign a static IP to your Windows 2008 Server ==
+
|-
Follow the following steps to assign the static IP 192.168.x.82 to your Windows 2008 Server
+
|[[User:Rchan|Raymond Chan]]
# Start -> Network -> Network and Sharing Center -> Manage network Connections
+
| cp.net
# Select the Local Area Connection that is connected to your "SRT210" network (check MAC address to verify).  
+
| 192.168.99.0
# Right click the icon and select "Properties" from the pop-up menu.
+
| 192.168.99.1
# Select
+
| ns.cp.net
# From the Local Area Connection Properties Dialogue box, select "Internet Protocol Verions 4 (TCP/IPv4) and click the Properties button.
+
| root.cp.net
# Assign IP 192.168.x.82 and leave the gateway and DNS fields.
 
# Save and exit.
 
  
==Task 2: Install DNS Server Role ==
+
|-
Follow the following steps to add DNS server role:
+
|[[User:krarmour|Armour, Kurtis]]
# Start up Server Manager: Start -> Administrative Tools -> Server Manager
+
|krarmour.net
# From the left panel, click the "Roles" item
+
|192.168.1.0
# Click "Add Roles" on the right panel
+
|192.168.1.53
# Follow the instruction provided by the "Add Roles Wizard" to add DNS Server role.
+
|ns.krarmour.net
 +
|
  
==Task 3: Create two zones for your domain ==
+
|-
Start the DNS Manager: Start -> Administrative Tools -> DNS
+
|[[User:pebarkley|Barkley, Peter]]
 +
|pebarkley.net
 +
|192.168.2.0
 +
|192.168.2.53
 +
|ns.pebarkley.net
 +
|
  
In the left panel of the DNS Manager Windows, click the HOST name of your Windows 2008. Record the entries displayed on the right panel. You should see the following items:
+
|-
 +
|[[User:rbhawaneesingh|Bhawaneesingh, Ravi]]
 +
| ravi.net
 +
| 192.168.3.0
 +
| 192.168.3.53
 +
| ns.ravi.net
 +
|
  
Global Logs
 
Forward Lookup Zones
 
Reverse Lookup Zones
 
Conditional Forwards
 
Root Hints
 
Forwards
 
  
Click the item "Forward Lookup Zones" to add a forward lookup zone for your domain.  
+
|-
 +
|[[User:kdayalingam|Dayalingam, Kowrinanthan]]
 +
|kdayalingam.net
 +
|192.168.4.0
 +
|192.168.4.53
 +
|ns.kdayalingam.net
 +
|
  
Follow the New Zone Wizard to create a new zone using your Learn ID + .net
+
|-
 +
|[[User:sdinunzio|Di nunzio, Stephen]]
 +
|sdinunzio.net
 +
|192.168.5.0
 +
|192.168.5.53
 +
|ns.sdinunzio.net
 +
|
  
Using the following information for the new zone (replace [LearnID] with your Seneca email ID):
+
|-
  Zone Type: Primary Zone
+
|[[User:adidrichsons|Didrichsons, Andy]]
  Zone Name: [LearnID].net     Replace [LearnID] with your actual Learn ID
+
| adidrichsons.net
  Zone File: Create a new file with the suggested file name
+
| 192.168.6.0
  Dynamic Update: Do not allow dynamic updates
+
| 192.168.6.53
 +
| ns.adidrichsons.net
 +
|
  
Click the item "Reverse Lookup Zones" To add a reverse lookup zone for your network.
+
|-
 +
|[[User:tdixon|Dixon, Trevor]]
 +
|tdixon.net
 +
|192.168.7.0
 +
|192.168.7.53
 +
|ns.tdixon.net
 +
|
  
Follow the New Zone Wizard to create a new reverse zone (replace "x" with your assigned network ID):
+
|-
  Zone type: Primary Zone
+
|[[User:tdo7|Do, Tri]]
  Reverse Lookup Zone Name: IPv4 Reverse Lookup Zone
+
| tdo7.net
                Network ID: 192.168.x
+
| 192.168.8.0
  [Reverse Lookup Zone Name: x.168.192.in-addr.arpa ]
+
| 192.168.8.1
  Zone File: Create a new file with the suggested file name
+
| ns.tdo7.net
  Dynamic Update: Do not allow dynamic updates
+
| root.tdo7.net
  
== Task 4: Add resource records to your zone ==
+
|-
Click on the new zone created on the left panel. Two resource records should appear on the right panel: the SOA and NS records.
+
|[[User:ftung2|Fung, Timothy]]
=== Resource Record: Start of Authority (SOA) ===
+
| ftung2.net
* Created automatically when creating the zone. Record the "Name" and "Data" for the SOA resource record to your lab log book.
+
| 192.168.9.0
 +
| 192.168.9.53
 +
| ns.ftung2.net
 +
|
  
=== Part 1: Resource Record: Name Server (NS) Record ===
+
|-
Created automatically when creating the new zone. Record the "Name" and "Data" for the NS resource record in your lab log book.
+
|[[User:sahyne|Hyderkhan-Mcintosh, Shayne]]
 +
|sahyne.net
 +
|192.168.10.0
 +
|192.168.10.53
 +
|ns.sahyne.net
 +
|
  
=== Part 2: Resource Record: IPv4 Host Address (A) Record ===
+
|-
To create an A record:
+
|[[User:mtimbrogno|Imbrogno, Mario]]
* Right click the forward lookup zone name or the "Action" on the menu bar and select "New Host (A or AAAA)
+
|mtimbrogno.net
* Type in "win-ns" into the "Name" field.
+
|192.168.11.0
* Type in the static IP address of your Windows 2008
+
|192.168.11.53
* Check the box for "Create associated pointer (PTR) record.
+
|ns.mtimbrogno.net
* Click the "Add Host" button to create the A and PTR record.
+
|
  
Add another host record:
+
|-
FQDN: smtp.[LearnID].net  
+
|[[User:jjalalid|Jalali-Dolatshahi, Jamal]]
  IP: 192.168.x.25
+
|jjalalid.net
 +
|192.168.12.0
 +
|192.168.12.53
 +
|ns.jjalalid.com
 +
|root.mktiwana.com
  
to your forward lookup zone and reverse lookup zone.
+
|-
 +
|[[User:ykornyk|Kornyk, Yurij]]
 +
|ykornyk.net
 +
|192.168.13.0
 +
|192.168.13.53
 +
|ns.ykornyk.net
 +
|
  
=== Part 3: Resource Record: IPv4 Host Pointer (PTR) Record ===
+
|-
The PTR record should be created when creating the A record in the previous section.
+
|[[User:lrlanni|Lanni, Liane]]
 +
|lrlanni.com
 +
|192.168.14.0
 +
|192.168.14.53
 +
|ns.lrlanni.com
 +
|
  
=== Part 4: Resource Record: Canonical Name (CNAME) Record ===
+
|-
To create a CNAME record:
+
|[[User:hlee78|Lee, Hyeyoung]]
* Right click the forward lookup zone name or the "Action" on the menu bar and select "New Alias (CNAME)
+
|hlee78.net
* Type "www" into the "Alias name" field.
+
|192.168.15.0
* Click the "Browse" button for the "Fully qualified domain name (FQDN) for target host"
+
|192.168.15.53
* Select "win-ns.[LearnID].net" as the target host
+
|ns.hlee78.net
 +
|
  
=== Part 5: Resource Record: Mail Exchanger (MX) Record ===
+
|-
To create an MX record:
+
|[[User:mmaheshwary|Maheshwary, Manav]]
* Right click the forward lookup zone name or the "Action" on the menu bar and select "New Mail Exchanger (MX)" item.
+
| mmaheshwary.net
* Leave the "Host or child domain" field blank.
+
| 192.168.16.0
* Click the "Browse" button and select "smtp.[LearnID].net" as the fully qualilfied domain name (FQDN) of mail server.
+
| 192.168.16.1
* Keep the default value "10" for the "Mail Server priority".
+
| ns.jtli1.com
* Click the "OK" button to save.
+
| ns.mmaheshwary.net
  
== Task 5: Testing your Windows 2008 DNS Server ==
+
|-
* Configure your CentOS VM to use your Windows VM for DNS query. [Hint: update the /etc/resolv.conf file. with your Windows VM's IP.]
+
|[[User:tmoneypenny|Moneypenny, Todd]]
* Use one or more DNS lookup programs on your CentOS machine to query your Windows DNS server.  
+
|tmoneypenny.net
* If you have trouble getting DNS response from your Windows DNS server, check the network connectivity between your Linux host and your Windows VM. Please note that incoming ICMP packets are dropped by default if Windows firewall is on. You can either stop the firewall on Windows or add the following rule (all in one line) to your Windows server 2008 to allow incoming ICMP packets:
+
|192.168.17.0
<pre>
+
|192.168.17.53
netsh advfirewall firewall add rule name="ICMP Allow incoming ICMP V4"
+
|ns.tmoneypenny.net
protocol=icmpv4 dir=in action=allow
+
|
</pre>
 
  
=== Part 1: Using nslookup ===
+
|-
The following paragraph is from the description on the man page for nslookup:
+
|[[User:mrnavarra|Navarra, Matthew]]
 +
|mrnavarra.net
 +
|192.168.18.0
 +
|192.168.18.53
 +
|ns.mrnavarra.net
 +
|
  
<b>nslookup</b> is a program to query Internet domain name servers. Nslookup has two modes: interactive and non-interactive. Interactive mode allows the user to query name servers for information about various hosts and domains or to print a list of hosts in a domain. Non-interactive mode is used to print just the name and requested information for a host or domain.
+
|-
 +
|[[User:jnguithi|Nguithi, Japheth]]
 +
|jnguithi.net
 +
|192.168.19.0
 +
|192.168.19.53
 +
|ns.jnguithi.net
 +
|
  
Consult the <b>nslookup</b> man page for all available options.
 
  
Run the following DNS query commands on your CentOS VM system to test your Windows DNS server set up. Replace [LearnID] with your Seneca email ID and "x" with your assigned ID. Record the outputs in your eLog book.  
+
|-
 +
|[[User:myramos|Ramos, Milton]]
 +
|myramos.net
 +
|192.168.20.0
 +
|192.168.20.53
 +
|ns.myramos.net
 +
|
  
# nslookup -query=SOA [LearnID].net 192.168.x.82
+
|-
# nslookup -query=A win-ns.[LearnID].net 192.168.x.82
+
|[[User:ajribeiro|Ribeiro, Aylwyn]]
# nslookup -query=A www.[LearnID].net 192.168.x.82
+
|ajribeiro.net
# nslookup -query=MX [LearnID].net 192.168.x.82
+
|192.168.21.0
# nslookup -query=NS [LearnID].net 192.168.x.82
+
|192.168.21.53
# nslookup www.[LearnID].net 192.168.x.82
+
|ns.ajribeiro.net
# nslookup 192.168.x.53 192.168.x.82
+
|
# nslookup 192.168.x.25 192.168.x.82
 
  
=== Part 2: Using dig ===
+
|-
The following are from the description on the man page for dig:
+
|[[User:jrouse|Rouse, Julian]]
* <b>dig</b> (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried. Most DNS administrators use dig to troubleshoot DNS problems because of its flexibility, ease of use and clarity of output. Other lookup tools tend to have less functionality than dig.
+
|jrouse.net
* Although dig is normally used with command-line arguments, it also has a batch mode of operation for reading lookup requests from a file. A brief summary of its command-line arguments and options is printed when the -h option is given. Unlike earlier versions, the BIND 9 implementation of dig allows multiple lookups to be issued from the command line.
+
|192.168.22.0
* Unless it is told to query a specific name server, dig will try each of the servers listed in /etc/resolv.conf.  
+
|192.168.22.53
* When no command line arguments or options are given, dig will perform an NS query for "." (the root).
+
|ns.jrouse.net
* It is possible to set per-user defaults for dig via ${HOME}/.digrc. This file is read and any options in it are applied before the command line arguments.
+
|
* The IN and CH class names overlap with the IN and CH top level domains names. Either use the -t and -c options to specify the type and class, use the -q the specify the domain name, or use "IN." and "CH." when looking up these top level domains.
 
  
Consult the <b>dig</b> man page for all available options.
+
|-
 +
|[[User:mrumisha|Rumisha, Martin]]
 +
|mrumisha.net
 +
|192.168.23.0
 +
|192.168.23.53
 +
|ns.mrumisha.net
 +
|
  
Run the following DNS query commands on your CentOS VM system to test your Windows DNS server set up. Replace [LearnID] with your Seneca email ID and "x" with your assigned ID. Record the outputs in your eLog book.  
+
|-
 +
|[[User:gsubasin|Subasingha, Geeshan]]
 +
| gsubasin.net
 +
| 192.168.24.0
 +
| 192.168.24.53
 +
| ns.gsubasin.net
 +
|
  
# dig @192.168.x.82 [LearnID].net SOA
+
|-
# dig @192.168.x.82 win-ns.[LearnID].net A
+
|[[User:bthomas13|Thomas, Benjamin]]
# dig @192.168.x.82 www.[LearnID].net A
+
|bthomas13.net
# dig @192.168.x.82 [LearnID].net MX
+
|192.168.25.0
# dig @192.168.x.82 [LearnID].net NS
+
|192.168.25.53
# dig @192.168.x.82 www.[LearnID].net
+
|ns.bthomas13.net
# dig @192.168.x.82 -x 192.168.x.53  
+
|
# dig @192.168.x.82 -x 192.168.x.25
 
  
=== Part 3: Using host ===
+
|-
The following paragraph is from the description on the man page for host:
+
|[[User:mvalerio1|Valerio, Mark]]
 +
|mvalerio1.net
 +
|192.168.26.0
 +
|192.168.26.53
 +
|ns.mvalerio1.net
 +
|root.mvalerio1.net
  
<b>host</b> is a simple utility for performing DNS lookups. It is normally used to convert names to IP addresses and vice versa. When no arguments or options are given, host prints a short summary of its command line arguments and options.
+
|-
 +
|[[User:ajstark|Stark, Alexander John]]
 +
|
 +
|
 +
|
 +
|
 +
|
  
Consult the <b>host</b> man page for all available options.
 
  
Run the following DNS query commands on your CentOS VM system to test your Windows DNS server set up. Replace [LearnID] with your Seneca email ID and "x" with your assigned ID. Record the outputs in your eLog book.
 
  
# host -C [LearnID].net 192.168.x.82
+
|-
# host -a win-ns.[LearnID].net 192.168.x.82
+
|[[User:wtang11|Tang, Wallace]]
# host -a www.[LearnID].net 192.168.x.82
+
|
# host -t MX [LearnID].net 192.168.x.82
+
|
# host -t NS [LearnID].net 192.168.x.82
+
|
# host www.[LearnID].net 192.168.x.82
+
|
# host 192.168.x.53 192.168.x.82
+
|
# host -t PTR 192.168.x.25 192.168.x.82
 
  
===Part 4: Test Results ===
 
Verify that the response for each DNS query gave the expected result. Compare the differences in the responses returned by nslookup, dig, and host.
 
  
= Completing the Lab =
+
|-
Show your eLog book for this lab to your professor and study the following questions:
+
|[[User:lpzwarych|AZwarych, Loren Peter]]
# What is DNS?
+
|
# What does each type of DNS Servers do?
+
|
# What type of DNS server does a computer need to browser the Internet?
+
|
# What is a root name DNS server? How many are there? What are their names and IP addresses? Who can query the root name server? Who can make changes to the root name servers?
+
|
# Which DNS server should you use?
+
|
# Is it safe to use any DNS servers on the Internet?
+
 
# How can we trust DNS server and use the information they provide when browsing the Internet? Who has control on the mapping of DNS names to IP addresses?
+
 
 +
|}
 +
 
 +
[[Category:OPS535]]

Revision as of 16:43, 22 May 2014

Remember Add your nameserver's hostname as well as the IP (ex: ns1.mydomain.com or nameserver.mydomain.com)

Name Domain Name Network Name Server IP Name Server Host Root Nameserver
Raymond Chan cp.net 192.168.99.0 192.168.99.1 ns.cp.net root.cp.net
Armour, Kurtis krarmour.net 192.168.1.0 192.168.1.53 ns.krarmour.net
Barkley, Peter pebarkley.net 192.168.2.0 192.168.2.53 ns.pebarkley.net
Bhawaneesingh, Ravi ravi.net 192.168.3.0 192.168.3.53 ns.ravi.net


Dayalingam, Kowrinanthan kdayalingam.net 192.168.4.0 192.168.4.53 ns.kdayalingam.net
Di nunzio, Stephen sdinunzio.net 192.168.5.0 192.168.5.53 ns.sdinunzio.net
Didrichsons, Andy adidrichsons.net 192.168.6.0 192.168.6.53 ns.adidrichsons.net
Dixon, Trevor tdixon.net 192.168.7.0 192.168.7.53 ns.tdixon.net
Do, Tri tdo7.net 192.168.8.0 192.168.8.1 ns.tdo7.net root.tdo7.net
Fung, Timothy ftung2.net 192.168.9.0 192.168.9.53 ns.ftung2.net
Hyderkhan-Mcintosh, Shayne sahyne.net 192.168.10.0 192.168.10.53 ns.sahyne.net
Imbrogno, Mario mtimbrogno.net 192.168.11.0 192.168.11.53 ns.mtimbrogno.net
Jalali-Dolatshahi, Jamal jjalalid.net 192.168.12.0 192.168.12.53 ns.jjalalid.com root.mktiwana.com
Kornyk, Yurij ykornyk.net 192.168.13.0 192.168.13.53 ns.ykornyk.net
Lanni, Liane lrlanni.com 192.168.14.0 192.168.14.53 ns.lrlanni.com
Lee, Hyeyoung hlee78.net 192.168.15.0 192.168.15.53 ns.hlee78.net
Maheshwary, Manav mmaheshwary.net 192.168.16.0 192.168.16.1 ns.jtli1.com ns.mmaheshwary.net
Moneypenny, Todd tmoneypenny.net 192.168.17.0 192.168.17.53 ns.tmoneypenny.net
Navarra, Matthew mrnavarra.net 192.168.18.0 192.168.18.53 ns.mrnavarra.net
Nguithi, Japheth jnguithi.net 192.168.19.0 192.168.19.53 ns.jnguithi.net


Ramos, Milton myramos.net 192.168.20.0 192.168.20.53 ns.myramos.net
Ribeiro, Aylwyn ajribeiro.net 192.168.21.0 192.168.21.53 ns.ajribeiro.net
Rouse, Julian jrouse.net 192.168.22.0 192.168.22.53 ns.jrouse.net
Rumisha, Martin mrumisha.net 192.168.23.0 192.168.23.53 ns.mrumisha.net
Subasingha, Geeshan gsubasin.net 192.168.24.0 192.168.24.53 ns.gsubasin.net
Thomas, Benjamin bthomas13.net 192.168.25.0 192.168.25.53 ns.bthomas13.net
Valerio, Mark mvalerio1.net 192.168.26.0 192.168.26.53 ns.mvalerio1.net root.mvalerio1.net
Stark, Alexander John


Tang, Wallace


AZwarych, Loren Peter