It work of the DNS
DNS (Domain Name System)was designed as a distributed database. Working principle. Client / Server by the DNS Server IP Address to store numbers with a Uniform Domain Name Name Resorution called to find out the name of the machine as requested DNS Client.
Step of DNS
1. DNS Client to connect to. itguest.blogspot.com. Will submit a request number of sites IP Address http://itguest.blogspot.com. Resolver process on the domain to their DNS Server(Patumwand.org). If no DNS Server information on this site. It sends a request to the ISP's DNS Server ISP again.
2. Will find the DNS Server IP Address and then number will be sent back to their own DNS Server machine (Patumwan.org).
3. Patumwan.org DNS Server record IP Address will be stored in the Cache Memory and sent back to the machine IP Address DNS Client.
Install DNS Server
Using a Linux Internet server. Or server in the organization. Important thing is to install a DNS Server is used to refer to a Name Server to the client.Ubuntu is using DNS bind9 we use apt-get to install.
- sudo apt-get install bind9 (Or install all packet by command sudo apt-get install bind9 dnsutils)
After this operation, 2073 kb od additional disk space will be use.
Your press Key Y server download packet bind9 automatic.
After stop service by command.
- sudo /etc/init.d/bind9 stop
Configure name.conf.local
Program bind(Berkeley Internet Nameserver Daemon) has associated 3 files.1. named.conf /etc/bind/named.conf
2. named.conf.options /etc/bind/named.conf.options
3. named.conf.local /etc/bind/named.conf.local
Caching Nameserver
Caching Nameserver with next to find out if the client for the first server can not see most of us will enter the Nameserver of the ISP that we use is as KSC 203.113.24.199, TOT 203.113.24.199 which this option in the /etc/bind/named.conf.options// forwarders { // 0.0.0.0; // }; |
Change
forwarders { 203.155.33.1; 203.113.24.199; }; |
Primary Master Name Server
The name was changed to change the IP Address and IP Address as the name Can do so by. Copy an existing configuration file, edit out.1. Copy file by command.
cp /etc/bind/db.local /etc/bind/db.imodclub.com
2. Edit file named.conf.local
zone "imodclub.com" { type master; file "/etc/bind/db.imodclub.com"; }; |
3. Edit file db.imodclub.com
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA ns.imodclub.com. root.imodclub.com. (
; @ IN NS ns.myintranet.org. @ IN A 192.168.2.10 ns IN A 192.168.1.105 www IN A 192.168.1.105 mail IN A 192.168.1.105 |
www IN A 192.168.1.105 IP Address for www
mail IN A 192.168.1.105 IP Address for mail
4. Copy file db.127 to db.192 by command.
sudo cp /etc/bind/db.127 /etc/bind/db.192
5. Edit file named.conf.local add command.
zone "2.168.192.in-addr.arpa" { type master; notify no; file "/etc/bind/db.192"; }; |
6. Edit file db.192
; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA ns.imodclub.com root.imodclub.com. (
@ IN NS ns. 105 IN PTR ns.imodclub.com. 105 IN PTR www.imodclub.com. 105 IN PTR mail.imodclub.com. |
7. restart service by command.
sudo /etc/init.d/bind9 restart
8. Edit file /etc/resolv.conf
Nameserver 192.168.1.105 |
9. restart service network.
sudo /etc/init.d/networking restart
10. Testing of the server with the command dig.
dig imodclub.com
11. Testing of the server with the command nslookup.
nslookup imodclub.com
Finish
Thank you : google translation
ความคิดเห็น