View Single Post
  #3  
Old 17th October 2010, 12:56
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 62
Thanks: 3
Thanked 1 Time in 1 Post
Default

No I have got the book, in there is an example for thenamed.conf file and a few zones.

In the example DNS Server = example.com; Localhost = 127.0.0.1; internet = 123.45.67.89; FTP server = 123.45.67.3; mail server = 123.45.67.2; web server = 123.45.67.1; LAN = 10.0.0.10; LAN adress = 10.0.0.10/18 red.example.com = 10.0.0.20 blue.example.com = 10.0.0.30; green.example.com = 10.0.0.40; and yellow.example.com = 10.0.0.50

Here is the example named.conf:

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};

acl "mylan" {
127/8; 10.0.0.0/24;
};

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

view "inside" {
match-clients { "mylan"; };
recursion yes;

zone "." IN {
type hint;
file "namd.ca";
};

zone "0.0.10 in-addr.arpa" IN {
type master;
file "yourlan.db";
};

zone "example.com" {
type master;
file "db.example.com. inside";
allow-transfer { 10.0.0.20; };
};
};

view "outside" {
match-clients { any: };
recursion no;

zone "." IN {
type hint;
file "named.ca";
};

zone "example.com" {
type master;
file "db.example.com.outside";
allow-transfer { 123.45.67.2; };
};
};

include "/etc/rndc.key";

Here the inside zone:

$TTL 86400
@ IN SOA example.com. hostmaster.example.com. (
2010101701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name servers
IN NS ns1.example.com.
IN NS ns2.example.com.
; Mail server for domain
IN MX 10 mail.example.com.

; Public servers
ns1 IN A 10.0.0.10
ns2 IN A 10.0.0.20
mail IN A 123.45.67.2
www IN A 123.45.67.3
ftp IN A 123.45.67.4

; Private clients on the LAN
red IN A 10.0.0.20
blue IN A 10.0.0.30
green IN A 10.0.0.40
yellow IN A 10.0.0.50

; EOF

and the outside zone:

$TTL 86400
@ IN SOA ns1 example.com. hostmaster.example.com. (
2010101701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.example.com
1 IN PTR example.com.
2 IN PTR red.exaqmple.com.
3 IN PTR blue.example.com.
4 IN PTR green.example.com.
5 IN PTR yellow.example.com.

; EOF

Can I implement this in ISPConfig, maybe as a secondary DNS? Or else where do I have to put these files, and what do I have leave out, this because I think ISPConfig is my outside view?

Ad.
Reply With Quote