Documentos de Académico
Documentos de Profesional
Documentos de Cultura
DNS Names
DNS is a name resolution method.
Invented to overcome the problems with host files.
DNS Names
Last comes the country. Eg in Also referred to as top level domains (TLD)
Example
Hostname = mycomputer domain = google.co.in
An Example
How an application uses DNS to resolve a name.
Looking up by entering the following in a browser.
http://www.google.co.in/default.html
http states the protocol to be used. www denotes what????? Default.html is the required document.
An Example
3 types of query are involved.
Client makes a recursive query to the local DNS. An iterative query- takes place between local and other DNS servers An inverse query. A client provides the IP and requests the Domain name in a reverse lookup
Zone Files
Zone files contain the information that tells the server how to respond to DNS queries.
Defines the servers zone of authority (SOA). Standard text file. Contains records for all nodes that the server is responsible for. Zones and domains are NOT the same!
Several servers (zone files) for one domain.
Zone Files
vi /var/named/chroot/var/named/munivel.com $TTL 1D @ IN
SOA
IN IN IN IN IN IN IN IN IN IN IN
munivel.com. root.munivel.com. ( 4 1D 1H 1W 3H ) ns.munivel.com. 10 mail.munivel.com. 192.168.30.5 ns.manoj.munivel.com. 192.168.30.5 www www www www www www
Resource records
Different resource records describe the type of node or service each entry represents.
Cname: An alias record.
www MX NS gw CNAME munivel 10 mail ; Primary Mail Exchanger
A : A record
Resource Records
Every DNS server must contain a SOA record.
Always the first entry. Defines which entry is responsible from this point of the hierarchy down. Identifies:
The servername contact email (note the different form of email address.
3H ) ; minimum @ IN NS ns.munivel.com.
5 6
IN IN
;100 IN
NSLookup Utility
Available on most platforms. (NT,UNIX,Linux etc) Enables the querying of DNS servers. Two modes:
Batch Interactive
Starting BIND
[bash]# chkconfig --level 2345 named on [bash]# /etc/init.d/named restart [bash]# chkconfig --list named [bash]# grep named /var/log/messages (Check the log message)
86400
IN
192.168.30.5
86400
IN
NS
ns.munivel.com.
86400
IN
192.168.30.5
Query time: 0 msec SERVER: 192.168.30.5#53(192.168.30.5) WHEN: Wed Dec 8 15:55:20 2010 MSG SIZE rcvd: 82