//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
acl internal { 192.168.0.0/24;};
options {
listen-on port 53 { 127.0.0.1; 192.168.0.4; };
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";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { localhost; };
allow-query-cache { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view internal {
match-clients { localhost; internal; };
match-destinations { localhost; };
recursion yes;
zone "aem.example.com" IN {
type master;
file "forward.zone";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "reverse.zone";
};
include "/etc/named.rfc1912.zones";
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
##FORWARD ZONE CONFIGURATION
-----------------------------------------------------
$TTL 86400
@ IN SOA station4.aem.example.com. root.aem.example.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS station4.aem.example.com.
IN A 192.168.0.4
station4 IN A 192.168.0.4
www IN A 192.168.0.1
web.aem.example.com. 3600 IN CNAME www.aem.example.com.
##REVERSE ZONE
------------------------------------------------------
$TTL 86400
@ IN SOA station4.aem.example.com. root.aem.example.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS station4.aem.example.com.
4 IN PTR station4.aem.exmaple.com.
--------------------------------------------------------------------------------------------------------------------------------------------
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
include "/etc/transfer.key";
acl internal { 192.168.0.0/24; };
acl external { 192.168.1.0/24; };
options {
listen-on port 53 { 127.0.0.1; 192.168.0.2; 192.168.1.102; };
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";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-transfer { key master-slave; };
allow-query { localhost; internal; external; };
allow-query-cache { localhost; internal; external; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view internal {
match-clients { localhost; internal; };
match-destinations { localhost; };
recursion yes;
zone "sudipta.example.com" IN {
type master;
file "fw.zone";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "re.zone";
};
include "/etc/named.rfc1912.zones";
};
view external {
match-clients { localhost; internal; external; };
match-destinations { localhost; };
recursion yes;
zone "sudipta.example.com" IN {
type master;
file "fw1.zone";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "re1.zone";
};
include "/etc/named.rfc1912.zones";
};
view localhost_resolver {
match-clients { localhost; 192.168.0.0/24; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
fw1.zone
-----------
$TTL 86400
@ IN SOA station2.sudipta.example.com. root.sudipta.example.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS station2.sudipta.example.com.
@ IN A 192.168.1.102
station2 IN A 192.168.1.102
;;station3 IN A 192.168.0.3
;;station9 IN A 192.168.0.9
;;MX
@ IN MX 10 station2.sudipta.example.com.
;;CNAME
mail.sudipta.example.com. 3600 IN CNAME station2
re1.zone
----------------
$TTL 86400
@ IN SOA station2.sudipta.example.com. root.sudipta.example.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS station2.sudipta.example.com.
102 IN PTR station2.sudipta.example.com.
;;3 IN PTR station3.sudipta.example.com.
;;9 IN PTR station9.sudipta.example.com.
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
acl internal { 192.168.0.0/24;};
options {
listen-on port 53 { 127.0.0.1; 192.168.0.4; };
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";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { localhost; };
allow-query-cache { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view internal {
match-clients { localhost; internal; };
match-destinations { localhost; };
recursion yes;
zone "aem.example.com" IN {
type master;
file "forward.zone";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "reverse.zone";
};
include "/etc/named.rfc1912.zones";
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
##FORWARD ZONE CONFIGURATION
-----------------------------------------------------
$TTL 86400
@ IN SOA station4.aem.example.com. root.aem.example.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS station4.aem.example.com.
IN A 192.168.0.4
station4 IN A 192.168.0.4
www IN A 192.168.0.1
web.aem.example.com. 3600 IN CNAME www.aem.example.com.
##REVERSE ZONE
------------------------------------------------------
$TTL 86400
@ IN SOA station4.aem.example.com. root.aem.example.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS station4.aem.example.com.
4 IN PTR station4.aem.exmaple.com.
--------------------------------------------------------------------------------------------------------------------------------------------
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
include "/etc/transfer.key";
acl internal { 192.168.0.0/24; };
acl external { 192.168.1.0/24; };
options {
listen-on port 53 { 127.0.0.1; 192.168.0.2; 192.168.1.102; };
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";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-transfer { key master-slave; };
allow-query { localhost; internal; external; };
allow-query-cache { localhost; internal; external; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view internal {
match-clients { localhost; internal; };
match-destinations { localhost; };
recursion yes;
zone "sudipta.example.com" IN {
type master;
file "fw.zone";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "re.zone";
};
include "/etc/named.rfc1912.zones";
};
view external {
match-clients { localhost; internal; external; };
match-destinations { localhost; };
recursion yes;
zone "sudipta.example.com" IN {
type master;
file "fw1.zone";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "re1.zone";
};
include "/etc/named.rfc1912.zones";
};
view localhost_resolver {
match-clients { localhost; 192.168.0.0/24; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
fw1.zone
-----------
$TTL 86400
@ IN SOA station2.sudipta.example.com. root.sudipta.example.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS station2.sudipta.example.com.
@ IN A 192.168.1.102
station2 IN A 192.168.1.102
;;station3 IN A 192.168.0.3
;;station9 IN A 192.168.0.9
;;MX
@ IN MX 10 station2.sudipta.example.com.
;;CNAME
mail.sudipta.example.com. 3600 IN CNAME station2
re1.zone
----------------
$TTL 86400
@ IN SOA station2.sudipta.example.com. root.sudipta.example.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS station2.sudipta.example.com.
102 IN PTR station2.sudipta.example.com.
;;3 IN PTR station3.sudipta.example.com.
;;9 IN PTR station9.sudipta.example.com.
No comments:
Post a Comment