LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-27-2015, 11:49 PM   #1
morad_dba
LQ Newbie
 
Registered: Jun 2010
Posts: 18

Rep: Reputation: 0
Unhappy Error in DNS setup


Dear all,

I am trying to setup DNS in redhat 6.1

I am getting error when i try to start service

step 1 :
yum install bind-*

step 2 :
/etc/init.d/named restart

Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone localhost/IN: loading from master file named.localhost failed: file not found
zone localhost/IN: not loaded due to errors.
_default/localhost/IN: file not found
zone 1.0.0.127.in-addr.arpa/IN: loading from master file named.loopback failed: file not found
zone 1.0.0.127.in-addr.arpa/IN: not loaded due to errors.
_default/1.0.0.127.in-addr.arpa/IN: file not found
zone ec.net/IN: loading from master file ec.net-frz failed: file not found
zone ec.net/IN: not loaded due to errors.
_default/ec.net/IN: file not found
zone 201.168.192.in-addr.arpa/IN: loading from master file 201.168.192-rvz failed: file not found
zone 201.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/201.168.192.in-addr.arpa/IN: file not found


I follow the steps as

cat /etc/named.conf
acl NSIP {192.168.201.243;};
acl NSNET {127.0.0.1/32; 192.168.11.0/24;};
options {
listen-on port 53 { 127.0.0.1; NSIP; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; NSNET ;};
allow-recursion { NSNET ;};
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";



[root@mydns named]# cat /etc/named.rfc1912.zones
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/...l-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};

zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};

zone "ec.net" IN {
type master;
file "ec.net-frz";
allow-update { none; };
};

zone "201.168.192.in-addr.arpa" IN {
type master;
file "201.168.192-rvz";
allow-update { none; };
};



step 3:
[root@mydns named]# cd /var/named

[root@mydns named]# ls
201.168.192-rvz data ec.net-frz named.empty named.loopback
chroot dynamic named.ca named.localhost slaves
[root@mydns named]# cat ec.net-frz
$TTL 1d
ec.net. IN SOA mydns.ec.net. root.ec.net. (
100 ; se = serial number
8h ; ref = refresh
5m ; ret = update retry
3w ; ex = expiry
3h ; min = minimum
)

IN NS mydns.ec.net.

; DNS server
mydns IN A 192.168.201.243

; RAC Nodes Public name

node1 IN A 192.168.201.234
node2 IN A 192.168.201.235


; RAC Nodes Public VIPs

node1-vip IN A 192.168.201.251
node2-vip IN A 192.168.201.252


; 3 SCAN VIPs

lab-scan IN A 192.168.201.261
lab-scan IN A 192.168.201.262


; Storage Network

nas IN A 192.168.201.241


[root@mydns named]# cat 201.168.192-rvz
$TTL 1d
@ IN SOA mydns.ec.net. root.ec.net. (
100 ; se = serial number
8h ; ref = refresh
5m ; ret = update retry
3w ; ex = expiry
3h ; min = minimum
)

IN NS mydns.ec.net.

; Storage Network Reverse Lookup

243 IN PTR nas.ec.net.
234 IN PTR node1.ec.net.
235 IN PTR node2.ec.net.


I placed the ec.net-frz and 201.168.192-rvz file in /var/named but during service start it return error that ec.net-frz and 201.168.192-rvz not found.

is there any other default location where ec.net-frz and 201.168.192-rvz file can be placed ?


Please help.

Regards,
Morad.
 
Old 03-28-2015, 03:17 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I placed the ec.net-frz and 201.168.192-rvz file in /var/named but during service start it return error that ec.net-frz and 201.168.192-rvz not found.

is there any other default location where ec.net-frz and 201.168.192-rvz file can be placed ?
I guess you're running bind chrooted, so in this case everything is (or should be) under /var/named/chroot/var/named
 
1 members found this post helpful.
Old 03-28-2015, 01:20 PM   #3
morad_dba
LQ Newbie
 
Registered: Jun 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks bathory.

Your answer helps me a lot. your guess is absolutely right.

Hat off to you.

Thanks again.
 
Old 03-30-2015, 08:48 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Moved: This thread is more suitable in <Red Hat> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
Before setup DNS and after DNS question sportivo888 Linux - Enterprise 7 12-13-2009 09:47 PM
Claws email DNS error 451 Could not identify sender- DNS error 10060 sunny51 Linux - Newbie 2 08-13-2009 08:40 PM
DNS ERROR resolving MX for... [in Zimbra setup] laurens Linux - Newbie 1 03-31-2009 05:06 AM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration