ByteDNS API

Documentation


GET /query/a

Query a host / domain name for an A record

GET /query/a?host=example.com

Parameters:

- host - Host / domain name to query

Returns HTTP 404 if there are no A records.

Try the A record query API!

GET /query/aaaa

Query a host / domain name for an AAAA record

GET /query/aaaa?host=example.com

Parameters:

- host - Host / domain name to query

Returns HTTP 404 if there are no AAAA records.

Try the AAAA record query API!

GET /query/cname

Query a host / domain name for an CNAME record

GET /query/cname?host=example.com

Parameters:

- host - Host / domain name to query

Returns HTTP 404 if there are no CNAME records.

Try the CNAME record query API!

GET /query/txt

Query a host / domain name for an TXT record

GET /query/txt?host=example.com

Parameters:

- host - Host / domain name to query

Returns HTTP 404 if there are no TXT records.

Try the TXT record query API!

GET /query/ns

Query a host / domain name for an NS record

GET /query/ns?host=example.com

Parameters:

- host - Host / domain name to query

Returns HTTP 404 if there are no NS records.

Try the NS record query API!

GET /query/mx

Query a host / domain name for an MX record

GET /query/mx?host=example.com

Parameters:

- host - Host / domain name to query

Returns HTTP 404 if there are no MX records.

Try the MX record query API!

GET /query/srv

Query a host / domain name for an SRV record

GET /query/srv?host=example.com

Parameters:

- host - Host / domain name to query

Returns HTTP 404 if there are no SRV records.

Try the SRV record query API!

GET /query/soa

Query a host / domain name for an SOA record

GET /query/soa?host=example.com

Parameters:

- host - Host / domain name to query

Returns HTTP 404 if there are no SOA records.

Try the SOA record query API!

POST /query/bulk

Query for several record types (of one host)

POST /query/bulk

{"host": "example.com", "recordTypes": ["all"]}

JSON Body Parameters:

- host - Host / domain name to query - recordTypes - The types of records to query the host for. (Array)

The record types are the same as they are for the GET endpoints.

There is an additional record type: all. It simply returns all records.

Returns a bunch of empty arrays if there are no records.

Try the bulk record qeury API!

Will just fetch all record types by default