Domeneshop

v2.0.9
io.github.martinzachariassen/domeneshop-mcp Checked 2 days ago Published 11 days ago

Manage 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.

ParameterTypeDescription
filterstringonly 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.

ParameterTypeDescription
domain_id *integerthe 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.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains
hoststringonly return records for this host/subdomain, e.g. 'www' or '@'
typeonly return records of this type

get_dns_record Get DNS record

Get a single DNS record by ID.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains
record_id *integerthe 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.

ParameterTypeDescription
data *stringthe 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 *integerthe Domeneshop domain ID, from list_domains
host *stringthe host/subdomain the record applies to, e.g. 'www' or '@' for the root
type *stringthe record type
algintegerrequired for DS: the DNSSEC signing algorithm number, 0-255
digestintegerrequired for DS: digest type of the hash in data (1 SHA-1, 2 SHA-256, 4 SHA-384)
dtypeintegerrequired for TLSA: matching type of the hash in data (0 exact match, 1 SHA-256, 2 SHA-512)
flagsintegerrequired for CAA: 128 to mark the property critical, otherwise 0
portintegerrequired for SRV: the port 0-65535 the service is found on
priorityintegerrequired for MX and SRV: preference value 0-65535, lower is tried first
selectorintegerrequired for TLSA: what the hash is taken from (0 full certificate, 1 subject public key)
tagrequired 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)
ttlintegertime-to-live in seconds, 60-604800, must be a multiple of 60, defaults to 3600
usageintegerrequired for TLSA: certificate usage (0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE)
weightintegerrequired 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.

ParameterTypeDescription
data *stringthe 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 *integerthe Domeneshop domain ID, from list_domains
host *stringthe host/subdomain the record applies to, e.g. 'www' or '@' for the root
record_id *integerthe DNS record ID to update, from list_dns_records
type *stringthe record type
algintegerrequired for DS: the DNSSEC signing algorithm number, 0-255
digestintegerrequired for DS: digest type of the hash in data (1 SHA-1, 2 SHA-256, 4 SHA-384)
dtypeintegerrequired for TLSA: matching type of the hash in data (0 exact match, 1 SHA-256, 2 SHA-512)
flagsintegerrequired for CAA: 128 to mark the property critical, otherwise 0
portintegerrequired for SRV: the port 0-65535 the service is found on
priorityintegerrequired for MX and SRV: preference value 0-65535, lower is tried first
selectorintegerrequired for TLSA: what the hash is taken from (0 full certificate, 1 subject public key)
tagrequired 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)
ttlintegertime-to-live in seconds, 60-604800, must be a multiple of 60, defaults to 3600
usageintegerrequired for TLSA: certificate usage (0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE)
weightintegerrequired 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.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains
record_id *integerthe DNS record ID to change, from list_dns_records
algintegerrequired for DS: the DNSSEC signing algorithm number, 0-255
datastringthe 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
digestintegerrequired for DS: digest type of the hash in data (1 SHA-1, 2 SHA-256, 4 SHA-384)
dtypeintegerrequired for TLSA: matching type of the hash in data (0 exact match, 1 SHA-256, 2 SHA-512)
flagsintegerrequired for CAA: 128 to mark the property critical, otherwise 0
hoststringthe host/subdomain the record applies to, e.g. 'www' or '@' for the root
portintegerrequired for SRV: the port 0-65535 the service is found on
priorityintegerrequired for MX and SRV: preference value 0-65535, lower is tried first
selectorintegerrequired for TLSA: what the hash is taken from (0 full certificate, 1 subject public key)
tagrequired 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)
ttlintegertime-to-live in seconds, 60-604800, must be a multiple of 60, defaults to 3600
typestringthe record type
usageintegerrequired for TLSA: certificate usage (0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE)
weightintegerrequired 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 }.

ParameterTypeDescription
data *stringthe 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 *integerthe Domeneshop domain ID, from list_domains
host *stringthe host/subdomain the record applies to, e.g. 'www' or '@' for the root
type *stringthe record type
algintegerrequired for DS: the DNSSEC signing algorithm number, 0-255
digestintegerrequired for DS: digest type of the hash in data (1 SHA-1, 2 SHA-256, 4 SHA-384)
dtypeintegerrequired for TLSA: matching type of the hash in data (0 exact match, 1 SHA-256, 2 SHA-512)
flagsintegerrequired for CAA: 128 to mark the property critical, otherwise 0
portintegerrequired for SRV: the port 0-65535 the service is found on
priorityintegerrequired for MX and SRV: preference value 0-65535, lower is tried first
selectorintegerrequired for TLSA: what the hash is taken from (0 full certificate, 1 subject public key)
tagrequired 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)
ttlintegertime-to-live in seconds, 60-604800, must be a multiple of 60, defaults to 3600
usageintegerrequired for TLSA: certificate usage (0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE)
weightintegerrequired 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.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains
record_id *integerthe DNS record ID to delete, from list_dns_records

list_forwards List HTTP forwards

List all HTTP forwards configured for a domain.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains

get_forward Get HTTP forward

Get the HTTP forward configured for a specific host.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains
host *stringthe 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.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains
host *stringthe host/subdomain to forward, e.g. 'www' or '@' for the root
url *stringthe destination URL to forward requests to, including the scheme: http://, https:// or ftp://
framebooleanif 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.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains
host *stringthe host/subdomain to forward, e.g. 'www' or '@' for the root
url *stringthe destination URL to forward requests to, including the scheme: http://, https:// or ftp://
framebooleanif 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.

ParameterTypeDescription
domain_id *integerthe Domeneshop domain ID, from list_domains
host *stringthe 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.

ParameterTypeDescription
hostname *stringthe fully qualified hostname to update, e.g. 'home.example.com'; several hostnames can be updated at once by separating them with commas
myipstringthe 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.

ParameterTypeDescription
statusonly 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.

ParameterTypeDescription
invoice_id *integerthe invoice ID, from list_invoices