A DNS server, or name server, is used to resolve an IP address to a hostname or vice versa.
You can set up four different types of DNS servers:
-
A master DNS Server for your domain (s), which stores authoritative records for your domain.
-
A slave DNS server, which relies on A master DNS Server for data.
-
A caching-only DNS server, which stores recent Requests like a proxy server. It otherwise refers to other DNS servers.
-
A forwarding-only DNS server, which refers all Requests to other DNS servers.
In our pervious article we have configured Master DNS server. In this tutorial we'll extended pervious article and configureSalve DNS server. This article was the second part of what to configure a DNS server step by step guide. We suggest you to review pervious article before starting it.
Configure DNS slave server
For the example we are using three systems one Linux server one Linux clients and one window clients.
WE have configured master DNS servers with IP address of 192.168.0.254 and hostname server.example.com on Linux server. Now we'll configure slave DNS server on Linux clients
To configure slave DNS server go on CLIENT1 system.
First Test connectivity from the DNS server by ping commands and check necessary RPM.BindandCaching-nameserverRPM is required to configure DNS. Check them for install if not found install them.
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_rpm.jpg "border=" 0 "alt=" rpm "width=" 291 "height=" 198 "style=" margin:2px 10px 8px 0px;padding:0px;height: AUTO;BORDER:4PX solid RGB (255,255,255); "/>
Set hostname toclient1and IP address to192.168.0.1and create a newnamed.confFile
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_vi_named_cl.jpg "border=" 0 "alt=" named.conf "width=" 498 "height=" "style=" margin:2px 10px 8px 0px; PADDING:0PX;HEIGHT:AUTO;BORDER:4PX solid RGB (255,255,255); "/>
we is using bind ' S /var/named. as We is Configuring slave Server only copied it's from master server.
do editing exactly as shown here in image In named.conf < BR style= "margin:0px;padding:0px;" >650) this.width=650; "class=" Padded s5_lazyload "src=" Http://computernetworkingnotes.com/images/rhce_ Certification/image/ass40_file_slave_named.jpg "border=" 0 "alt=" named.conf "width=" 334 "height=" 138 "style=" margin : 2px 10px 8px 0px;padding:0px;height:auto;border:4px solid rgb (255,255,255); "/>
save this file With :wq and exit
If You cannot create this file manually then download this pre configured file and copy to /var/named/chroot/etc/named . conf
To download does right click here and choose Save Link as.
named.conf
now Restart the named service. It should is start without any error.
650) this.width=650; "class=" Padded s5_lazyload "src=" http:// Computernetworkingnotes.com/images/rhce_certification/image/ass40_service_restart_clien.jpg "border=" 0 "alt=" Service named restart "width=" 580 "height=" "style=" margin:2px 10px 8px 0px;padding:0px;height:auto;border:4px Solid RGB (255,255,255); "/>
congratulation you have configured both Master and client DNS server. Now we'll configure DNS client and test it with DNS server.
Configure Window DNS Client
Now go on the Windows XP system and test connectivity from DNS server. and set DNS IP address in LAN card properties.
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_win_setip.jpg "border=" 0 "alt=" IP address on Window System "width=" 337 "height=" "style=" margin:2px 10px 8PX 0px;padding:0px;height:auto;border:4px solid RGB (255,255,255); "/>
Now go oncommands PromptAnd ping from other client by name to testDNS.
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_win_ping_cilent2.jpg "border=" 0 "alt=" ping from DNS server "width=" 448 "height=" 223 "style=" margin:2px 10px 8px 0px;padding:0px;height:auto;border:4px solid rgb (255,255,255); "/>
Alternately you can also verifyDNS ServerBynslookupCommand
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_win_nslookup.jpg "border=" 0 "alt=" nslookup "width=" 238 "height=" 157 "style=" margin:2px 10px 8px 0px; PADDING:0PX;HEIGHT:AUTO;BORDER:4PX solid RGB (255,255,255); "/>
Test also bypinging ServerFrom name
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_win_ping_server.jpg "border=" 0 "alt=" ping server "width=" 404 "height=" 228 "style=" margin:2px 10px 8px 0px; PADDING:0PX;HEIGHT:AUTO;BORDER:4PX solid RGB (255,255,255); "/>
Configure Linux DNS Clients
RHCE Exam Question
Dig Server.example.com, Resolve to successfully through DNS Where the DNS Server is 192.168.0.254.
RHCE Exam Question2
your System is configured on 192.168.0.0/24 Network and Your nameserver is 192.1 68.0.254. Make successfully resolve to server.example.com.
On command line interface you do not have any options to set the DNS IP in Network Configuration window. IP of DNS server can is set from /etc/resolv.conf file. Each nameserver line represents a DNS server, and the search line specifies domain names to try if is only the first part of A hostname is used. For example, if just the name client1 is used as a hostname, client1. example.com would also be tried if the/etc/ resolv.conf file is configured as shown with image below on the system.
To set DNS IP open/etc/resolv.confFile
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_cl_vi_resol.jpg "border=" 0 "alt=" vi resolv.conf "width=" 355 "height=" "style=" margin:2px 10px 8px 0px; PADDING:0PX;HEIGHT:AUTO;BORDER:4PX solid RGB (255,255,255); "/>
SetnameserverIP to192.168.0.254andSearchOption toexample.com
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_file_resolv.jpg "border=" 0 "alt=" resolv.conf "width=" 8px "height=" style= "margin:2px 10px 0px; PADDING:0PX;HEIGHT:AUTO;BORDER:4PX solid RGB (255,255,255); "/>
After saving/etc/resolv.confFile Restart the Network service
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_cl_servic_net_res.jpg "border=" 0 "width=" 607 "height=" "style=" margin:2px 10px 8px 0px;padding:0px; HEIGHT:AUTO;BORDER:4PX solid RGB (255,255,255); "/>
Digserver.example.comTo test DNS server
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_cl_dig.jpg "border=" 0 "alt=" Dig server.example.com "width=" 392 "height=" 162 "style=" margin:2px 10px 8px 0PX;PADDING:0PX;HEIGHT:AUTO;BORDER:4PX solid RGB (255,255,255); "/>
Now verify by pinging to other client from name
650) this.width=650; "class=" Padded s5_lazyload "src=" http://computernetworkingnotes.com/images/rhce_certification /image/ass40_lin_ping_client2.jpg "border=" 0 "width=" 580 "height=" 137 "style=" margin:2px 10px 8px 0px;padding:0px; HEIGHT:AUTO;BORDER:4PX solid RGB (255,255,255); "/>
This article is from the "Little Bird Your Mother" blog, please make sure to keep this source http://xiaoxiaoniao.blog.51cto.com/8727225/1423548