Professional Documents
Culture Documents
Chapter 4
Name Resolution
Overview
Clients
Domain Namespaces
microsoft.com, ccsu.edu
Domain Namespaces
www.phx.ccsu.edu
.biz - businesses
.info - anyone can register
.name - must register first and last name
.pro - for professionals only
Host Names
DNS Components
Primary Server
Secondary Server
Caching Server
Forwarding Server
Zones
Zones
Forward Lookup
Reverse Lookup
Lab Projects
Objective: Upon completion you must show using the dig command you get
the correct IP and corresponding domain name!
Review of Zoning
Forward Lookup
Reverse Lookup
File name:
/etc/resolve.conf
Nameserver: Corresponding IP
address
Domain: Corresponding domain
name
File name:
/etc/named.conf
Name resolution
/var/named/
named.technowidgets.com
Forward Lookup file
Defines other subdomains such as:
research.technowidgets.com.
mail.technowidgets.com.
/var/named/
named.0.168.192
Reverse Lookup File
Defines other subdomains such as:
web1
192.168.0. 20
research
192.168.0.150
mail
192.168.0.200
/etc/named.conf
Creating a DNS for the technowidgets.com
domain
/etc/named.conf
Make sure
192.168.0.20
matches your hard
drive number!
/var/named.technowidgets.com File
Content
Must be typed!
$TTL
86400
@
IN SOA web1.technowidgets.com. admn.technowidgets.com.
(
2002072100 ; Serial
28800
; Refresh
14400
; Retry
3600000 ; Expire
86400 ) ; Minimum
IN
NS
web1
IN
A
192.168.0.20
IN
MX 10 mail.technowidgets.com.
web1
IN
A
192.168.0. 20
www
IN
CNAME web1
research
IN
A
192.168.0.150
IN MX 10 mail
mail
IN
A
192.168.0.200
named.0.168.192 File
Content
$TTL 86400
Must be typed!
@
IN SOA web1.technowidgets.com.
admn.technowidgets.com. (
2002072100 ; Serial
28800
; Refresh
14400
; Retry
3600000 ; Expire
86400 ) ; Minimum
IN
NS
web1
20
150
200
IN PTR
IN PTR
IN PTR
web1.technowidgets.com.
research.technowidgets.com.
mail.technowidgets.com.
To start DNS
To restart DNS
/etc/rc.d/init.d/named restart
To stop DNS
/etc/rc.d/init.d/named start
/etc/rc.d/init.d/named stop
Modify /etc/resolv.config
The following line directs the client to use
the DNS server at 192.168.0.20 Your
HD!
nameserver 192.168.0.20
domain technowidgets.com
Troubleshooting DNS
dig available on Linux
Use dig
command to
check the results!
Upon
Completion;
you must be able
to get this!
-- Must match
your HD!
Troubleshooting DNS
Linux
dig hostname.com
dig silent 192168-0-xx
ping
Windows
nslookup
hostname.com
nslookup x 192168.0.xx
Ipconfig
ping
References:
For Linux:
For windows
http://www.siliconvalleyccie.com/linux-hn/dns-static.
htm
http://www.microsoft.com/technet/prodtechnol/windowsserver200
3/library/ServerHelp/5fe46cef-db12-4b78-94d2-2a0b62a28271.msp
x
http://www.freesoft.org/CIE/RFC/1035/36.htm