From 346d979e03ad22191a44533f21e8fc96be90be98 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Mon, 8 May 2023 16:17:23 +0200 Subject: [PATCH] Re-arrange LOC. --- tools/write-zone-file.cr | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/write-zone-file.cr b/tools/write-zone-file.cr index bdb7611..02d61ec 100644 --- a/tools/write-zone-file.cr +++ b/tools/write-zone-file.cr @@ -23,16 +23,17 @@ zone.resources << DSZ::SOA.new "#{domain}.", # name 60.to_u32, # TTL "IN", # target (??) "ns0.some-example.com.", # Master Name Server for the zone - "john\\.doe.#{domain}" # admin email address + "john\.doe.#{domain}" # admin email address -zone.resources << DSZ::A.new "www", 600.to_u32, "10.0.0.1" -zone.resources << DSZ::A.new "www2", 600.to_u32, "10.0.0.2" +zone.resources << DSZ::A.new "www", 600.to_u32, "10.0.0.1" +zone.resources << DSZ::A.new "www2", 600.to_u32, "10.0.0.2" +zone.resources << DSZ::A.new "mail", 300.to_u32, "10.0.0.10" + +zone.resources << DSZ::CNAME.new "mail2", 600.to_u32, "www" zone.resources << DSZ::NS.new "#{domain}.", 3600.to_u32, "ns1.some-example.com." zone.resources << DSZ::NS.new "#{domain}.", 3600.to_u32, "ns0.some-example.com." -zone.resources << DSZ::A.new "mail", 300.to_u32, "10.0.0.10" -zone.resources << DSZ::CNAME.new "mail2", 600.to_u32, "www" zone.resources << DSZ::MX.new "mail", 300.to_u32, "mail", 10 zone.resources << DSZ::MX.new "mail", 300.to_u32, "mail2", 5