BIND Example / Exemple orientative de fisiere BIND
 


named.conf:

;
; Aarons version of an BIND  named.conf
;

options {
directory "/etc/namedb";

// forward only;

/*
forwarders {
127.0.0.1;
};
*/
};

// Note: the following will be supported in a future release.
/*
host { any; } {
topology {
127.0.0.0/8;
};
};
*/

// Setting up secondaries is way easier and the rough picture for this
// is explained below.
//
// If you enable a local name server, don't forget to enter 127.0.0.1
// into your /etc/resolv.conf so this server will be queried first.
// Also, make sure to enable it in /etc/rc.conf.

zone "." {
type hint;
file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "localhost.rev";
};

// NB: Do not use the IP addresses below, they are faked, and only
// serve demonstration/documentation purposes!
//
// Example secondary config entries. It can be convenient to become
// a secondary at least for the zone where your own domain is in. Ask
// your network administrator for the IP address of the responsible
// primary.
//
// Never forget to include the reverse lookup (IN-ADDR.ARPA) zone!
// (This is the first bytes of the respective IP address, in reverse
// order, with ".IN-ADDR.ARPA" appended.)
//
// Before starting to setup a primary zone, better make sure you fully
// understand how DNS and BIND works, however. There are sometimes
// unobvious pitfalls. Setting up a secondary is comparably simpler.
//
// NB: Don't blindly enable the examples below. :-) Use actual names
// and addresses instead.
//
// NOTE!!! FreeBSD runs bind in a sandbox (see named_flags in rc.conf).
// The directory containing the secondary zones must be write accessible
// to bind. The following sequence is suggested:
//
// mkdir /etc/namedb/s
// chown bind.bind /etc/namedb/s
// chmod 750 /etc/namedb/s

zone "173.76.207.in-addr.arpa" in {
type master;
file "db.207.76.173";
};

// Note difference in style from above to below will accomplish the same thing.

zone "domain.com" {
type master;
file "domain.com.zone";
};


domain.com.zone

$TTL 3600
@ IN SOA user1.domain.com. hostmaster.domain.com.
(
1 ; Serial ; Increment by one after every change
3600 ; Refresh every hour
900 ; Retry every 15 minutes
3600000 ; Expire 1000 hours
3600 ) ; Minimum 1 hour

IN NS nameserv1.domain.com.
IN NS nameserv2.domain.com.

IN MX 10 mx1.domain.com.

IN A 207.76.173.4
localhost IN A 127.0.0.1
core1 IN A 207.76.173.1
nameserv1 IN A 207.76.173.2
nameserv2 IN A 207.76.173.3
user1 IN A 207.76.173.4
mx1 IN CNAME 207.76.173.4
ftp IN CNAME user1.domain.com.
 


11.22.33.rev

$TTL 3600
@ IN SOA user1.domain.com. hostmaster.domain.com.
(
1 ; Serial ; Increment by one after every change
3600 ; Refresh every hour
900 ; Retry every 15 minutes
3600000 ; Expire 1000 hours 5w6d16h
3600 ) ; Minimum 1 hour


IN NS ns1.dns.domain.com.
IN NS ns2.dns.domain.com.


0 IN PTR network.domain.com.
1 IN PTR core1.domain.com.
2 IN PTR nameserv1.domain.com.
3 IN PTR nameserv2.domain.com.
4 IN PTR user1.domain.com.
 



 


bestHOST.ro - Premium Web Hosting


(c)mihai 2002-2003