Dns Server Configuration In Linux 6 Step By Step Pdf

admin

2 Comments on Install DNS Server on Windows Server 2016 fully step by step Windows Server When you install windows server it is just a box, nothing it there like services, if you want to use the services you should install and configure the services when you need them.

HOW TO CONFIGURE LINUX DNS SERVER STEP BY STEP GUIDE EXAMPLE AND IMPLEMENTATION

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.

CONFIGURE DNS SERVER

In this example we willconfigure a dns server and will test from client side.

For this example we are usingthree systems one linux server one linux clients and one window clients.

Step 1 - bind and caching-nameserver rpm is required to configure dns. Check them for install if not foundinstall them

Step 2 -set hostname to server.example.com and ip address to 192.168.0.254




Main configuration file for dns server is named.conf. By default this file is notcreated in /var/named/chroot/etc/ directory.Instead of named.conf a sample file /var/named/chroot/etc/named.caching-nameserver.confis created. This file is use to make a caching only name server.You can also do editing in this file after changing its name to named.conf to configure master dnsserver or you can manually create a new named.conf file.


In our example we arecreating a new named.conf file


Or do editing exactlyas shown here in image

save this file with :wq and exit

Configure zone file

We have defined two zone files example.com.zone for forward zone and 0.168.192.in-addr.arpa for reverse zone. These files will be store in /var/named/chroot/var/named/location. We will use two sample files for creating these files.

By default this filewill look like this
Change this fileexactly as shown in image below
Now open reverse lookupzone file 0.168.192.in-addr.arpa
By default it will look like this


Now changed the ownershipof these zone files to named group

At my place of employment, we are using Linux as a DNS server. Itperforms exceptionally well. This section will address configuration ofDNS tables for these services using the BIND 8.x package which comes standardwith the Red Hat distribution.

Note: Note: Red Hat versions 5.1 and earlier used the BIND 4.x package,which used a slightly different format for its configuration file. BIND8.x offers more functionality over that offered by BIND 4.x, and as 4.x isno longer being developed, you should probably consider upgrading yourBIND package to the latest version. Simply install the BIND RPM package(see Section 10.1 for details on using the RPM utility),then convert your configuration file to the new format.

Fortunately, converting your existing BIND 4.x configuration file tobe compliant with BIND 8.x is easy! In the documentation directoryprovided as part of BIND (for example,``/usr/doc/bind-8.1.2/' for BINDversion 8.1.2), there exists a file called``named-bootconf.pl', which is anexecutable Perl program. Assuming you have Perl installed on your system,you can use this program to convert your configuration file. To do so,type the following commands (as root):

You should now have an``/etc/named.conf' file whichshould work with BIND 8.x 'out-of-the-box'. Your existingDNS tables will work as-is with the new version of BIND, as the format ofthe tables remains the same.

Configuration of DNS services under Linux involves the followingsteps:

To enable DNS services,the ``/etc/host.conf' fileshould look like this:

The extra spoof detection adds a bit of a performance hit to DNSlookups (although negligible), so if you're not too worried about this youmay wish to disable the 'nospool' and 'alert'entries.

Dns Server Configuration In Linux 6 Step By Step Pdf

Configure the``/etc/hosts' file as needed. Typically there doesn't need to be much in here, but for improvedperformance you can add any hosts you access often (such as localservers) to avoid performing DNS lookups on them.

The``/etc/named.conf' file should beconfigured to point to your DNS tables according to the example below.

Note: (Note: IP addresses shown are examples only and must be replacedwith your own class addresses!):

Tip: Tip: Make note of the allow-transferoptions above, which restricts DNS zone transfers to a given IP address. In our example, we are allowing the host at 123.12.41.40 (probably a slaveDNS server in our domain) to request zone transfers. If you omit thisoption, anyone on the Internet will be able to request such transfers. As the information provided is often used by spammers and IP spoofers, Istrongly recommend you restrict zone transfers except to your slave DNSserver(s), or use the loopback address, ``127.0.0.1'instead.

Now you can set up your DNS tables in the``var/named/' directory asconfigured in the``/etc/named.conf' file in stepthree. Configuring DNS database files for the first time is a majorundertaking, and is beyond the scope of this document. There are severalguides, online and in printed form that should be referred to. However,several examples are provided below.

Sample entries in the``/var/named/mydomain_name.db'forward lookup file:

Sample entries in the``/var/named/123_12.rev' reverselookup file:

Arabic Genie DescriptionArabic Genie is a free Mac software, that is part of the category Multimedia with subcategory Graphic & Design and has been created by Jayadevan Krishnan. Arabic genie x for mac.

Any other reverse lookup files needed to map addresses in a differentclass B (such as 126.27.*) can be created, and would look much the sameas the example reverse lookup file above.

Make sure the named daemon is running. This daemon isusually started from the``/etc/rc.d/init.d/named' fileupon system boot. You can also start and stop the daemon manually; type``named start' and ``named stop',respectively.

Whenever changes are made to the DNS tables, the DNSserver should be restarted by typing ``/etc/rc.d/init.d/namedrestart'. You may then wish to test your changes by using atool such as 'nslookup' to query themachine you have added or changed.

More information on configuring DNS services can be found in the``DNS-HOWTO' guide athttp://metalab.unc.edu/Linux/HOWTO/DNS-HOWTO-5.html.

PrevHomeNextWeb Server and HTTP Caching Proxy AdministrationUpInternet User Authentication with TACACS