Private
authReadonly
restPrivate
checkReturns information about the DNS zone of a domain
await api.infoDnsZone({ domainname: 'example.com' })
Initializes authentication parameters
Updates DNS records of a domain with the current public ip.
// update ipv4 only
await api.updateDnsRecordsWithCurrentIp({
domainname: 'example.com',
hostname: 'www',
})
// update ipv4 and ipv6
await api.updateDnsRecordsWithCurrentIp({
domainname: 'example.com',
hostname: 'www',
useIpv4AndIpv6: true,
})
// update ipv6 only
await api.updateDnsRecordsWithCurrentIp({
domainname: 'example.com',
hostname: 'www',
useIpv6Only: true,
})
Updates DNS records of a domain and only those that are specified.
await api.updateDnsRecords({
domainname: 'example.com',
dnsrecordset: {
dnsrecords: [{ name: 'www', type: 'A', destination: 'some-ip' }],
},
})
// can also be used to delete records
await api.updateDnsRecords({
domainname: 'example.com',
dnsrecordset: {
dnsrecords: [
{ name: 'www', type: 'A', destination: 'some-ip', deleterecord: true },
],
},
})
Generated using TypeDoc
Returns information about the DNS records of a domain
Example