LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-20-2007, 04:19 AM   #1
thomaspsimon
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Rep: Reputation: 15
Bind Configuration problem.


Hi,

I have a new Fedora 7 installed.I was trying to configure Bind for my local network.I have 2 views defined in named.conf as follows.

options
{
query-source port 53;
query-source-v6 port 53;

directory "/var/named"; // the default
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
memstatistics-file "data/named_mem_stats.txt";

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

view "localhost_resolver"
{
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
// include "/etc/named.root.hints";
include "/etc/named.rfc1912.zones";
};

view "internal"
{
match-clients { localhost; 10.0.0.0/8; };
match-destinations { localhost; 10.0.0.0/8; };
recursion no;
// include "/etc/named.root.hints";
include "/etc/named.bionline.zones";
};

And the content of /etc/named.rfc1912.zones is :

// 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
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};

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

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

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

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

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

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


And finally the content of /etc/named.bionline.zones is :

****************

// 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
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
//
// zone "." IN {
// type hint;
// file "named.ca";
// };
//
zone "bionline.biz" IN {
type master;
file "/etc/bionline.biz";
notify no;
allow-update { none; };
};

zone "10.in-addr.arpa" IN {
type master;
file "/etc/rev.bionline.biz";
notify no;
allow-update { none; };
};

Now the problem what i face is among the 2 views localhost_resolver and internal one which comes in the first will be working.
ie: if i place "localhost_resolver" as first in named.conf, bind will not respond to "dig mail.bionline.biz". And if i place "internal" view as first, bind will not respond to "dig localhost".The zones which falls under the first view only work.
Also there are no errors in the log files.Can anyone please suggest where i m going wrong ?


Thanks in advance..
 
Old 06-23-2007, 11:02 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
What machine are you doing the query from? You have localhost in both match-clients statements. From the docs:

Quote:
The match-clients substatement takes an address match list as an argument. Only queriers whose IP addresses match this address match list will see the configuration specified in the enclosing view. If a querier's IP address matches multiple view statement's match-clients substatements, the first view statement is the one that applies.
--jeremy
 
Old 06-23-2007, 02:53 PM   #3
thomaspsimon
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jeremy
What machine are you doing the query from? You have localhost in both match-clients statements. From the docs:



--jeremy

Thanks Jeremy...
 
  


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
Bind Configuration namit Linux - Software 1 04-25-2007 10:03 PM
FC 6 BIND Configuration titel Linux - Newbie 2 12-12-2006 10:08 PM
DNS configuration with bind snipersock Linux - Networking 6 08-24-2004 04:00 PM
Bind configuration lmcilwain Linux - Software 1 01-31-2004 03:59 PM
BIND configuration problem tisource Linux - Networking 3 01-26-2003 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:13 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