# File lib/openshift-origin-dns-bind/lib/openshift/bind_plugin.rb, line 56 def register_namespace(namespace) # create a TXT record for the namespace in the domain fqdn = "#{namespace}.#{@domain_suffix}" # enable updates with key dns.tsig = @keyname, @keyvalue update = Dnsruby::Update.new(@zone) # update.absent(fqdn, 'TXT') update.add(fqdn, 'TXT', 60, "Text record for #{namespace}") dns.send_message(update) end