Some Files…

Here is my named.conf …. Ubuntu seems to want to keep custimizations separate from the main file.. which seem a damn goo idea to me.

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { “rndc-key”; };
};

zone “.” {
type hint;
file “/etc/bind/db.root”;
};
zone “localhost” {
type master;
file “/etc/bind/db.local”;
};

zone “127.in-addr.arpa” {
type master;
file “/etc/bind/db.127”;
};
include “/etc/bind/named.conf.local”;
include “/etc/bind/named.conf.options”;

If ur really looking at these files u’ll see some reference for rndc-key, this is for updates to my DDNS and zone files.
So to create this key i had to run:

> rndc-confgen -r /dev/urandum

So when u get the output from this u’ll need to place it in ur named.conf and zone definations.
Here is my named.conf.local

zone “home.lan” {
type master;
file “/etc/bind/db.home”;
allow-update { key rndc-key ;};
};

zone “0.0.10.in-addr.arpa” {
type master;
file “/etc/bind/db.10”;
allow-update { key rndc-key; };
};

include “/etc/bind/rndc.key”;

………… now for the infamous zone files.
here is my reverse zone file:

$ORIGIN .
$TTL 86400 ; 1 day
0.0.10.in-addr.arpa IN SOA enigmatic.home.lan. root.home.lan. (
2005113024 ; serial
604800 ; refresh (1 week)
86400 ; retry (1 day)
2419200 ; expire (4 weeks)
86400 ; minimum (1 day)
)
NS enigmatic.
$ORIGIN 0.0.10.in-addr.arpa.
5 PTR enigmatic.home.lan.

here is the forward:

$ORIGIN .
$TTL 86400 ; 1 day
home.lan IN SOA enigmatic.home.lan. root.home.lan. (
2005113032 ; serial
604800 ; refresh (1 week)
86400 ; retry (1 day)
2419200 ; expire (4 weeks)
86400 ; minimum (1 day)
)
NS enigmatic.
$ORIGIN home.lan.
enigmatic A 10.0.0.5

BTW this isn’t finsihed yet….. something came up…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: