I have a network in the network: dns.mynetwork,companynetwo
rk.net
My config files are outlined below:
Named.conf file
//
// named.caching-nameserver.c
onf
//
// 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*/sampl
e/ 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.
//
options {
listen-on port 53 { 127.0.0.1; 192.168.110.0/24; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dum
p.db";
statistics-file "/var/named/data/named_sta
ts.txt";
memstatistics-file "/var/named/data/named_mem
_stats.txt
";
allow-query { localhost; any; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone "mynetwork.companynetwork.
net" {
type master;
notify no;
allow-query { 192.168.110.0/24; };
file "my-site.zone";
};
include "/etc/named.rfc1912.zones"
;
my-site.zone file
;
; Zone file for mynetwork.companynetwork.n
et
;
; The full zone file
;
$TTL 3D
@ IN SOA ns1.mynetwork.companynetwo
rk.net hostmaster.mynetwork.compa
nynetwork.
net
. (
200807151 ;serial#
3600 ;refresh, seconds
3600 ;retry, seconds
3600 ;expire, seconds
3600 ) ;minimum, seconds
NS
www.mynetwork.companynetwork.net
. ;Inet address of nameserver
localhost A 127.0.0.1
host1 A 192.168.110.1
ns1 CNAME host1
dns resolv.conf file
; generated by /sbin/dhclient-script
search companynetwork.net
nameserver 127.0.0.1