|
|
|
@ -40,6 +40,12 @@ class DNSManager::Storage::Zone
|
|
|
|
|
property ttl : UInt32
|
|
|
|
|
property target : String
|
|
|
|
|
|
|
|
|
|
# RR entries can be writable or read only.
|
|
|
|
|
# For example, default SOA and NS entries shouldn't be writable.
|
|
|
|
|
# No need to allow for (mostly unskilled) users to mess up some ABSOLUTELY NECESSARY entries.
|
|
|
|
|
# Yes. It already happened. Many, MANY times. I WANT MY FUCKING TIME BACK.
|
|
|
|
|
property readonly : Bool = false
|
|
|
|
|
|
|
|
|
|
# zone class is omited, it always will be IN in our case.
|
|
|
|
|
def initialize(@name, @ttl, @target)
|
|
|
|
|
@rrtype = self.class.name.upcase.gsub /DNSMANAGER::STORAGE::ZONE::/, ""
|
|
|
|
|