From c7ba96ea2e0d2300bb89d2b9587492a07ca242dd Mon Sep 17 00:00:00 2001 From: Francois Lesueur Date: Mon, 30 Jan 2023 17:49:53 +0100 Subject: [PATCH] ajout reverse dns --- Vagrantfile.dist | 1 + files/snster-kaz/kaz/group.yml | 2 +- .../snster-kaz/kaz/prod/80.100.in-addr.arpa.zone | 16 ++++++++++++++++ .../kaz/prod/{dns.conf => kaz.sns.zone} | 0 files/snster-kaz/main.yml | 5 +++-- files/snster-kaz/root-p/rootns/reverse.zone | 2 ++ 6 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 files/snster-kaz/kaz/prod/80.100.in-addr.arpa.zone rename files/snster-kaz/kaz/prod/{dns.conf => kaz.sns.zone} (100%) diff --git a/Vagrantfile.dist b/Vagrantfile.dist index e513bd2..69e6925 100644 --- a/Vagrantfile.dist +++ b/Vagrantfile.dist @@ -86,6 +86,7 @@ Vagrant.configure("2") do |config| #permet d'avoir un répertoire partagé entre la VM et le host config.vm.synced_folder "/tmp/", "/tmp_host" + config.vm.synced_folder "files/", "/root/kaz-vagrant" config.vm.provision "shell" do |s| s.inline = "/vagrant/files/vm-provision.sh" diff --git a/files/snster-kaz/kaz/group.yml b/files/snster-kaz/kaz/group.yml index 5d42fa0..0845e74 100644 --- a/files/snster-kaz/kaz/group.yml +++ b/files/snster-kaz/kaz/group.yml @@ -42,7 +42,7 @@ hosts: templates: - updatecaroots: - authns: - zonefile: dns.conf + zonefiles: kaz.sns.zone;80.100.in-addr.arpa.zone - resolv: domain: kaz.sns ns: 100.100.100.100 diff --git a/files/snster-kaz/kaz/prod/80.100.in-addr.arpa.zone b/files/snster-kaz/kaz/prod/80.100.in-addr.arpa.zone new file mode 100644 index 0000000..1c6d657 --- /dev/null +++ b/files/snster-kaz/kaz/prod/80.100.in-addr.arpa.zone @@ -0,0 +1,16 @@ +$TTL 86400 +$ORIGIN 80.100.in-addr.arpa. +@ 1D IN SOA ns.kaz.sns. hostmaster.kaz.sns. ( + 2002022401 ; serial + 3H ; refresh + 15 ; retry + 1w ; expire + 3h ; nxdomain ttl + ) + IN NS ns.kaz.sns. +ns IN A 100.80.0.2 +ns IN AAAA 2001:db8:80::0:2 +2.0 IN PTR smtp.kaz.sns. +1.0 IN PTR router.kaz.sns. +1.1 IN PTR router.kaz.sns. +2.1 IN PTR listes.kaz.sns. diff --git a/files/snster-kaz/kaz/prod/dns.conf b/files/snster-kaz/kaz/prod/kaz.sns.zone similarity index 100% rename from files/snster-kaz/kaz/prod/dns.conf rename to files/snster-kaz/kaz/prod/kaz.sns.zone diff --git a/files/snster-kaz/main.yml b/files/snster-kaz/main.yml index 93c295e..cef40e2 100644 --- a/files/snster-kaz/main.yml +++ b/files/snster-kaz/main.yml @@ -29,5 +29,6 @@ masters: family: alpine disabled-groups: - #- target - #- root-o + - _global + - _templates + - _masters diff --git a/files/snster-kaz/root-p/rootns/reverse.zone b/files/snster-kaz/root-p/rootns/reverse.zone index a86c6d5..522556c 100644 --- a/files/snster-kaz/root-p/rootns/reverse.zone +++ b/files/snster-kaz/root-p/rootns/reverse.zone @@ -1,3 +1,5 @@ 120.100.in-addr.arpa. 172800 IN NS p.120.100.in-addr.arpa. p.120.100.in-addr.arpa. 172800 IN A 100.120.1.2 p.120.100.in-addr.arpa. 172800 IN AAAA 2001:db8:120:1::2 +80.100.in-addr.arpa. 172800 IN NS p.80.100.in-addr.arpa. +p.80.100.in-addr.arpa. 172800 IN A 100.80.0.2