unkn0wn
18th July 2006, 10:27
I want to know do i fallow right track :)
i have apt-get bind9 dns-utils write my own named.conf
include "/etc/bind/named.conf.options";
logging{
channel simple_log {
file "/var/log/named/bind.log" versions 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
simple_log;
};
};
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
view "trusted" {
match-clients { 192.168.23.0/24; };
recursion yes;
zone "garden.com {
type master;
file "/etc/bind/db.garden.com-int.";
};
};
view "badguys" {
match-clients {"any"; };
recursion no;
};
zone "garden.com {
type master;
// javni hostovi
file "/etc/bind/db.garden.com-ext";
};
// add required zones
};
include "/etc/bind/named.conf.local";
I want to splice enternal and external network.
Is this a good syntax.
Can i add notify or some else clausule.
After that i write zones one ext with public IP and one internal with internal ip.
I just want to know before i proved to work is that named.conf ok?
i have apt-get bind9 dns-utils write my own named.conf
include "/etc/bind/named.conf.options";
logging{
channel simple_log {
file "/var/log/named/bind.log" versions 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
simple_log;
};
};
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
view "trusted" {
match-clients { 192.168.23.0/24; };
recursion yes;
zone "garden.com {
type master;
file "/etc/bind/db.garden.com-int.";
};
};
view "badguys" {
match-clients {"any"; };
recursion no;
};
zone "garden.com {
type master;
// javni hostovi
file "/etc/bind/db.garden.com-ext";
};
// add required zones
};
include "/etc/bind/named.conf.local";
I want to splice enternal and external network.
Is this a good syntax.
Can i add notify or some else clausule.
After that i write zones one ext with public IP and one internal with internal ip.
I just want to know before i proved to work is that named.conf ok?