Skip to content
Manage DNS programmatically using ruby. OVH provider [mechanize]
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bad
db
example
ext
lib
spec
tmp
.gitignore
Gemfile
README.md

README.md

Ovh DNS

Manage DNS programmatically using ruby - OVH

Usage:

see examples folder or:

dns = Ovh::DNS.new
domain = dns.domains.first
p domain.records #=> []

domain.add_record name: "makevoid.com", type: "A", dest: "176.31.248.215"
domain.add_record name: "mail.makevoid.com", type: "MX", dest: "176.31.248.215", priority: 1

domain.delete "mail.makevoid.com"

p domain.records #=> [{ name: "makevoid.com", type: "A", dest: "176.31.248.215" }]

dns.each_domain do |domain|
  p domain.records
end
Something went wrong with that request. Please try again.