An open API service indexing awesome lists of open source software.

https://github.com/makevoid/ovh-dns

Manage DNS programmatically using ruby. OVH provider [mechanize]
https://github.com/makevoid/ovh-dns

Last synced: 6 months ago
JSON representation

Manage DNS programmatically using ruby. OVH provider [mechanize]

Awesome Lists containing this project

README

          

# 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