Hi macadam,
Here it is:
/etc/named.conf :
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
auth-nxdomain yes;
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "mydomain.com" {
type master;
file "mydomain.com.zone";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa ";
};
/var/named/named.local :
$TTL 3D
@ IN SOA ns.mydomain.com. postmaster.mydomain.com. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS ns.mydomain.com.
1 PTR localhost.
/var/named/ mydomain.com.zone
$TTL 3D
@ IN SOA ns.mydomain.com. postmaster.mydomain.com. (
20030917 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
NS ns ; Inet Address of name server
MX 10 mail.mydomian.com.
localhost A 127.0.0.1
ns A 192.168.196.2
mail A 192.168.196.4
/var/named/1.168.192.in-addr.arpa
$TTL 3D
@ IN SOA ns.mydomain.com. postmaster.mydomain.com. (
20030917 ; Serial, todays date + todays serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS ns.mydomain.com.
1 PTR gw.mydomain.com.
2 PTR ns.mydomain.com.
3 PTR mail.mydomain.com.
4 PTR ftp.mydomain.com.
For named.ca file, you will get that file when you installed the bind package.
Do some changes for your needs. If you met any problem, do let me know, I will try to help you although I am not an expert.
Last edited by joseph; 09-17-2003 at 02:11 AM.
|