root@earth:/etc/bind# cat /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "gridgalaxy.org" {
type master;
file "/etc/bind/zones/gridgalaxy.org.zone";
};
zone "35.151.10.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.35.151.10.in-addr.arpa";
};
root@earth:/etc/bind# cat /etc/bind/zones/gridgalaxy.org.zone
gridgalaxy.org. IN SOA ns1.gridgalaxy.org. admin.gridgalaxy.org. (
2006071801
28800
3600
604800
38400 )
gridgalaxy.org. IN NS ns1.gridgalaxy.org.
gridgalaxy.org. IN MX 10 mta.gridgalaxy.org.
www IN A 10.151.35.203
mta IN A 10.151.35.203
ns1 IN A 10.151.35.203
earth IN A 10.151.35.203
saturn IN A 10.151.35.203
root@earth:/etc/bind# cat /etc/bind/zones/rev.35.151.10.in-addr.arpa
@ IN SOA ns1.gridgalaxy.org. admin.gridgalaxy.org. (
2006071801; serial
28800; refresh, seconds
604800; retry, seconds
604800; expire, seconds
86400 ); minimum, seconds
IN NS ns1.gridgalaxy.org.
203 IN PTR gridgalaxy.org
root@earth:/etc/bind# cat /etc/resolv.conf
nameserver 10.151.35.203
nameserver 202.46.129.2
root@earth:/etc/bind# /etc/init.d/bind9 restart
root@earth:/etc/bind# nslookup saturn.gridgalaxy.org
Server: 10.151.35.203
Address: 10.151.35.203#53
Name: saturn.gridgalaxy.org
Address: 10.151.35.203
root@earth:/etc/bind# nslookup google.com
Server: 202.46.129.2
Address: 202.46.129.2#53
Non-authoritative answer:
Name: google.com
Address: 72.14.254.104
Friday, July 23, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment