Another error to check while adding a zone.

master
Karchnu 2020-12-15 17:00:16 +01:00
parent e75f1754b1
commit ee7d20cc21
1 changed files with 5 additions and 0 deletions

View File

@ -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"