View Single Post
  #5  
Old 1st November 2010, 19:11
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 62
Thanks: 3
Thanked 1 Time in 1 Post
Default

Hello,

I think I'm a little bit further in my quest.

This is the named.config file I made it is in the named.conf.local file:

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 "named.root";
};

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

zone "amtand.nl" {
type master;
file "db.amtand.nl.inside";
// allow-transfer { 10.0.0.40; };
};
};

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

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

zone "amtand.nl" {
type master;
file "db.amtand.nl.outside";
allow-transfer { 192.168.2.10; };
};
};

include "/var/named/chroot/etc/rndc.key";

This my outside zone:

$TTL 86400
@ IN SOA amtand.nl. hostmaster.amtand.nl. (
2010103102 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name servers
IN NS dns0.domeinbalie.nl.
IN NS dns1.domeinbalie.nl.

; Mail server for domain
IN MX 10 mail.amtand.nl.

; Public servers
ns1 IN A 81.171.114.51
ns2 IN A 82.94.224.155
mail IN A 192.168.2.10
www IN A 192.168.2.10
ftp IN A 192.168.2.10

; EOF

My inside zone:


$TTL 86400
@ IN SOA amtand.nl. hostmaster.amtand.nl. (
2010103107 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name servers
IN NS ns1.amtand.nl.
IN NS ns2.amtand.nl.

; Mail server for domain
IN MX 10 mail.amtand.nl.

; Public servers
ns1 IN A 10.0.0.10
ns2 IN A 8.8.8.8
mail IN A 192.168.2.10
www IN A 192.168.2.10
ftp IN A 192.168.2.10

; Private clients on the LAN
pcbalie IN A 10.0.0.20
kamer2 IN A 10.0.0.30
kamer1 IN A 10.0.0.40
rontgen IN A 10.0.0.50

; EOF

and my yourlan.db file:

$TTL 86400
@ IN SOA ns1.amtand.nl. hostmaster.amtand.nl. (
2010103102 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.amtand.nl
10 IN PTR amtand.nl.
20 IN PTR pcbalie.amtand.nl.
30 IN PTR kamer2.amtand.nl.
40 IN PTR kamer1.amtand.nl.
50 IN PTR rontgen.amtand.nl.

;EOF


This is my resolv.conf file:

nameserver 8.8.8.8
nameserver 192.168.2.254
search amtand.nl
nameserver 127.0.0.1
nameserver 10.0.0.10

Checking the zones and named.conf with named-checkzone and named-checkconf give no problems.
I,m able to ping the computers from both sides. But my internal network doesn't connect. I suppose there is something wrong with the nameservers. Who has an answer.

Ad.

Totally of topic but how do you get those nice windows with the slidingbars?

Last edited by Showa; 1st November 2010 at 19:14.
Reply With Quote