add bind ptr zone
This commit is contained in:
parent
defa514df0
commit
2c97f90bcf
4 changed files with 48 additions and 8 deletions
|
|
@ -9,6 +9,9 @@ resource "kubernetes_deployment" "bind" {
|
||||||
"app" = "bind"
|
"app" = "bind"
|
||||||
"kubernetes.io/cluster-service" : "true"
|
"kubernetes.io/cluster-service" : "true"
|
||||||
}
|
}
|
||||||
|
annotations = {
|
||||||
|
"reloader.stakater.com/search" = "true"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = "3"
|
replicas = "3"
|
||||||
|
|
@ -63,6 +66,11 @@ resource "kubernetes_deployment" "bind" {
|
||||||
sub_path = "db.viktorbarzin.lan"
|
sub_path = "db.viktorbarzin.lan"
|
||||||
name = "bindconf"
|
name = "bindconf"
|
||||||
}
|
}
|
||||||
|
volume_mount {
|
||||||
|
mount_path = "/etc/bind/db.181.191.213.in-addr.arpa"
|
||||||
|
sub_path = "db.181.191.213.in-addr.arpa"
|
||||||
|
name = "bindconf"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
container {
|
container {
|
||||||
name = "bind-exporter"
|
name = "bind-exporter"
|
||||||
|
|
|
||||||
|
|
@ -12,16 +12,21 @@ resource "kubernetes_config_map" "bind_configmap" {
|
||||||
metadata {
|
metadata {
|
||||||
name = "bind-configmap"
|
name = "bind-configmap"
|
||||||
namespace = "bind"
|
namespace = "bind"
|
||||||
|
|
||||||
|
annotations = {
|
||||||
|
"reloader.stakater.com/match" = "true"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"db.viktorbarzin.lan" = var.db_viktorbarzin_lan
|
"db.viktorbarzin.lan" = var.db_viktorbarzin_lan
|
||||||
"db.viktorbarzin.me" = format("%s%s", var.db_viktorbarzin_me, file("${path.module}/extra/viktorbarzin.me"))
|
"db.viktorbarzin.me" = format("%s%s", var.db_viktorbarzin_me, file("${path.module}/extra/viktorbarzin.me"))
|
||||||
"named.conf" = var.named_conf
|
"db.181.191.213.in-addr.arpa" = var.db_ptr
|
||||||
"named.conf.local" = var.named_conf_local
|
"named.conf" = var.named_conf
|
||||||
"named.conf.options" = var.named_conf_options
|
"named.conf.local" = var.named_conf_local
|
||||||
"public-named.conf.local" = var.public_named_conf_local
|
"named.conf.options" = var.named_conf_options
|
||||||
"public-named.conf.options" = var.public_named_conf_options
|
"public-named.conf.local" = var.public_named_conf_local
|
||||||
|
"public-named.conf.options" = var.public_named_conf_options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,11 @@ zone "viktorbarzin.lan" {
|
||||||
type master;
|
type master;
|
||||||
file "/etc/bind/db.viktorbarzin.lan";
|
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
|
EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -50,6 +55,11 @@ zone "viktorbarzin.me" {
|
||||||
type master;
|
type master;
|
||||||
file "/etc/bind/db.viktorbarzin.me";
|
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
|
EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -69,3 +79,20 @@ options {
|
||||||
};
|
};
|
||||||
EOT
|
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
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ sender_canonical_classes = envelope_sender
|
||||||
recipient_canonical_maps = tcp:localhost:10002
|
recipient_canonical_maps = tcp:localhost:10002
|
||||||
recipient_canonical_classes = envelope_recipient,header_recipient
|
recipient_canonical_classes = envelope_recipient,header_recipient
|
||||||
compatibility_level = 2
|
compatibility_level = 2
|
||||||
|
enable_original_recipient = no
|
||||||
always_add_missing_headers = yes
|
always_add_missing_headers = yes
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue