List, create and delete domain records.
as.domain_record(x, domain)# S3 method for list as.domain_record(x, domain)# S3 method for domain_record as.domain_record(x, domain)# S3 method for domain_record as.url(x, ...)domain_records(domain, ...)domain_record_create(domain, type, name = NULL, data = NULL, priority = NULL, port = NULL, weight = NULL, ...)domain_record_delete(domain_record, ...)
# S3 method for list as.domain_record(x, domain)
# S3 method for domain_record as.domain_record(x, domain)
# S3 method for domain_record as.url(x, ...)
domain_records(domain, ...)
domain_record_create(domain, type, name = NULL, data = NULL, priority = NULL, port = NULL, weight = NULL, ...)
domain_record_delete(domain_record, ...)
Domain record.
(domain) Required. Domain Name (e.g. domain.com), specifies the domain for which to create a record.
Further args passed on the curl call to the web.
(character) Required. The type of record you would like to create. 'A', 'CNAME', 'NS', 'TXT', 'MX' or 'SRV'
(character) The host name, alias, or service being defined by the record. Required for 'A', 'CNAME', 'TXT' and 'SRV' records
(character) Variable data depending on record type. Required for 'A', 'AAAA', 'CNAME', 'MX', 'TXT', 'SRV', and 'NS' records
(integer) Required for 'SRV' and 'MX' records
(integer) Required for 'SRV' records
A domain record.
# NOT RUN { d <- domains()[[1]] domain_records(d) dr <- domain_record_create(d, "TXT", data = "Hi Mom!") domain_records(d) domain_record_delete(dr) # }
Run the code above in your browser using DataLab