98 lines
2 KiB
HCL
98 lines
2 KiB
HCL
variable "named_conf" {
|
|
default = <<EOT
|
|
// This is the primary configuration file for the BIND DNS server named.
|
|
//
|
|
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
|
|
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
|
// this configuration file.
|
|
//
|
|
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
|
|
|
include "/etc/bind/named.conf.options";
|
|
include "/etc/bind/named.conf.local";
|
|
//include "/etc/bind/named.conf.default-zones";
|
|
EOT
|
|
}
|
|
|
|
variable "named_conf_local" {
|
|
default = <<EOT
|
|
//
|
|
// Do any local configuration here
|
|
//
|
|
|
|
// Consider adding the 1918 zones here, if they are not used in your
|
|
// organization
|
|
//include "/etc/bind/zones.rfc1918";
|
|
|
|
zone "viktorbarzin.me" {
|
|
type master;
|
|
file "/etc/bind/db.viktorbarzin.me";
|
|
};
|
|
|
|
zone "viktorbarzin.lan" {
|
|
type master;
|
|
file "/etc/bind/db.viktorbarzin.lan";
|
|
};
|
|
|
|
zone "181.191.213.in-addr.arpa" {
|
|
type master;
|
|
file "/etc/bind/db.181.191.213.in-addr.arpa";
|
|
};
|
|
EOT
|
|
}
|
|
|
|
variable "public_named_conf_local" {
|
|
default = <<EOT
|
|
//
|
|
// Do any local configuration here
|
|
//
|
|
|
|
// Consider adding the 1918 zones here, if they are not used in your
|
|
// organization
|
|
//include "/etc/bind/zones.rfc1918";
|
|
|
|
zone "viktorbarzin.me" {
|
|
type master;
|
|
file "/etc/bind/db.viktorbarzin.me";
|
|
};
|
|
|
|
zone "181.191.213.in-addr.arpa" {
|
|
type master;
|
|
file "/etc/bind/db.181.191.213.in-addr.arpa";
|
|
};
|
|
EOT
|
|
}
|
|
|
|
variable "public_named_conf_options" {
|
|
default = <<EOT
|
|
options {
|
|
querylog yes;
|
|
directory "/tmp/";
|
|
listen-on {
|
|
any;
|
|
};
|
|
dnssec-validation auto;
|
|
|
|
allow-recursion {
|
|
none;
|
|
};
|
|
};
|
|
EOT
|
|
}
|
|
|
|
variable "db_ptr" {
|
|
default = <<EOT
|
|
$TTL 86400
|
|
181.191.213.in-addr.arpa. IN SOA ns1.viktorbarzin.me. ns2.viktorbarzin.me. (
|
|
5 ; Serial
|
|
28800 ; Refresh
|
|
10 ; Retry
|
|
2419200 ; Expire
|
|
60 ) ; Negative Cache TTL
|
|
|
|
181.191.213.in-addr.arpa. IN NS ns1.viktorbarzin.me.
|
|
|
|
130.181.191.213.in-addr.arpa. IN PTR viktorbarzin.me.
|
|
;130 IN PTR viktorbarzin.me.
|
|
EOT
|
|
}
|