Open main menu

CDOT Wiki β

Changes

BIND&DNS Notes

1,214 bytes added, 10:56, 8 October 2015
What are the components in the DNS?
* Domains and Domain Names
* Zones
* [http://www.zytrax.com/books/dns/ch2/index.html#recursive Recursive and iterative queries] (with diagram)
 
= DNS Servers =
== Authoritative Name Servers ==
A name server which performs recursive lookups for local clients. Recursive name servers normally cache the results of the lookups they perform to improve performance.
* Forwarder
Some Sometimes a caching name server may not perform the recursive lookup all by itself. It can forward some or all of the queries to another caching name server, commonly referred to as a forwarder.
= BIND Configuration File =
== Caching ONLY name server ==
Minimal Configuration
<pre>
acl intnet { 192.168.99.0/24; 172.16.0.0/16; };
options {
directory "/var/named";
allow-query { intnet; };
};
 
zone "." {
type hint;
file "named.cache";
};
</pre>
== Authoritative Primary Name Server ==
Minimal Configuration
<pre>
options {
directory "/var/named";
allow-query { any; };
recursion no;
};
zone "ops335.com" {
type master;
file "ops335.com.db";
notify yes;
 
allow-transfer {
192.168.99.54;
};
};
</pre>
== Authoritative Secondary Name Server ==
Minimal Configuration
<pre>
options {
directory "/var/named";
allow-query { any; };
recursion no;
};
zone "ops335.com" {
type slave;
file "ops335.com.bk";
masters { 192.168.99.53; };
};
</pre>
== Mix-mode Name Server ==
Minimal Configuration
<pre>
acl intnet { 192.168.99.0/24; 172.16.0.0/16; };
options {
directory "/var/named";
allow-query { intnet; };
};
 
zone "." {
type hint;
file "named.cache";
};
zone "ops335.com" {
type slave;
file "ops335.com.bk";
masters { 192.168.99.53; };
 
</pre>
= Root Zone and Root Name Server =