jeroen2009
Technical User
I am trying to setup an intranet site with Debian Squeeze, Bind9 and Apache2 virtualhosts. Bind9 is setup as per below. I can ping hostname mytintrasite and get my apache virtualhost site with though I can not ping or get the virtualhost posted with the names and . Is there an issue with my config?
Hostname server2 has ip address 192.168.1.224
Hostname server1 has ip address 192.168.1.222
My Cisco 1760 router has ip address 192.168.1.254
Many thanks
Jeroen
apt-get install -y bind9 bind9-doc dnsutils
nano /etc/resolv.conf
domain myintrasite
search myintrasite
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
nano /etc/bind/named.conf
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
nano /etc/bind/named.conf.options
forwarders {8.8.8.8;8.8.4.4.};
cat /etc/bind/named.conf.default-zones
this should be populated with root zone, loopback, broadcast, etc.
nano /etc/bind/named.conf.local
zone "myintrasite" {type master; notify no; file "/etc/bind/db.myintrasite"; allow-update{none;};};
zone "1.168.192.in-addr.arpa" {type master; notify no; file "/etc/bind/db.192.168.1"; allow-update{none;};};
cp /etc/bind/db.empty /etc/bind/db.myintrasite
nano /etc/bind/db.myintrasite
$TTL 600
@ IN SOA server2.myintrasite. root.server2.myintrasite. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ; Negative Cache TTL
)
TXT "Primary DNS Server"
@ IN NS server2.
@ IN NS server2.myintrasite.
@ IN MX 10 server2.
@ IN MX 20 server2.myintrasite.
@ IN CNAME server2
server1 IN A 192.168.1.222
server2 IN A 192.168.1.224
www IN A 192.168.1.222
ftp IN A 192.168.1.222
mail IN A 192.168.1.222
sip IN A 192.168.1.222
john IN CNAME server2
jane IN CNAME server2
cp /etc/bind/db.empty /etc/bind/db.192.168.1
nano /etc/bind/db.192.168.1
$TTL 600
@ IN SOA server2.myintrasite. root.server2.myintrasite. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ; Negative Cache TTL
)
@ IN NS server2.myintrasite.
1 IN PTR server2.myintrasite.
2 IN PTR server1.myintrasite.
/etc/init.d/networking restart
/etc/init.d/bind9 restart
Hostname server2 has ip address 192.168.1.224
Hostname server1 has ip address 192.168.1.222
My Cisco 1760 router has ip address 192.168.1.254
Many thanks
Jeroen
apt-get install -y bind9 bind9-doc dnsutils
nano /etc/resolv.conf
domain myintrasite
search myintrasite
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
nano /etc/bind/named.conf
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
nano /etc/bind/named.conf.options
forwarders {8.8.8.8;8.8.4.4.};
cat /etc/bind/named.conf.default-zones
this should be populated with root zone, loopback, broadcast, etc.
nano /etc/bind/named.conf.local
zone "myintrasite" {type master; notify no; file "/etc/bind/db.myintrasite"; allow-update{none;};};
zone "1.168.192.in-addr.arpa" {type master; notify no; file "/etc/bind/db.192.168.1"; allow-update{none;};};
cp /etc/bind/db.empty /etc/bind/db.myintrasite
nano /etc/bind/db.myintrasite
$TTL 600
@ IN SOA server2.myintrasite. root.server2.myintrasite. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ; Negative Cache TTL
)
TXT "Primary DNS Server"
@ IN NS server2.
@ IN NS server2.myintrasite.
@ IN MX 10 server2.
@ IN MX 20 server2.myintrasite.
@ IN CNAME server2
server1 IN A 192.168.1.222
server2 IN A 192.168.1.224
www IN A 192.168.1.222
ftp IN A 192.168.1.222
mail IN A 192.168.1.222
sip IN A 192.168.1.222
john IN CNAME server2
jane IN CNAME server2
cp /etc/bind/db.empty /etc/bind/db.192.168.1
nano /etc/bind/db.192.168.1
$TTL 600
@ IN SOA server2.myintrasite. root.server2.myintrasite. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ; Negative Cache TTL
)
@ IN NS server2.myintrasite.
1 IN PTR server2.myintrasite.
2 IN PTR server1.myintrasite.
/etc/init.d/networking restart
/etc/init.d/bind9 restart