Try the RankNibbler SEO API

DNS record check Beta

POST /api/v1/monitors

Type dns: resolve a name and check the answer. It catches the outages that happen before anyone reaches your server, such as a record that was edited by mistake or a zone that expired.

There is no separate endpoint for this: it is the ordinary create a monitor call with type set to "dns". The same settings apply when you update a monitor with PATCH /api/v1/monitors/{id}.

Every type shares the same interval, retries, alerting, maintenance, results and reports. Only the settings below differ. See Check types for how the nine types compare.

Up or down

Record types

A, AAAA, CNAME, MX, TXT, NS and SOA. Answers are flattened to plain text before dnsExpected is compared: MX matches the mail host, TXT the joined string, and SOA the primary nameserver.

Settings that apply

SettingNotes
url requiredThe name to resolve, for example example.com. Not a URL.
dnsRecordTypeOne of the seven above. Default A.
dnsExpectedThe answer must contain this. Up to 500 characters. Leave it empty to check only that the record exists.
dnsNameserverAsk this server instead of the default resolver. Up to 255 characters, and it must be a public address. Use it to check that your own nameservers agree.
timeoutSecondsHow long to wait for the answer.

Create one

Check that the mail records still point at your provider:

Check one nameserver directly, so you notice when it drifts from the others:

Related