Module: Zonify::RR
Overview
Records are all created with functions in this module, which ensures the necessary SRV prefixes, uniform TTLs and final dots in names.
Instance Method Summary collapse
Instance Method Details
#cname(name, dns, ttl = '100') ⇒ Object
162 163 164 165 |
# File 'lib/zonify.rb', line 162 def cname(name, dns, ttl='100') { :type=>'CNAME', :value=>Zonify.dot_(dns), :ttl=>ttl, :name=>Zonify.dot_(name) } end |
#srv(service, name) ⇒ Object
158 159 160 161 |
# File 'lib/zonify.rb', line 158 def srv(service, name) { :type=>'SRV', :value=>"0 0 0 #{Zonify.dot_(name)}", :ttl=>'100', :name=>"#{Zonify::Resolve::SRV_PREFIX}.#{service}" } end |