From ee7d20cc21ac81e8c5409ce8e95d88a9316e01e4 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Tue, 15 Dec 2020 17:00:16 +0100 Subject: [PATCH] Another error to check while adding a zone. --- tools/send-zone-with-errors.cr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/send-zone-with-errors.cr b/tools/send-zone-with-errors.cr index d30656c..c4577da 100644 --- a/tools/send-zone-with-errors.cr +++ b/tools/send-zone-with-errors.cr @@ -78,6 +78,11 @@ zone.resources << DSZ::SOA.new "mail", 60.to_u32, "::1", zone.resources << DSZ::NS.new "mail", 60.to_u32, "::1" +# MUST BE REFUSED: CNAME is exclusive. +# If there is another record (including SOA or NS) for the same name, this should not work. +zone.resources << DSZ::A.new "www", 600.to_u32, "127.0.0.1" +zone.resources << DSZ::CNAME.new "www", 600.to_u32, "other-domain.com" + pp! dnsmanagerd.user_zone_add zone puts "dnsmanager: close"