Domeneshop
v2.0.9Manage Domeneshop domains, DNS records, HTTP forwards, dynamic DNS and invoices.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_domains List domains
List all domains on the Domeneshop account, optionally filtered by domain name. Use this first to find the domain_id the other tools need.
| Parameter | Type | Description |
|---|---|---|
filter | string | only return domains whose name contains this text, e.g. '.no' |
get_domain Get domain
Get details for a single domain by its Domeneshop domain ID: expiry, renewal, nameservers and active services.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
list_dns_records List DNS records
List DNS records for a domain, optionally filtered by host and/or record type.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
host | string | only return records for this host/subdomain, e.g. 'www' or '@' |
type | only return records of this type |
get_dns_record Get DNS record
Get a single DNS record by ID.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
record_id * | integer | the DNS record ID, from list_dns_records |
create_dns_record Create DNS record
Create a new DNS record for a domain. Returns the stored record, including its new ID.
| Parameter | Type | Description |
|---|---|---|
data * | string | the record's main value: an IPv4 address for A, an IPv6 address for AAAA, a hostname for ANAME/CNAME/MX/NS/SRV, free text for TXT, the CAA property value, or the hex hash for DS/TLSA |
domain_id * | integer | the Domeneshop domain ID, from list_domains |
host * | string | the host/subdomain the record applies to, e.g. 'www' or '@' for the root |
type * | string | the record type |
alg | integer | required for DS: the DNSSEC signing algorithm number, 0-255 |
digest | integer | required for DS: digest type of the hash in data (1 SHA-1, 2 SHA-256, 4 SHA-384) |
dtype | integer | required for TLSA: matching type of the hash in data (0 exact match, 1 SHA-256, 2 SHA-512) |
flags | integer | required for CAA: 128 to mark the property critical, otherwise 0 |
port | integer | required for SRV: the port 0-65535 the service is found on |
priority | integer | required for MX and SRV: preference value 0-65535, lower is tried first |
selector | integer | required for TLSA: what the hash is taken from (0 full certificate, 1 subject public key) |
tag | required for DS as a number (the key tag 0-65535 of the referenced DNSKEY) and for CAA as a string (the property tag, e.g. issue, issuewild or iodef) | |
ttl | integer | time-to-live in seconds, 60-604800, must be a multiple of 60, defaults to 3600 |
usage | integer | required for TLSA: certificate usage (0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE) |
weight | integer | required for SRV: relative weight 0-65535 among records with the same priority |
update_dns_record Replace DNS record
Replace an existing DNS record. This overwrites the whole record, so send every field it should keep: any omitted field is dropped, and leaving out ttl resets it to the default 3600 seconds. To change only some fields, use patch_dns_record instead. Returns the stored record.
| Parameter | Type | Description |
|---|---|---|
data * | string | the record's main value: an IPv4 address for A, an IPv6 address for AAAA, a hostname for ANAME/CNAME/MX/NS/SRV, free text for TXT, the CAA property value, or the hex hash for DS/TLSA |
domain_id * | integer | the Domeneshop domain ID, from list_domains |
host * | string | the host/subdomain the record applies to, e.g. 'www' or '@' for the root |
record_id * | integer | the DNS record ID to update, from list_dns_records |
type * | string | the record type |
alg | integer | required for DS: the DNSSEC signing algorithm number, 0-255 |
digest | integer | required for DS: digest type of the hash in data (1 SHA-1, 2 SHA-256, 4 SHA-384) |
dtype | integer | required for TLSA: matching type of the hash in data (0 exact match, 1 SHA-256, 2 SHA-512) |
flags | integer | required for CAA: 128 to mark the property critical, otherwise 0 |
port | integer | required for SRV: the port 0-65535 the service is found on |
priority | integer | required for MX and SRV: preference value 0-65535, lower is tried first |
selector | integer | required for TLSA: what the hash is taken from (0 full certificate, 1 subject public key) |
tag | required for DS as a number (the key tag 0-65535 of the referenced DNSKEY) and for CAA as a string (the property tag, e.g. issue, issuewild or iodef) | |
ttl | integer | time-to-live in seconds, 60-604800, must be a multiple of 60, defaults to 3600 |
usage | integer | required for TLSA: certificate usage (0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE) |
weight | integer | required for SRV: relative weight 0-65535 among records with the same priority |
patch_dns_record Patch DNS record
Change only some fields of an existing DNS record, e.g. just data or ttl. The current record is read first and every field you leave out keeps its stored value; when you change the type, give the new type's required fields too. Prefer this over update_dns_record. Returns the stored record.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
record_id * | integer | the DNS record ID to change, from list_dns_records |
alg | integer | required for DS: the DNSSEC signing algorithm number, 0-255 |
data | string | the record's main value: an IPv4 address for A, an IPv6 address for AAAA, a hostname for ANAME/CNAME/MX/NS/SRV, free text for TXT, the CAA property value, or the hex hash for DS/TLSA |
digest | integer | required for DS: digest type of the hash in data (1 SHA-1, 2 SHA-256, 4 SHA-384) |
dtype | integer | required for TLSA: matching type of the hash in data (0 exact match, 1 SHA-256, 2 SHA-512) |
flags | integer | required for CAA: 128 to mark the property critical, otherwise 0 |
host | string | the host/subdomain the record applies to, e.g. 'www' or '@' for the root |
port | integer | required for SRV: the port 0-65535 the service is found on |
priority | integer | required for MX and SRV: preference value 0-65535, lower is tried first |
selector | integer | required for TLSA: what the hash is taken from (0 full certificate, 1 subject public key) |
tag | required for DS as a number (the key tag 0-65535 of the referenced DNSKEY) and for CAA as a string (the property tag, e.g. issue, issuewild or iodef) | |
ttl | integer | time-to-live in seconds, 60-604800, must be a multiple of 60, defaults to 3600 |
type | string | the record type |
usage | integer | required for TLSA: certificate usage (0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE) |
weight | integer | required for SRV: relative weight 0-65535 among records with the same priority |
upsert_dns_record Create or update DNS record
Make sure a host has exactly this record of the given type: updates the existing record for that host and type, or creates one if there is none. When updating, optional fields you leave out (e.g. ttl, priority) keep their stored value. Fails without changing anything if the host already has several records of that type (common for MX and TXT); then use patch_dns_record with a record_id, or create_dns_record to add another. Returns { action: "created" | "updated", record }.
| Parameter | Type | Description |
|---|---|---|
data * | string | the record's main value: an IPv4 address for A, an IPv6 address for AAAA, a hostname for ANAME/CNAME/MX/NS/SRV, free text for TXT, the CAA property value, or the hex hash for DS/TLSA |
domain_id * | integer | the Domeneshop domain ID, from list_domains |
host * | string | the host/subdomain the record applies to, e.g. 'www' or '@' for the root |
type * | string | the record type |
alg | integer | required for DS: the DNSSEC signing algorithm number, 0-255 |
digest | integer | required for DS: digest type of the hash in data (1 SHA-1, 2 SHA-256, 4 SHA-384) |
dtype | integer | required for TLSA: matching type of the hash in data (0 exact match, 1 SHA-256, 2 SHA-512) |
flags | integer | required for CAA: 128 to mark the property critical, otherwise 0 |
port | integer | required for SRV: the port 0-65535 the service is found on |
priority | integer | required for MX and SRV: preference value 0-65535, lower is tried first |
selector | integer | required for TLSA: what the hash is taken from (0 full certificate, 1 subject public key) |
tag | required for DS as a number (the key tag 0-65535 of the referenced DNSKEY) and for CAA as a string (the property tag, e.g. issue, issuewild or iodef) | |
ttl | integer | time-to-live in seconds, 60-604800, must be a multiple of 60, defaults to 3600 |
usage | integer | required for TLSA: certificate usage (0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE) |
weight | integer | required for SRV: relative weight 0-65535 among records with the same priority |
delete_dns_record Delete DNS record
Delete a DNS record. This cannot be undone.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
record_id * | integer | the DNS record ID to delete, from list_dns_records |
list_forwards List HTTP forwards
List all HTTP forwards configured for a domain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
get_forward Get HTTP forward
Get the HTTP forward configured for a specific host.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
host * | string | the host/subdomain the forward applies to, e.g. 'www' or '@' for the root |
create_forward Create HTTP forward
Create a new HTTP forward for a domain. Fails if the host already has a forward or a conflicting A, AAAA, ANAME or CNAME record.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
host * | string | the host/subdomain to forward, e.g. 'www' or '@' for the root |
url * | string | the destination URL to forward requests to, including the scheme: http://, https:// or ftp:// |
frame | boolean | if true, show the destination in a frame instead of redirecting; defaults to false for a new forward and to the stored value when updating |
update_forward Update HTTP forward
Update an existing HTTP forward for a domain. Returns the stored forward. frame keeps its stored value unless given. The host itself cannot be changed: to move a forward, delete it and create it again for the new host.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
host * | string | the host/subdomain to forward, e.g. 'www' or '@' for the root |
url * | string | the destination URL to forward requests to, including the scheme: http://, https:// or ftp:// |
frame | boolean | if true, show the destination in a frame instead of redirecting; defaults to false for a new forward and to the stored value when updating |
delete_forward Delete HTTP forward
Delete an HTTP forward. This cannot be undone.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | the Domeneshop domain ID, from list_domains |
host * | string | the host/subdomain whose forward should be deleted |
update_dyndns Update dynamic DNS
Point one or more hostnames at the given (or the caller's apparent) IP address using Domeneshop's dynamic DNS protocol. The record type (A or AAAA) follows from the address; a missing record is created, an existing one overwritten.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | the fully qualified hostname to update, e.g. 'home.example.com'; several hostnames can be updated at once by separating them with commas |
myip | string | the IP address to set, IPv4 or IPv6; up to 9 addresses may be comma-separated, e.g. '192.0.2.1,2001:db8::1'. If omitted or empty, Domeneshop uses the caller's apparent IP |
list_invoices List invoices
List invoices from the past three years on the Domeneshop account, optionally filtered by status.
| Parameter | Type | Description |
|---|---|---|
status | only return invoices with this status; 'settled' applies only to credit notes |
get_invoice Get invoice
Get details for a single invoice, including a link to the PDF.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | the invoice ID, from list_invoices |