Configuring Name Servers in named linux

by rajesh 2012-05-10 15:28:23

1) After installing named using yum as in

http://hiox.org/33129-yum-command.php


2) Do the following steps to set name
- Create /etc/named.conf as in example
http://hiox.org/33130-bind-example-namedconf-file.php

3) Change the values of respective nameservers ns1.sitename and sitename


4) Create a zone file for nameser ns1.sitename.db in /var/named/ and add entries as in the example
http://hiox.org/33131-bind-example-zone-file-for-website.php

replace sitename with you sitename and 192.168.0.1 with ip and emailis.domainname with proper values.

5) Now you can create a zone file for main sitename as sitename.db in /var/named as in above step and change the respective values

6) Now create the required files or copy the files from a different server
named.rfc1912.zones : example http://hiox.org/33137-bindnamed-example-namedrfc1912zones.php
localdomain.zone : example http://hiox.org/33132-bindnamed-example-localdomainzone.php
localhost.zone : example http://hiox.org/33133-bindnamed-example-localhostzone.php
named.broadcast : example http://hiox.org/33134-bindnamed-example-namedbroadcast.php
named.ca : example http://hiox.org/33138-bindnamed-example-namedca-file.php
named.ip6.local : example http://hiox.org/33135-bindnamed-example-namedip6local.php
named.local : example http://hiox.org/33136-bindnamed-example-namedlocal.php
named.zero : example http://hiox.org/33139-bindnamed-example-namedzero-file.php

7) Now we have set rndckey. Create rndc.conf and rndc.key files as in the link
http://hiox.org/33140-namedbind-creating.php

Cool
Set proper permissions for named.ca, zone files of sites.

chown root:named /var/named/named.ca
chown named:named /var/named/<sitename>.db

9) Now restart named as
/etc/init.d/named restart
1200
like
0
dislike
0
mail
flag

You must LOGIN to add comments