<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tux-box1</id>
	<title>LinuxMCE - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tux-box1"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Tux-box1"/>
	<updated>2026-07-22T05:13:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=How_to_setup_Local_Authoritative_DNS&amp;diff=31839</id>
		<title>How to setup Local Authoritative DNS</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=How_to_setup_Local_Authoritative_DNS&amp;diff=31839"/>
		<updated>2012-08-14T02:59:53Z</updated>

		<summary type="html">&lt;p&gt;Tux-box1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category: Tutorials]]&lt;br /&gt;
=How to setup Local Authoritative DNS=&lt;br /&gt;
&lt;br /&gt;
I was wanting an authoritative name server for my local intranet.  I also wanted any dynamic IP&#039;s to be visible to the name server.  The name server included with linuxmce is configured as a recursive name server.  Here&#039;s the changes I did to configure my core&#039;s name server to be authoritative and support dynamic IPs.  Note, the machines on my intranet are private, i.e., not known to the outside world.&lt;br /&gt;
&lt;br /&gt;
  3 Feb 2008 - Developed and tested on LinuxMCE 0710 Beta 3 amd64.&lt;br /&gt;
&lt;br /&gt;
I named my intranet &amp;quot;wright.local&amp;quot;.  Using a &amp;quot;local&amp;quot; top level domain (TLD) is recommended for private intranets.  Some may prefer to use &amp;quot;lan&amp;quot;.  You do not want to use any of the standard TLDs like &amp;quot;com&amp;quot;, &amp;quot;net&amp;quot;, &amp;quot;org&amp;quot;,...&lt;br /&gt;
&lt;br /&gt;
I used the core&#039;s default intranet addresses, 192.168.80.0/24 with the core at 192.168.80.1.&lt;br /&gt;
&lt;br /&gt;
I&#039;ve attempted to verbosely document each config file. :)&lt;br /&gt;
&lt;br /&gt;
The directions for adapting the config files are included in the named.conf file.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
If you want to try this, I would suggest building the config in new directories then swapping with the originals when you are ready (I had a little mess when my core hung and I had to restart with only half the configs ready) :)&lt;br /&gt;
&lt;br /&gt;
So start with creating two directories:&lt;br /&gt;
&lt;br /&gt;
  sudo mkdir /etc/bind.new&lt;br /&gt;
  sudo mkdir /etc/dhcp3.new&lt;br /&gt;
&lt;br /&gt;
Now copy the contents of the original directories:&lt;br /&gt;
&lt;br /&gt;
  sudo cp -arp /etc/bind/* /etc/bind.new&lt;br /&gt;
  sudo cp -arp /etc/dhcp3/* /etc/dhcp3.new&lt;br /&gt;
&lt;br /&gt;
Also create a new resolv.conf file:&lt;br /&gt;
&lt;br /&gt;
  sudo touch /etc/resolv.conf.new&lt;br /&gt;
&lt;br /&gt;
You will be creating or editing the following config files in these new directories:&lt;br /&gt;
&lt;br /&gt;
  /etc/bind.new/named.conf&lt;br /&gt;
  /etc/bind.new/named.conf.options&lt;br /&gt;
  /etc/bind.new/logging.conf&lt;br /&gt;
  /etc/bind.new/rndc.conf&lt;br /&gt;
  /etc/bind.new/rndc.key&lt;br /&gt;
  /etc/bind.new/db.wright.local.zone&lt;br /&gt;
  /etc/bind.new/db.wright.local.rev&lt;br /&gt;
  /etc/dhcp3.new/dhcpd.conf&lt;br /&gt;
  /etc/resolv.conf.new&lt;br /&gt;
&lt;br /&gt;
The full text of the files you will be editing is at the foot of this page. The original author named his network &amp;quot;wright&amp;quot;; you should replace all instances of &amp;quot;wright&amp;quot; with the name of your network.&lt;br /&gt;
&lt;br /&gt;
==Notes on Editing Files==&lt;br /&gt;
&lt;br /&gt;
===rndc.key and dhcpd.conf key values=== &lt;br /&gt;
&lt;br /&gt;
To create a key for use in rndc.key and dhcpd.conf:&lt;br /&gt;
&lt;br /&gt;
  sudo dnssec-keygen -a HMAC-MD5 -b 256 -n user rndc&lt;br /&gt;
&lt;br /&gt;
Now get the key from the private file:&lt;br /&gt;
&lt;br /&gt;
  sudo cat Krndc.*.private&lt;br /&gt;
  Private-key-format: v1.2&lt;br /&gt;
  Algorithm: 157 (HMAC_MD5)&lt;br /&gt;
  Key: 3+GnSWV5FKxcUu57k7QFxbpvv/xr4fXj2wBVGtdGifI=&lt;br /&gt;
  Bits: AAA=&lt;br /&gt;
&lt;br /&gt;
Now cut the key which is to the right of &amp;quot;Key: &amp;quot; and paste where needed (replace &amp;quot;&amp;lt;paste your key here&amp;gt;&amp;quot; with the key in the config files).  So an example using the above key would look like:&lt;br /&gt;
&lt;br /&gt;
  key &amp;quot;linuxmce-dhcp&amp;quot; {&lt;br /&gt;
        algorithm	hmac-md5;&lt;br /&gt;
        secret		&amp;quot;&amp;lt;paste your key here&amp;gt;&amp;quot;;&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
  key &amp;quot;linuxmce-dhcp&amp;quot; {&lt;br /&gt;
        algorithm	hmac-md5;&lt;br /&gt;
        secret		&amp;quot;3+GnSWV5FKxcUu57k7QFxbpvv/xr4fXj2wBVGtdGifI=&amp;quot;;&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
===Check directory ownership===&lt;br /&gt;
Make the logging directory:&lt;br /&gt;
&lt;br /&gt;
  sudo mkdir /var/log/named&lt;br /&gt;
  sudo chown bind:bind /var/log/named&lt;br /&gt;
  sudo chmod 755 /var/log/named&lt;br /&gt;
&lt;br /&gt;
===Setting default domain===&lt;br /&gt;
You probably ought to check and change the defaultdomain:&lt;br /&gt;
&lt;br /&gt;
  domainname&lt;br /&gt;
&lt;br /&gt;
will probably show&lt;br /&gt;
&lt;br /&gt;
  pluto&lt;br /&gt;
&lt;br /&gt;
if so, then set it by:&lt;br /&gt;
  sudo domainname yourdomain.local&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;yourdomain.local&amp;quot; is your domain.  :-)&lt;br /&gt;
&lt;br /&gt;
===File Permissions===&lt;br /&gt;
Change all the file permissions per instructions in named.conf:&lt;br /&gt;
&lt;br /&gt;
   File permissions:&lt;br /&gt;
  //    /etc/bind/named.conf   root:root   644&lt;br /&gt;
  //    /etc/bind/rndc.key     root:bind   640&lt;br /&gt;
  //    /etc/bind/rndc.conf    root:root   600&lt;br /&gt;
  //    /etc/resolv.conf       root:root   644&lt;br /&gt;
  //    /etc/bind              root:bind   775, chmod g+s =&amp;gt; drwxrwsr-x&lt;br /&gt;
  //    /etc/dhcp3             root:root   755&lt;br /&gt;
  //    /etc/dhcp3/dhcpd.conf  root:root   644&lt;br /&gt;
  //&lt;br /&gt;
&lt;br /&gt;
===Double check. Everything===&lt;br /&gt;
Double check everything.   Roll Eyes&lt;br /&gt;
&lt;br /&gt;
==Wrapping up==&lt;br /&gt;
When and if you are feeling lucky, rename the original directories and then rename the new directories to take their place:&lt;br /&gt;
&lt;br /&gt;
  sudo mv /etc/bind /etc/bind.original&lt;br /&gt;
  sudo mv /etc/bind.new /etc/bind&lt;br /&gt;
  sudo mv /etc/dhcp3 /etc/dhcp3.original&lt;br /&gt;
  sudo mv /etc/dhcp3.new /etc/dhcp3&lt;br /&gt;
  sudo mv /etc/resolv.conf /etc/resolv.conf.original&lt;br /&gt;
  sudo mv /etc/resolv.conf.new /etc/resolv.conf&lt;br /&gt;
&lt;br /&gt;
Finally restart the bind and dhcpd services:&lt;br /&gt;
&lt;br /&gt;
  sudo rndc reload&lt;br /&gt;
  sudo /etc/init.d/dhcp3-server restart&lt;br /&gt;
&lt;br /&gt;
Check the syslog for any errors:&lt;br /&gt;
&lt;br /&gt;
  grep named /var/log/syslog&lt;br /&gt;
  grep dhcpd /var/log/syslog&lt;br /&gt;
&lt;br /&gt;
==Config Files==&lt;br /&gt;
&lt;br /&gt;
===/etc/bind/named.conf===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// This is the primary configuration file for the BIND DNS server named.&lt;br /&gt;
//&lt;br /&gt;
// This configuration supports an authoritative local zone (wright.local on&lt;br /&gt;
// 192.168.80.0/24) and allows DHCP to update the local zone.  &lt;br /&gt;
// To customize to your setup:&lt;br /&gt;
// 1) replace &amp;quot;wright.local&amp;quot; with your internal domain name.&lt;br /&gt;
// 2) edit db.wright.local.zone and db.wright.local.rev and replace&lt;br /&gt;
//    my static names/addresses with your network&#039;s static names/addresses.&lt;br /&gt;
//    Make sure to increment the serial number of any file edited.  &lt;br /&gt;
//    Note, format of serial number is:  YYYYMMDDNN where YYYY is year, &lt;br /&gt;
//    MM is month, DD is day, NN is update number for that day (i.e., 01, &lt;br /&gt;
//    02, 03,...)&lt;br /&gt;
// 3) rename db.wright.local.zone to match your domain name.&lt;br /&gt;
// 4) rename db.wright.local.rev to match your domain name.&lt;br /&gt;
// 5) If you changed the internal network IP from the LinuxMCE default of&lt;br /&gt;
//    192.168.80.0/24, then replace &amp;quot;192.168.80&amp;quot; with your network&lt;br /&gt;
//    ip and replace it&#039;s reverse &amp;quot;80.168.192&amp;quot; wity your network ip&#039;s&lt;br /&gt;
//    reverse.&lt;br /&gt;
//&lt;br /&gt;
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the &lt;br /&gt;
// structure of BIND configuration files in Debian, *BEFORE* you customize &lt;br /&gt;
// this configuration file.&lt;br /&gt;
//&lt;br /&gt;
// If you are just adding zones, please do that in /etc/bind/named.conf.local&lt;br /&gt;
//&lt;br /&gt;
// references:&lt;br /&gt;
// http://www.arda.homeunix.net/dnssetup.html&lt;br /&gt;
// http://www.madboa.com/geek/soho-bind/&lt;br /&gt;
//&lt;br /&gt;
// notes:&lt;br /&gt;
// 1) The following command should be ran about twice a year to keep&lt;br /&gt;
//    the root servers current:&lt;br /&gt;
//      dig @a.root-servers.net . ns &amp;gt; /etc/bin/db.root&lt;br /&gt;
//    Root name servers don’t change very often so updating this file more &lt;br /&gt;
//    than twice a year is probably overkill. Frequent updates also put undo &lt;br /&gt;
//    load on the root name servers; they have enough to do as it is.&lt;br /&gt;
//&lt;br /&gt;
// 2) File permissions:&lt;br /&gt;
//    /etc/bind/named.conf   root:root   644&lt;br /&gt;
//    /etc/bind/rndc.key     root:bind   640&lt;br /&gt;
//    /etc/bind/rndc.conf    root:root   600&lt;br /&gt;
//    /etc/resolv.conf       root:root   644&lt;br /&gt;
//    /etc/bind              root:bind   775, chmod g+s =&amp;gt; drwxrwsr-x&lt;br /&gt;
//    /etc/dhcp3             root:root   755&lt;br /&gt;
//    /etc/dhcp3/dhcpd.conf  root:root   644&lt;br /&gt;
//&lt;br /&gt;
// Manually Updating Zone Files&lt;br /&gt;
// 1. Use rndc to stop BIND.&lt;br /&gt;
//      sudo rndc stop&lt;br /&gt;
// 2. Remove any .jnl files from the zone file directory.&lt;br /&gt;
//      sudo rm /etc/bind/*.jnl&lt;br /&gt;
// 3. Edit the zone files as necessary. Make sure to increment the serial &lt;br /&gt;
//    number of any file edited.  Note, format of serial number is:&lt;br /&gt;
//    YYYYMMDDNN where YYYY is year, MM is month, DD is day, NN is update&lt;br /&gt;
//    number for that day (i.e., 01, 02, 03,...)&lt;br /&gt;
// 4. Start BIND using its startup script. &lt;br /&gt;
//      sudo /etc/init.d/bind9 start&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// secret must be the same as in /etc/bind/rndc.conf&lt;br /&gt;
include &amp;quot;/etc/bind/rndc.key&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// access control list used to limit queries to local net&lt;br /&gt;
acl &amp;quot;internal-net&amp;quot; { 192.168.80/24; 127.0.0.1; };&lt;br /&gt;
&lt;br /&gt;
controls {&lt;br /&gt;
    inet 127.0.0.1 allow { any; } keys { &amp;quot;rndc-key&amp;quot;; };&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
include &amp;quot;/etc/bind/named.conf.options&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// The single dot (.) is the root of all DNS namespace, so&lt;br /&gt;
// this zone tells named where to start looking for any&lt;br /&gt;
// name on the Internet&lt;br /&gt;
zone &amp;quot;.&amp;quot; IN {&lt;br /&gt;
	type hint;&lt;br /&gt;
	file &amp;quot;/etc/bind/db.root&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// local intranet zones and reverse zones&lt;br /&gt;
// intranet is wright.local and 192.168.80.0/24&lt;br /&gt;
// the DHCP servers is on linuxmce-dhcp&lt;br /&gt;
// an optional second nameserver would be on linuxmce-ns2&lt;br /&gt;
	&lt;br /&gt;
zone &amp;quot;wright.local&amp;quot; IN {&lt;br /&gt;
	type master;&lt;br /&gt;
	file &amp;quot;/etc/bind/db.wright.local.zone&amp;quot;;&lt;br /&gt;
	// both allow-update and update-policy can enable DHCP updates,&lt;br /&gt;
	// but update-policy allows more control over what kinds of &lt;br /&gt;
	// updates DHCP can perform on a zone.&lt;br /&gt;
	// allow-update { none; };&lt;br /&gt;
	update-policy { grant linuxmce-dhcp subdomain wright.local. A TXT; };&lt;br /&gt;
	// allow-transfer { key &amp;quot;linuxmce-ns2&amp;quot;; };&lt;br /&gt;
	// notify on zone transfers&lt;br /&gt;
	notify yes;&lt;br /&gt;
};&lt;br /&gt;
	&lt;br /&gt;
zone &amp;quot;80.168.192.in-addr.arpa&amp;quot; IN {&lt;br /&gt;
	type master;&lt;br /&gt;
	file &amp;quot;/etc/bind/db.wright.local.rev&amp;quot;;&lt;br /&gt;
	// allow-update { none; };&lt;br /&gt;
	update-policy { grant linuxmce-dhcp subdomain 80.168.192.in-addr.arpa. PTR TXT; };&lt;br /&gt;
	// allow-transfer { key &amp;quot;linuxmce-ns2&amp;quot;; };&lt;br /&gt;
	notify yes;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// be authoritative for the localhost forward and reverse zones, and for&lt;br /&gt;
// broadcast zones as per RFC 1912 (http://www.ietf.org/rfc/rfc1912.txt)&lt;br /&gt;
&lt;br /&gt;
// Where the localhost hostname is defined&lt;br /&gt;
zone &amp;quot;localhost&amp;quot; IN {&lt;br /&gt;
	// a master type means that this server needn&#039;t look&lt;br /&gt;
	// anywhere else for information; the localhost buck&lt;br /&gt;
	// stops here.&lt;br /&gt;
	type master;&lt;br /&gt;
	file &amp;quot;/etc/bind/db.local&amp;quot;;&lt;br /&gt;
	// don&#039;t allow dynamic DNS clients to update info&lt;br /&gt;
	// about the localhost zone&lt;br /&gt;
	allow-update { none; };&lt;br /&gt;
};&lt;br /&gt;
	&lt;br /&gt;
// Where the 127.0.0.0 network is defined&lt;br /&gt;
zone &amp;quot;127.in-addr.arpa&amp;quot; IN {&lt;br /&gt;
	type master;&lt;br /&gt;
	file &amp;quot;/etc/bind/db.127&amp;quot;;&lt;br /&gt;
	allow-update { none; };&lt;br /&gt;
};&lt;br /&gt;
	&lt;br /&gt;
zone &amp;quot;0.in-addr.arpa&amp;quot; IN {&lt;br /&gt;
	type master;&lt;br /&gt;
	file &amp;quot;/etc/bind/db.0&amp;quot;;&lt;br /&gt;
	allow-update { none; };&lt;br /&gt;
};&lt;br /&gt;
	&lt;br /&gt;
zone &amp;quot;255.in-addr.arpa&amp;quot; IN {&lt;br /&gt;
	type master;&lt;br /&gt;
	file &amp;quot;/etc/bind/db.255&amp;quot;;&lt;br /&gt;
	allow-update { none; };&lt;br /&gt;
};&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
// Include logging config file&lt;br /&gt;
include &amp;quot;/etc/bind/logging.conf&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// zone &amp;quot;com&amp;quot; { type delegation-only; };&lt;br /&gt;
// zone &amp;quot;net&amp;quot; { type delegation-only; };&lt;br /&gt;
&lt;br /&gt;
// From the release notes:&lt;br /&gt;
//  Because many of our users are uncomfortable receiving undelegated answers&lt;br /&gt;
//  from root or top level domains, other than a few for whom that behaviour&lt;br /&gt;
//  has been trusted and expected for quite some length of time, we have now&lt;br /&gt;
//  introduced the &amp;quot;root-delegations-only&amp;quot; feature which applies delegation-only&lt;br /&gt;
//  logic to all top level domains, and to the root domain.  An exception list&lt;br /&gt;
//  should be specified, including &amp;quot;MUSEUM&amp;quot; and &amp;quot;DE&amp;quot;, and any other top level&lt;br /&gt;
//  domains from whom undelegated responses are expected and trusted.&lt;br /&gt;
// root-delegation-only exclude { &amp;quot;DE&amp;quot;; &amp;quot;MUSEUM&amp;quot;; };&lt;br /&gt;
&lt;br /&gt;
include &amp;quot;/etc/bind/named.conf.local&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===/etc/bind/named.conf.options===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
options {&lt;br /&gt;
	// tell named where to find files mentioned below&lt;br /&gt;
	directory &amp;quot;/var/cache/bind&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	// file that contains the process id when bind is running&lt;br /&gt;
	pid-file &amp;quot;/var/run/bind/run/named.pid&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	// enable statistics&lt;br /&gt;
	statistics-file &amp;quot;/var/named/named.stats&amp;quot;;&lt;br /&gt;
	zone-statistics yes;&lt;br /&gt;
&lt;br /&gt;
	dump-file &amp;quot;/var/named/named.dump&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	// If there is a firewall between you and nameservers you want&lt;br /&gt;
	// to talk to, you might need to uncomment the query-source&lt;br /&gt;
	// directive below.  Previous versions of BIND always asked&lt;br /&gt;
	// questions using port 53, but BIND 8.1 and later use an unprivileged&lt;br /&gt;
	// port by default.&lt;br /&gt;
	// query-source address * port 53;&lt;br /&gt;
&lt;br /&gt;
	// If your ISP provided one or more IP addresses for stable &lt;br /&gt;
	// nameservers, you probably want to use them as forwarders.  &lt;br /&gt;
	// Uncomment the following block, and insert the addresses replacing &lt;br /&gt;
	// the all-0&#039;s placeholder.&lt;br /&gt;
&lt;br /&gt;
	// The forwarders option tells BIND to not use iterative queries itself &lt;br /&gt;
	// for information it doesn’t already know about but to forward a &lt;br /&gt;
	// recursive query to the name servers specified instead.&lt;br /&gt;
	include &amp;quot;/etc/bind/named.conf.forwarders&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
	// conform to RFC1035&lt;br /&gt;
	auth-nxdomain no;&lt;br /&gt;
&lt;br /&gt;
	// on a multi-homed host, you might want to tell named&lt;br /&gt;
	// to listen for queries only on certain interfaces&lt;br /&gt;
	listen-on-v6 { any; };&lt;br /&gt;
	listen-on { &amp;quot;internal-net&amp;quot;; };&lt;br /&gt;
&lt;br /&gt;
	// to allow only specific hosts to use the DNS server:&lt;br /&gt;
	allow-query { &amp;quot;internal-net&amp;quot;; };&lt;br /&gt;
&lt;br /&gt;
	// sets BIND’s default behaviour to refuse all zone transfers. &lt;br /&gt;
	// Without setting this option, anyone can transfer any zone.&lt;br /&gt;
	allow-transfer { none; };&lt;br /&gt;
&lt;br /&gt;
	// do not generate notify messages for all zones on a restart.&lt;br /&gt;
	// override for authorative zones&lt;br /&gt;
	notify no;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===/etc/bind/logging.conf===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
logging {&lt;br /&gt;
&lt;br /&gt;
	channel default_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/default.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel general_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/general.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel database_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/database.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel security_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/security.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel config_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/config.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel resolver_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/resolver.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel xfer-in_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/xfer-in.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel xfer-out_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/xfer-out.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel notify_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/notify.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel client_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/client.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel unmatched_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/unmatched.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel queries_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/queries.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel network_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/network.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel update_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/update.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel dispatch_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/dispatch.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel dnssec_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/dnssec.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
	channel lame-servers_file {&lt;br /&gt;
		file &amp;quot;/var/log/named/lame-servers.log&amp;quot; versions 3 size 5m;&lt;br /&gt;
		severity dynamic;&lt;br /&gt;
		print-time yes;&lt;br /&gt;
		};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	category lame-servers {&lt;br /&gt;
		lame-servers_file;&lt;br /&gt;
		};&lt;br /&gt;
	category dnssec {&lt;br /&gt;
		dnssec_file;&lt;br /&gt;
		};&lt;br /&gt;
	category dispatch {&lt;br /&gt;
		dispatch_file;&lt;br /&gt;
		};&lt;br /&gt;
	category update {&lt;br /&gt;
		update_file;&lt;br /&gt;
		};&lt;br /&gt;
	category network {&lt;br /&gt;
		network_file;&lt;br /&gt;
		};&lt;br /&gt;
	category queries {&lt;br /&gt;
		queries_file;&lt;br /&gt;
		};&lt;br /&gt;
	category unmatched {&lt;br /&gt;
		unmatched_file;&lt;br /&gt;
		};&lt;br /&gt;
	category client {&lt;br /&gt;
		client_file;&lt;br /&gt;
		};&lt;br /&gt;
	category notify {&lt;br /&gt;
		notify_file;&lt;br /&gt;
		};&lt;br /&gt;
	category xfer-out {&lt;br /&gt;
		xfer-out_file;&lt;br /&gt;
		};&lt;br /&gt;
	category xfer-in {&lt;br /&gt;
		xfer-in_file;&lt;br /&gt;
		};&lt;br /&gt;
	category resolver {&lt;br /&gt;
		resolver_file;&lt;br /&gt;
		};&lt;br /&gt;
	category config {&lt;br /&gt;
		config_file;&lt;br /&gt;
		};&lt;br /&gt;
	category security {&lt;br /&gt;
		security_file;&lt;br /&gt;
		};&lt;br /&gt;
	category database {&lt;br /&gt;
		database_file;&lt;br /&gt;
		};&lt;br /&gt;
	category general {&lt;br /&gt;
		general_file;&lt;br /&gt;
		};&lt;br /&gt;
	category default {&lt;br /&gt;
		default_file;&lt;br /&gt;
		};&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===/etc/bind/rndc.conf===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
options {&lt;br /&gt;
	default-server  localhost;&lt;br /&gt;
	default-key     &amp;quot;rndc-key&amp;quot;;&lt;br /&gt;
	default-port 953;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
server localhost {&lt;br /&gt;
	key     &amp;quot;rndc-key&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
key &amp;quot;rndc-key&amp;quot; {&lt;br /&gt;
	algorithm       hmac-md5;&lt;br /&gt;
	secret		&amp;quot;&amp;lt;paste your key here&amp;gt;&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===/etc/bind/rndc.key===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
key &amp;quot;rndc-key&amp;quot; {&lt;br /&gt;
        algorithm	hmac-md5;&lt;br /&gt;
        secret		&amp;quot;&amp;lt;paste your key here&amp;gt;&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
key &amp;quot;linuxmce-dhcp&amp;quot; {&lt;br /&gt;
        algorithm	hmac-md5;&lt;br /&gt;
        secret		&amp;quot;&amp;lt;paste your key here&amp;gt;&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
key &amp;quot;linuxmce-ns2&amp;quot; {&lt;br /&gt;
        algorithm	hmac-md5;&lt;br /&gt;
        secret		&amp;quot;&amp;lt;paste your key here&amp;gt;&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===/etc/bind/db.wright.local.zone===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;&lt;br /&gt;
; BIND data file for wright.local&lt;br /&gt;
; ref. http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-bind-zone.html&lt;br /&gt;
;&lt;br /&gt;
$TTL 86400 ; time to live : 86400s = 1 day&lt;br /&gt;
; Start Of Authority record, proclaims important authoritative information &lt;br /&gt;
; about a namespace to the nameserver.&lt;br /&gt;
@               IN SOA  dcerouter.wright.local        roy@wright.org (&lt;br /&gt;
                2008013101      ;serial (YYYYMMDDNN where N = 01,02,03,...)&lt;br /&gt;
                10800           ;refresh (3 hours)&lt;br /&gt;
                7200            ;retry (2 hours)&lt;br /&gt;
                36000000        ;expire (10,000 hours = 416 2/3 days)&lt;br /&gt;
                86400)          ;default minimum ttl&lt;br /&gt;
;&lt;br /&gt;
; NameServer record, which announces the authoritative nameservers for a particular zone.&lt;br /&gt;
;&lt;br /&gt;
                IN NS   dcerouter.wright.local.&lt;br /&gt;
;&lt;br /&gt;
; Address records specify an IP address to assign to a name&lt;br /&gt;
;&lt;br /&gt;
dcerouter       IN A            192.168.80.1&lt;br /&gt;
thenameofamachine     IN A            192.168.80.21&lt;br /&gt;
thenameofanothermachine  IN A		192.168.80.20&lt;br /&gt;
;&lt;br /&gt;
; Canonical name records, maps one name to another. &lt;br /&gt;
;&lt;br /&gt;
linuxmce        IN CNAME        dcerouter&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===/etc/bind/db.wright.local.rev===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&lt;br /&gt;
; BIND reverse data file for wright.local&lt;br /&gt;
; ref. http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-bind-zone.html&lt;br /&gt;
;&lt;br /&gt;
$ORIGIN 80.168.192.in-addr.arpa.&lt;br /&gt;
$TTL 86400 ; time to live : 86400s = 1 day&lt;br /&gt;
; Start Of Authority record, proclaims important authoritative information &lt;br /&gt;
; about a namespace to the nameserver.&lt;br /&gt;
@               IN SOA  dcerouter.wright.local        roy@wright.org (&lt;br /&gt;
                2008013101      ;serial (YYYYMMDDNN where N = 01,02,03,...)&lt;br /&gt;
                10800           ;refresh (3 hours)&lt;br /&gt;
                7200            ;retry (2 hours)&lt;br /&gt;
                36000000        ;expire (10,000 hours = 416 2/3 days)&lt;br /&gt;
                86400)          ;default minimum ttl&lt;br /&gt;
;&lt;br /&gt;
; NameServer record, which announces the authoritative nameservers for a particular zone.&lt;br /&gt;
;&lt;br /&gt;
                IN NS   dcerouter.wright.local.&lt;br /&gt;
;&lt;br /&gt;
; PTR — PoinTeR record, designed to point to another part of the namespace.&lt;br /&gt;
;&lt;br /&gt;
1               IN PTR  dcerouter.wright.local.&lt;br /&gt;
21              IN PTR  dad-kubuntu.wright.local.&lt;br /&gt;
20		IN PTR	royw-gentoo.wright.local.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===/etc/dhcp3/dhcpd.conf===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
option domain-name-servers 192.168.80.1;&lt;br /&gt;
authoritative;&lt;br /&gt;
&lt;br /&gt;
option routers 192.168.80.1;&lt;br /&gt;
option subnet-mask 255.255.255.0;&lt;br /&gt;
&lt;br /&gt;
# lease IPs for 1 day, maximum 1 week&lt;br /&gt;
default-lease-time 86400;&lt;br /&gt;
max-lease-time 604800;&lt;br /&gt;
&lt;br /&gt;
# dynamic DNS updates&lt;br /&gt;
ddns-updates on;&lt;br /&gt;
ddns-update-style interim;&lt;br /&gt;
ddns-domainname &amp;quot;wright.local.&amp;quot;;&lt;br /&gt;
ddns-rev-domainname &amp;quot;in-addr.arpa.&amp;quot;;&lt;br /&gt;
ddns-ttl 14400;&lt;br /&gt;
&lt;br /&gt;
# don&#039;t let clients modify their own A records&lt;br /&gt;
ignore client-updates;&lt;br /&gt;
&lt;br /&gt;
key &amp;quot;linuxmce-dhcp&amp;quot; {&lt;br /&gt;
	algorithm       hmac-md5;&lt;br /&gt;
	secret		&amp;quot;&amp;lt;paste your key here&amp;gt;&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
zone wright.local {&lt;br /&gt;
	primary 192.168.80.1;&lt;br /&gt;
	key &amp;quot;linuxmce-dhcp&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
zone 80.168.192.in-addr.arpa {&lt;br /&gt;
	primary 192.168.80.1;&lt;br /&gt;
	key &amp;quot;linuxmce-dhcp&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
option space pxelinux;&lt;br /&gt;
option pxelinux.magic code 208 = string;&lt;br /&gt;
option pxelinux.configfile code 209 = text;&lt;br /&gt;
option pxelinux.pathprefix code 210 = text;&lt;br /&gt;
option pxelinux.reboottime code 211 = unsigned integer 32;&lt;br /&gt;
&lt;br /&gt;
subnet 192.168.80.0 netmask 255.255.255.0 {&lt;br /&gt;
	next-server 192.168.80.1;&lt;br /&gt;
	filename &amp;quot;/tftpboot/pxelinux.0&amp;quot;;&lt;br /&gt;
	option pxelinux.reboottime = 30;&lt;br /&gt;
&lt;br /&gt;
	option domain-name &amp;quot;wright.local&amp;quot;;&lt;br /&gt;
	option domain-name-servers 192.168.80.1;&lt;br /&gt;
	option routers 192.168.80.1;&lt;br /&gt;
&lt;br /&gt;
	default-lease-time 86400;&lt;br /&gt;
	max-lease-time 604800;&lt;br /&gt;
	pool {&lt;br /&gt;
		 allow unknown-clients;&lt;br /&gt;
		 range 192.168.80.129 192.168.80.254; &lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# PXE booting machines&lt;br /&gt;
group {&lt;br /&gt;
	next-server 192.168.80.1;&lt;br /&gt;
	filename &amp;quot;/tftpboot/pxelinux.0&amp;quot;;&lt;br /&gt;
	option pxelinux.reboottime = 30;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# regular machines&lt;br /&gt;
group {&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# CORE (1) has bad mac address: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===/etc/resolv.conf===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain wright.local&lt;br /&gt;
nameserver localhost&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tux-box1</name></author>
	</entry>
</feed>