Hallo zusammen,
ich versuche gerade in meinem Netzwerk ein DNS-Server(Bind9) zum Laufen zu bringen.
Er soll später automatisch mit den neusten Einträge per DHCP gefüttert werden.
Aber bis jetzt bekomme ihn nicht richtig zum laufen, bzw. er löst mir keine Namen auf.
Die Configs habe ich unten angehängt.
Habe schon mehrere HowTo's und Tutorials durch.
Und nach meiner jetztigen Erfahrung baut fast jeder seine Beispiel-Zone-Dateien anders auf.
Ich muss auch gestehen, dass die Syntax für mich ein Buch mit 7 Siegeln ist.
Auch die Lektüre von
http://www.bind9.net/manuals brachte bei mir nicht viel.
Ich weiß noch nicht mal, ob ich evtl nur irgendwo ein Syntax-Fehler habe oder ob meine ganze Konfiguration schon Schmu ist.
Noch ein paar Daten zum geplanten Netzwerk.
Die Adressen fangen mit 10.10.0.X an.
Subnet soll 255.255.255.0 sein.
BIND9 soll auf kato-server-01 (10.10.0.10) laufen und der Client soll erstmal kato-client heißen und die IP 10.0.0.99 bekommen.
Vielleicht kennt sich ja jemand mit dem Thema gut aus und schaut bitte mal kurz über meine Configs drüber.
Stehe nämlich total aufm Schlauch und bräuchte "etwas" Hilfe.
Gruß
chackie-lee
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
1 ################
2 ## named.conf ##
3 ################
4 // This is the primary configuration file for the BIND DNS server named.
5 //
6 // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
7 // structure of BIND configuration files in Debian, *BEFORE* you customize
8 // this configuration file.
9 //
10 // If you are just adding zones, please do that in /etc/bind/named.conf.local
11
12 include "/etc/bind/named.conf.options";
13 include "/etc/bind/rndc.key";
14
15 controls {
16 inet 127.0.0.1 allow { lan; } keys { rndc-key; };
17 };
18
19
20 // prime the server with knowledge of the root servers
21 zone "." {
22 type hint;
23 file "/etc/bind/db.root";
24 };
25
26 // be authoritative for the localhost forward and reverse zones, and for
27 // broadcast zones as per RFC 1912
28
29 zone "localhost" {
30 type master;
31 file "/etc/bind/db.local";
32 };
33
34 zone "127.in-addr.arpa" {
35 type master;
36 file "/etc/bind/db.127";
37 };
38
39 zone "0.in-addr.arpa" {
40 type master;
41 file "/etc/bind/db.0";
42 };
43
44 zone "255.in-addr.arpa" {
45 type master;
46 file "/etc/bind/db.255";
47 };
48
49 // zone "com" { type delegation-only; };
50 // zone "net" { type delegation-only; };
51
52 include "/etc/bind/named.conf.local";
53
54 ########################
55 ## named.conf.options ##
56 ########################
57 acl "lan" {10.10.0.0./24; 127.0.0.1;};
58
59
60 options {
61 directory "/var/cache/bind";
62
63 auth-nxdomain no; # conform to RFC1035
64
65 allow-recursion { lan; };
66 allow-query { "lan"; };
67
68 };
69
70 ######################
71 ## named.conf.local ##
72 ######################
73 zone "katolan" {
74 type master;
75 file "/etc/bind/db.katolan";
76 allow-update {key rndc-key;};
77 };
78
79 zone "0.10.10.in-addr.arpa" {
80 type master;
81 file "/etc/bind/db.0.10.10";
82 allow-update {key rndc-key; };
83 };
84
85 ################
86 ## db.katolan ##
87 ################
88 ;db.katolan
89 $TTL 3h
90
91 @ IN SOA kato-server-01.katolan. root.localhost. (
92 2004032703
93 3h
94 1h
95 1w
96 1h )
97 @ IN NS kato-server-01.katolan.
98
99 kato-client IN A 10.10.0.199
100
101 ##################
102 ## db.0.10.10 ##
103 ##################
104 ;db.10.0
105 $TTL 3h
106
107 @ IN SOA kato-server-01.katolan. localhost. root.localhost. (
108 2004032701 ; Serial
109 3h ; Refresh
110 1h ; Retry
111 1w ; Expire
112 1h ; minimum
113 )
114 @ IN NS kato-server-01.katolan.
115
116 99 IN PTR kato-client.katolan.
|