ultradns4r is a Ruby library and command line client for the Neustar UltraDNS SOAP API.
-
Install Ruby
-
Install RubyGems
-
Install Savon
-
Download ultradns4r.rb
require 'ultradns4r' client = UltraDns::Client.new('username', 'password') response = client.soap_call('get_server_status') pp response
-
Create a file called ultradns4r.secret containing your UltraDNS username and password (i.e. on one line separated by whitespace). Note that this file is assumed to be in the current directory by default.
-
See examples below:
ultradns4r.rb [options] [rr-data][, ...]
-
Multiple sets of rr-data can be specified by separating them with commas.
-
Records can be deleted by not specifying rr-data.
-
All domain names must be fully qualified and end with a period (this is an UltraDNS requirement).
ultradns4r.rb -n test.example.org. 1.1.1.1
ultradns4r.rb -n test.example.org. 1.1.1.1,2.2.2.2,3.3.3.3
ultradns4r.rb -n test.example.org. -t CNAME test.example.org.
ultradns4r.rb -n srv.example.org. -t SRV 0 10 20 target.example.org.
See the –help command line option:
ultradns4r.rb --help
Use debug logging:
ultradns4r.rb -v debug