DNS - Domain Name System is used to resolve domain name like sriram.com to IP - 10.10.93.x.
Rules of DNS
The Rules as Defined in (RFC 952)
Names can be up to 24 Characters long
Names should be more than 1 character long
Names may contain letters, numbers, dashes and dots.
Names Should start with a letter
Names should not end with a dash or dot.
Levels
First Level -
The root of a domain name system is represented by a dot ( . )
Root - This is Managed by Internic
There are 14 root servers around the world mentioned in /var/named/named.ca
Second Level -
Second Level Domain name is Managed by Registrars like ( .net, .com, .org, .us)
Third Level -
Third level Domain are managed by whomever registers them through Registrars for eg. (sriram.com)
Some Important Files
Bind - The Utility for DNS
Files
/etc/named.conf
This is the main configuration file where you add the Master, Slave servers.
Master Server - Primary Name Server.
Slave Server - Secondary Name Server.
In Case the Master Fails then Slave resolves.
/var/named - Default place where zone files are stored.
eg.
[root@mybox named]# cat sriram.com.hosts
$ttl 38400
sriram.com. IN SOA mybox.sriram.com. sriram.gmail.com. (
1136737633
10800
3600
604800
38400 )
sriram.com. IN NS mybox.sriram.com.
windows.sriram.com. IN A 192.168.0.20
linux.sriram.com. IN A 10.10.93.220
Note the above lines should be seperated by way of Tab
/var/named/named.ca
Hint file (cache file)(/var/named/named.ca): It actually provides the name of root server which gets activated in case the machine name, which is to be searched, is not there in user defined zone (discussed below).
The copy of same can be obatined from internic... Very rarely it changes
localhost file (/var/named.local): All configuration have a local domain Database for resolving address to the host name localhost.
Zone: Basically a zone that keeps the information about the domain database
Reverse Zone file: This is responsible for mapping Ipaddress to host names, which is exactly the opposite of what the zone file does.
In previous post I have given complete configuration of DNS on LINUX
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment