Make DNS lookup over HTTP
This API used for DNS lookups. Basicly it can be used like example.com/A
and returns a JSON data.
This API designed as a REST API so using with status codes you can easily detect result. For example if domain is not exists you get 404
. If you get 200
status code, the domain is valid.
The response has a field named has_records
. If has_records
is true
, the domain has the records.
The response has a field named records
. records
can be array or dictionary. If query is MX
, records
field will be dictionary
. Because MX
records has priority and value. If query is like A
records
will be array
Supported queries:
A
MX
NS
TXT
PTR
AAAA
CNAME