LAB: Concept of DNS Target: Learning the basics of DNS Tools: dig Lab preparation: Boot a Linux OS Document version: 20110317 Completed by: Class: Name: Surname: Comments:
Instructions: Who's responsible for DNS in Belgium? DNS.be vzw DNS Belgium NV Belgium IANA Department What is a 'gtld'? What is a 'utld'? What is a 'stld'? What is a 'cctld'?
Open a terminal and execute 'dig'. 1 2 3 4
Explain indication 1: Explain indication 2: Explain indication 3: Explain indication 4:
Execute 'dig @8.8.8.8 subversion.khkh.be A'. 2 1 Explain the 'A' in the command: Explain the '@8.8.8.8' in the command: Explain indication 1: Explain indication 2:
Execute 'dig -x 193.198.63.163'. 1 2 Explain the '-x' in the command: Explain the '@8.8.8.8' in the command: Explain indication 1: Explain indication 2:
LAB: Installing DNS Target: Learning the installation of a DNS server Tools: BIND 9 Lab preparation: Boot a Linux OS (Ubuntu 10.10) Document version: 20110321 Completed by: Class: Name: Surname: Comments:
Instructions: Update the locale package index with 'sudo apt-get update'. Install BIND 9 with 'sudo apt-get install bind9'. An extra package will be installed. What is his name? This package provides you with the following extra software: (multiple answers possible) named-checkconf named-checkzone named-checkdns BIND 9 is run with restricted privileges. Which is the name of the user and group used: User: Group: What is the absolute location of the configuration file of BIND 9?
A caching DNS server: Set up a caching DNS server which forwards the requests to the following DNS servers: 208.67.220.220 and 208.67.222.222. I'll need to edit the following config-file: These are the lines I'll need to provide: After I made the changes, I executed the following command:
A Primary Master DNS server - Forward Zone File Setup a Primary Master DNS server for the zone 'mydomain.edu'. Provide the necessary records for the following: 2 nameservers (named 'ns1' and 'ns2') 1 mailserver (named 'mail') 3 webservers (named 'apa1', 'apa2' and 'apa3'), all-three reachable by 'www' I'll need to edit the following config-file: These are the lines I'll need to provide to activate the zone: I'll need to create the following zone-file:
These are the lines I'll need to provide: After I made the changes, I executed the following command: I can test my configuration by the following command:
A Primary Master DNS server - Reverse Zone File Setup your DNS server for the reverse zone for 'mydomain.edu'. Provide the necessary records for the following: 2 nameservers (named 'ns1' and 'ns2') 1 mailserver (named 'mail') 3 webservers (named 'apa1', 'apa2' and 'apa3'), all-three reachable by 'www' I'll need to edit the following config-file: These are the lines I'll need to provide to activate the zone: I'll need to create the following zone-file:
These are the lines I'll need to provide: After I made the changes, I executed the following command: I can test my configuration by the following command: