Lab 8 - DNS: Week 9
Install BIND server for Centos OS in CML (command line mode).
Note: Student can install DNS/Bind for your Linux using Add/Remove Software in GNOME
1) Obtain BIND rpm packages for Centos 5.6 the nearest mirror host.
Step1: List BIND server related packages whether installed or not.
yum -y list bind*
bind.i386 30:9.3.6-16.P1.el5 base
bind-chroot.i386 30:9.3.6-16.P1.el5 base
yum -y list system-config-bind*
system-config-bind.noarch 4.0.3-4.el5.centos base
Step 2: install (Ensure your proxy is setup if where needed)
Before installing you need to setup your proxy details in the shell so you could connect to the Internet:
Export http_proxy=http://domain\\USR:PWD@Prxy-IP:port/
a. The proxy server:
i. Address: 10.6.8.12
ii. Port: 8080
iii. Username:students.local\CSU_ID_Number
iv. Password:Your_CSU_Password
v.
Then install BIND using bellow command:
yum –y install bind.i386* bind-chroot.i386* system-config-bind*
Hints: student can download these files and manually install using rpm –Uvh
http://mirror.aarnet.edu.au/pub/centos/5.6/os/i386/CentOS/
After install these three rpm packages you would ready to configure your DNS server as Figure 7.2
Figure 7.2
2) Create two example domains with Domain Name Server tools
Click on Domain Name Server for the first time the dialog shown as Figure 7.2
Figure 7.3
Click OK to go ahead to Figure 7.4
Figure 7.4
To create the new domain name click New icon as Figure 7.5.
Figure 7.5
Click Zone (2) and on the Class section click OK to select Internet class as (3) and on the Origin Type click OK (4) to select the default as Forward.Next Figure 7.6
Figure 7.6
In the New Zone type the new domain, in this example we use sga.net.au. and click OK as (1) ofFigure 7.6.
Note:Make sure you type the dot (.) at the end of the domain.
In number (3) student can change the root@localhost to info@your_domain_name. In this scenario we use [email protected] email and click OK to finish the sga.net.au domain name creation as (4)
Figure 7d-6
Right click on the new domain (sga.net.au) (1) and Add..(2) and select A IPv4 Address(3).
Note: Student needs any help for the records should refer to the Readings below.
Figure 7.8
In the Domain name, add the current domain name sga.net.au to becomewww.sga.net.au as (1) and in the IPv4 Address type your web server IP address (NOT the IP shown here) and click OK to finish.
Note: using ifconfigcommand in the Terminal to find out what is your current IP address. If not, then you should seeking help from your Instructor.
Figure 7.9
Repeat the previous steps to create a second (many as you wish) domain names. In this example, we create the second domain name called simt.edu.au as shown in the Figure 7.9.
Figure 7.10
Now all domain names have been created, to save the domains creation so far click on FileSave, the Question dialog will show as (2) in the Figure 7.10 click Yes to accept.
Now you may close the Domain Name Server tool by click File Quit as (3) in the Figure 7.10.
3) Starting your named (Domain Name) server
For the first time your named server may not running.
To start the named server type /etc/init.d/named startas (2) in Figure 7.11 below.
Note: you may try as (1)Figure 7.11 to check whether your named server is running or not, if the server is running you may need to use restart option gather than start option.
Now check the named server status of the named again as (3) the result should show as Figure 7.11.
Figure 7.11
Next, confirm is your Linux’s DNS setting is right by type nano /etc/resolv.conf
The result of the resolv.conf should show as Figure 7d-11 below. If not, make the change to similar to Figure 7d-11.
Figure 7d-11
4) Domain Name testing from Linux OS.
Figure 7.13
In this task, testing to see whether the domains is mapping correctly and is the named server is working.
Open the Terminal type ping www.simt.edu.au as (1) in the Figure 7.13.
Note: Student should ping your own domain name (FQDN) if you have created one.
What is the option –c3 in the (2) of Figure 7.13?
Acknowledgement / References:
1. http://educypedia.karadimov.info/computer/javanetworking.htm
2. http://wps.aw.com/aw_kurose_network_4/63/16303/4173750.cw/-/4173752/index.html
3. http://www.visualland.net/
4. http://www.net-seal.net/animations.php?sl=1
5.http://www.science.smith.edu/~jcardell/Courses/CSC249/HW/Wireshark_HTTP_SOLUTION_v6.1.pdf
6. http://www.eng.tau.ac.il/~netlab/resources/booklet/Wireshark_INTRO.pdf
7. http://www.arl.wustl.edu/~jst/cse/473/labs/studio1-supplement.pdf
8. http://bridges.brooklyn.cuny.edu/collegenow/modules/P7_Network_Security/Labs/Lab_1.pdf
9. http://people.uncw.edu/vetterr/classes/csc544-fall12/WireShark_Labs/Wireshark_Ethernet_ARP_Sept_15_2009.pdf
10. http://wiresharklabs.wordpress.com/2012/09/23/wireshark-lab-2-http/
11. http://it.iut.ac.ir/sites/fsites/it/files/u4/uploads/Networking%20Class-Wireshar%20Labs-Solutions/09-Wireshark_NAT_Jan_8_2010_solutions.pdf
12. http://www.eng.tau.ac.il/~netlab/resources/booklet/Wireshark_TCP.pdf
13. http://www.cse.ust.hk/~muppala/csit5610/labs/Wireshark_labs/Wireshark_802_11.pdf
14. http://www.ittc.ku.edu/~jpgs/courses/nets/lecture-lab-wireshark-display.pdf
15. http://www.getbookee.org/wireshark-lab-5/