Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am cschritt on github.
  • I am cschritt (https://keybase.io/cschritt) on keybase.
  • I have a public key ASCMuarQxIXx_EfIRBPNZo66YwDZBHaszm36ReJYjbYTzAo

To claim this, I am signing this object:

@cschritt
cschritt / gist:4f8e45b39067b3d95a58
Created March 8, 2015 11:33
dnsruby signed update
require 'dnsruby'
res = Dnsruby::Resolver.new("myserver.local")
tsig = Dnsruby::RR.create({ :name => "mykey", :type => "TSIG", :key => "secretKey==", })
update = Dnsruby::Update.new("mydomain.local")
update.add("update-test.mydomain.local", "A", 86400, "10.20.20.100")
tsig.apply(update)
response = res.send_message(update)