Open main menu

CDOT Wiki β

Changes

Ifs-domains

8,139 bytes removed, 15:43, 22 May 2014
Undo revision 104917 by Rchan (Talk)
[[Category: RCHAN]]Remember= Windows DNS Server === 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 Add your nameserver's hostname as well as the name, such as an IP address. [http(ex://technetns1.microsoftmydomain.com/en-us/library/cc753143.aspx Source:Technetor nameserver.microsoftmydomain.com])
{|class="wikitable sortable" border="2" width= Objectives ===* 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"80%"
=== 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|-|[[User: Assign a static IP to your Windows 2008 Server ==Rchan|Raymond Chan]]| cp.netFollow the following steps to assign the static IP | 192.168.x99.82 to your Windows 2008 Server0# Start -> Network -> Network and Sharing Center -> Manage network Connections# Select the Local Area Connection that is connected to your "SRT210" network (check MAC address to verify)| 192. # Right click the icon and select "Properties" from the pop-up menu168.# Select # From the Local Area Connection Properties Dialogue box, select "Internet Protocol Verions 4 (TCP/IPv4) and click the Properties button99.1# Assign IP 192| ns.168cp.xnet| root.82 and leave the gateway and DNS fields.# Save and exitcp.net
==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|-|[[User: Create two zones for your domain ==pebarkley|Barkley, Peter]]Start the DNS Manager: Start -> Administrative Tools -> DNS|pebarkley.net|192.168.2.0|192.168.2.53|ns.pebarkley.net|
In the left panel of the DNS Manager Windows|-|[[User:rbhawaneesingh|Bhawaneesingh, click the HOST name of your Windows 2008Ravi]]| ravi. Record the entries displayed on the right panelnet| 192. You should see the following items: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 + |-|[[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 |-|[[LearnIDUser:adidrichsons|Didrichsons, Andy] with your Seneca email ID):]| adidrichsons.net| 192.168.6.0 Zone Type: Primary Zone| 192.168.6.53 Zone Name: [LearnID]| ns.adidrichsons.net Replace [LearnID] with your actual Learn ID Zone File: Create a new file with the suggested file name Dynamic Update: Do not allow dynamic updates|
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|[[User: Primary Zonetdo7|Do, Tri]] Reverse Lookup Zone Name: IPv4 Reverse Lookup Zone| tdo7.net Network ID: | 192.168.x8.0 [Reverse Lookup Zone Name: x| 192.168.1928.1| ns.in-addrtdo7.arpa ]net Zone File: Create a new file with the suggested file name Dynamic Update: Do not allow dynamic updates| root.tdo7.net
== Task 4|-|[[User: Add resource records to your zone ==ftung2|Fung, Timothy]]Click on the new zone created on the left panel| ftung2. Two resource records should appear on the right panel: the SOA and NS recordsnet| 192.168.9.0=== Resource Record: Start of Authority (SOA) ===| 192.168.9.53* Created automatically when creating the zone| ns. Record the "Name" and "Data" for the SOA resource record to your lab log bookftung2.net|
=== Part 1|-|[[User: Resource Record: Name Server (NS) Record ===sahyne|Hyderkhan-Mcintosh, Shayne]]|sahyne.net|192.168.10.0|192.168.10.53Created automatically when creating the new zone|ns. Record the "Name" and "Data" for the NS resource record in your lab log booksahyne.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|[[User: smtp.[LearnIDjjalalid|Jalali-Dolatshahi, Jamal]]|jjalalid.net IP: |192.168.12.0|192.168.x12.53|ns.jjalalid.com|root.mktiwana.25com
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|-|[[User: Resource Record: IPv4 Host Pointer (PTR) Record ===lrlanni|Lanni, Liane]]|lrlanni.com|192.168.14.0|192.168.14.53The PTR record should be created when creating the A record in the previous section|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]hlee78.net" as the target host|
=== 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| 192.[LearnID]168.net" as the fully qualilfied domain name (FQDN) of mail server16.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|-|[[User: Testing your Windows 2008 DNS Server ==tmoneypenny|Moneypenny, Todd]]* Configure your CentOS VM to use your Windows VM for DNS query|tmoneypenny. [Hint: update the /etc/resolvnet|192.conf file168. with your Windows VM's IP17.]0* Use one or more DNS lookup programs on your CentOS machine to query your Windows DNS server|192.168.17. 53* If you have trouble getting DNS response from your Windows DNS server, check the network connectivity between your Linux host and your Windows VM|ns. Please note that incoming ICMP packets are dropped by default if Windows firewall is ontmoneypenny. 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:<pre> netsh advfirewall firewall add rule name="ICMP Allow incoming ICMP V4" protocol=icmpv4 dir=in action=allownet</pre>|
=== Part 1|-|[[User: Using nslookup ===mrnavarra|Navarra, Matthew]]|mrnavarra.net|192.168.18.0|192.168.18.53The following paragraph is from the description on the man page for nslookup: |ns.mrnavarra.net|
<b>nslookup</b> is a program to query Internet domain name servers|-|[[User:jnguithi|Nguithi, Japheth]]|jnguithi.net|192.168.19.0|192. Nslookup has two modes: interactive and non-interactive168.19. 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 domain53|ns. Non-interactive mode is used to print just the name and requested information for a host or domainjnguithi.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 |-|[[LearnIDUser:myramos|Ramos, Milton] with your Seneca email ID and "x" with your assigned ID]|myramos.net|192.168.20.0|192.168.20.53|ns. Record the outputs in your eLog bookmyramos. net|
# nslookup |-query=SOA [LearnID].net 192.168.x.82# nslookup -query=A win-ns.|[LearnID].net 192.168.x.82# nslookup -query=A www.[LearnIDUser:ajribeiro|Ribeiro, Aylwyn].net 192.168.x.82# nslookup -query=MX [LearnID].net 192.168.x.82# nslookup -query=NS [LearnID]|ajribeiro.net 192.168.x.82# nslookup www.[LearnID].net |192.168.x21.820# nslookup |192.168.x21.53 192|ns.168ajribeiro.x.82net# 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|192. A brief summary of its command-line arguments and options is printed when the -h option is given168. Unlike earlier versions, the BIND 9 implementation of dig allows multiple lookups to be issued from the command line22.0* Unless it is told to query a specific name server, dig will try each of the servers listed in /etc/resolv|192.conf168. * When no command line arguments or options are given, dig will perform an NS query for "." (the root)22.53* It is possible to set per-user defaults for dig via ${HOME}/|ns.digrc. This file is read and any options in it are applied before the command line argumentsjrouse.net* 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 |-|[[LearnIDUser:gsubasin|Subasingha, Geeshan] with your Seneca email ID and "x" with your assigned ID]| gsubasin.net| 192.168.24.0| 192.168.24.53| ns. Record the outputs in your eLog bookgsubasin. net|
# dig @192.168.x.82 [LearnID].net SOA|-# dig @192.168.x.82 win-ns.|[LearnID].net A# dig @192.168.x.82 www.[LearnIDUser:bthomas13|Thomas, Benjamin].net A# dig @192.168.x.82 [LearnID].net MX # dig @192.168.x.82 [LearnID]|bthomas13.net NS # dig @|192.168.x25.82 www.[LearnID].net 0# dig @|192.168.x.82 -x 192.168.x25.53 # dig @192|ns.168bthomas13.x.82 -x 192.168.x.25 net|
=== Part 3|-|[[User: Using host ===mvalerio1|Valerio, Mark]]|mvalerio1.net|192.168.26.0|192.168.26.53The following paragraph is from the description on the man page for host:|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|-|[[User:ajstark|Stark, host prints a short summary of its command line arguments and options.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.[LearnIDUser:wtang11|Tang, Wallace].net 192.168.x.82# 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]]
1,760
edits