question about include syntax in /etc/named.conf

John Ho magiciq at noordbrabant.net
Mon Jul 5 15:10:38 UTC 2004


Hi all,

My platform is HP-UX 11i + BIND 9.2.0
I have two view's (acl) in the /etc/named.conf.
Every time I have to do twice editing in that file if I have to add a zone in 
it.
I heard you can decrease you work by using "include" syntax?
If I put those two zones in a seperate file, like --> include

"/etc/forward_zones.conf";

Where I have the put this syntax in the view??
---> include "/etc/forward_zones.conf"; <----

and how does it work??

For example if I have this in the /etc/named.conf
#-----------------------------------------------

acl "own" {
10.10.10.128/25;
};
view "own" {
match-clients { "own" ;};


zone "mnc160.mcc310.gprs" {
type forward;
forwarders {
216.155.160.105;
216.155.160.106;
216.155.160.11;
216.155.160.12;
};
forward only;
};

zone "mnc003.mcc268.gprs" {
type forward;
forwarders {
62.169.65.1;
62.169.65.2;
};
forward only; };

};


acl "foreign" {
10.10.10.128/25;
};
view "foreign" {
match-clients { "foreign" ;};


zone "mnc160.mcc310.gprs" {
type forward;
forwarders {
216.155.160.105;
216.155.160.106;
216.155.160.11;
216.155.160.12;
};
forward only;
};

zone "mnc003.mcc268.gprs" {
type forward;
forwarders {
62.169.65.1;
62.169.65.2;
};
forward only; };


};

#-----------------------------------------------

Thanks in advance,

I am looking forward to hear you soon.
Regards,

John

===============einde bericht========================
Dit bericht is verstuurd via http://www.twigger.nl. Overal 
ter wereld je bestaande mailadres bereikbaar.

Stuur goedkoop SMS via http://www.twiggersms.nl



More information about the bind-users mailing list