Assignments of day 1 in week #1

DNS, WHOIS, TRACEROUTE

Last Updated : Friday, 26-Apr-2002 16:58:30 HKT

  1. Set up web pages at your host

    1. login your host and get its root shell

    2. cd /home/httpd/html and edit the index.html file. Including the following information in your web front page:

      • - Your user login name
      • - Your full name
      • - Your code no.
      • - Your hostname

    3. Check if the httpd is running.

      use "ps -ef|grep http" to check if the httpd is running. If not, type "/etc/rc.d/init.d/httpd start" to start it.

    4. Try to access your web page by the folloing url:

      http://ntec[your_code_no].wsh.hkntec.net

  2. Identify your host network configuration

    1. login your host and get its root shell

    2. try to figure out the following information of your host
      • - IP
      • - Hardware address
      • - hostname
      • - netmask
      • - broadcast
      • - network ID
      • - default gateway
      • - yp server

    3. post them to your host home pages

      Your may use the following commands to figure out the above information.

      • ifconfig -a
      • netstat -r
      • ypwhich

  3. Qurey DNS records

    1. Identify the following information of any three web sites at:
      http://info.hkntec.net/workshop/2002/wk1/www.lst

      • IP Address of the web site
      • Name server of the web site domain
      • MX server of the web site domain
      • SOA records ofthe web site domain
        (Admin e-mail Serial, refresh, retry, expire and ttl)
      • - The domain registration organization address of that web site domain
      • - The admin and technical contact of that web site domain

      You may use the following commands of figure out the above information.

      • nslookup
      • dig
      • whois
        Here is some common whois server :
        whois.apnic.net
        whois.hknic.net.hk
        whois.arin.net
        whois.ripe.net
        whois.networksolutions.com
        whois.internic.net
        whois.nic.mil
        whois.nic.gov

    2. Put the above information on your host web pages.

  4. Trace the network information of an IP

    1. Identify the following information of any three IPs at
      http://info.hkntec.net/workshop/2002/wk1/ip.lst

      • - Its full qualitfy hostname.
      • - The domain name belonged to
      • - The routing path from our site to these IPs

      You may use the following commands of figure out the above information.

      • nslookup
      • dig
      • whois
      • traceroute

    2. Put the above information on your host web pages.

  5. traceroute and ping any three IPs at

    http://info.hkntec.net/workshop/2002/wk1/ip.lst

    Record the numbers of hop in traceroute and its ttl value in ping.
    Post the data on your web pages and try to find out the correlation of these numbers.


References: