File tree 7 files changed +39
-11
lines changed
7 files changed +39
-11
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,14 @@ options {
31
31
32
32
// Example of how to configure a zone for which this server is the master:
33
33
zone "example.local" IN {
34
- type master;
35
- file "/etc/bind/zones/example.local";
34
+ type master;
35
+ file "/etc/bind/zones/example.local";
36
+ };
37
+
38
+ zone "guifibages.net" IN {
39
+ type master;
40
+ file "/etc/bind/zones/db.guifibages.net";
36
41
};
37
42
38
43
// You can include files:
39
- //include "/etc/bind/zones/example.conf";
44
+ //include "/etc/bind/zones/example.conf";
Original file line number Diff line number Diff line change
1
+ $TTL 60
2
+ @ IN SOA ns.guifibages.net. root.guifibages.net. (
3
+ 1 ; Serial
4
+ 604800 ; Refresh
5
+ 86400 ; Retry
6
+ 2419200 ; Expire
7
+ 604800 ) ; Negative Cache TTL
8
+ ;
9
+ @ IN NS ns.guifibages.net.
10
+ ns IN A 10.228.17.250
11
+ ns2 IN A 10.228.18.51
12
+
13
+ ; màquines
14
+ s1 IN A 10.228.17.250
15
+ s2 IN A 10.228.18.51
16
+
17
+ ; propietaris
18
+ paco IN CNAME s1
19
+ xevi IN CNAME s2
20
+
21
+ ; serveis
22
+ pool.ntp IN A 10.228.17.250
23
+ pool.ntp IN A 10.228.18.51
24
+
File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ services:
3
3
dns :
4
4
build : .
5
5
ports :
6
- - " 53:53"
7
- - " 53:53/udp"
6
+ - " 127.0.0.2: 53:53"
7
+ - " 127.0.0.2: 53:53/udp"
8
8
volumes :
9
- - ./named. conf:/etc/bind/named.conf :ro
10
- - ./zones/:/etc/bind/zones/:ro
9
+ - ./conf:/etc/bind:ro
10
+ restart : always
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ options {
7
7
8
8
// If you want to allow only specific hosts to use the DNS server:
9
9
allow-query {
10
- any ;
10
+ 10.0.0.0/8 ;
11
11
};
12
12
13
13
// Specify a list of IPs/masks to allow zone transfers to here.
@@ -25,7 +25,7 @@ options {
25
25
26
26
// Changing this is NOT RECOMMENDED; see the notes above and in
27
27
// named.conf.recursive.
28
- // allow-recursion { none ; };
28
+ allow-recursion { 10.0.0.0/8 ; };
29
29
recursion yes;
30
30
31
31
forwarders {
File renamed without changes.
Original file line number Diff line number Diff line change @@ -6,6 +6,5 @@ services:
6
6
- " 53:53"
7
7
- " 53:53/udp"
8
8
volumes :
9
- - ./named.conf:/etc/bind/named.conf:ro
10
- - ./zones/:/etc/bind/zones/:ro
9
+ - ./config:/etc/bind:ro
11
10
restart : always
You can’t perform that action at this time.
0 commit comments