Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Bind 9 View problem

Bind 9 View problem

2004-04-07       - By Bill Gradwohl

 Back
Does anyone have views working that's willing to share their named.conf
file? I must have something hosed up, but I can't find it.

On the master server, I have views working fine. The problem is that the
slave server does the zone transfers incorrectly, but in a very strange
fashion.

If I erase the slave servers zone files to force a zone transfer, and start
named on that box, I see the zone files I'm expecting, but their contents
are all private data. The files holding public IP's on the master hold the
private IP's on the slave.

Here's a section of the masters named.conf on 192.168.168.144:
view "private" {
  match-clients { 192.168.168.0/24; 127.0.0.0/8; 66.80.98.192/28; };
  recursion yes;
  zone "trophyclubhome.com" IN {
     type master;
     notify explicit;
     also-notify { 192.168.168.146; };
     file "zone/privatetrophyclubhome.com";
     # Allow the slave to transfer and inquire.
     allow-transfer   { 192.168.168.146; };
     allow-query { internals; };
  };
};

view "public" {
  match-clients { any; };
  recursion no;
  zone "trophyclubhome.com" IN {
     type master;
     notify explicit;
     also-notify { 192.168.168.146; };
     file "zone/trophyclubhome.com";
     # Allow the slave to transfer and inquire.
     allow-transfer   { 192.168.168.146; };
     allow-query { any; };
  };
};

Note that the file trophyclubhome.com contains only public IP addresses and
the file privatetrophyclubhome.com only contains private IP addresses.

Here's the slave servers (192.168.168.146) equivalent section of the
named.conf file:

view "private" {
  match-clients { 192.168.168.0/24; 127.0.0.0/8; 66.80.98.192/28; };
  recursion yes;
  zone "trophyclubhome.com" IN {
     type slave;
     notify no;
     masters { 192.168.168.144; };
     file "zone/privatetrophyclubhome.com";
     # Allow the slave to transfer and inquire.
     allow-transfer   { 192.168.168.211; };
     allow-query { internals; };
  };
};

view "public" {
  match-clients { any; };
  recursion no;
  zone "trophyclubhome.com" IN {
     type slave;
     notify no;
     masters { 192.168.168.144; };
     file "zone/trophyclubhome.com";
     # Allow the slave to transfer and inquire.
     allow-transfer   { 192.168.168.211; };
     allow-query { any; };
  };
};

I believe the problem has to do with the fact that when the slave asks for a
zone transfer, its coming from a "private" IP address (192.168.168.146) and
consequently the master only sends over private content, even for the public
zone files. No matter what the slave asks for, since the request comes from
a private IP address, the master only sends private data.

On the slave, the file trophyclubhome.com contains private IP addresses and
privatetrophyclubhome.com contains private IP addresses. No file contains
public IP addresses, and that's the problem.

How is a slave server sitting on a private IP address ever supposed to get
zone transfers of public IP's? What's wrong with my config?


--
Bill Gradwohl
YCC
(817) 224-9400 x211
www.ycc.com
SPAMstomper Protected E-mail
www.stomperware.com



--
Shrike-list mailing list
Shrike-list@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list

Earn $52 per hosting referral at Lunarpages.