Get DNS Information
This documentation helps you retrieve DNS information by providing the domain. The response will include the DNS type, IP address, and status.
Further Reading: Retrieving DNS Information
You can retrieve DNS details associated with a domain by making a request to the following API endpoint:
GET https://api.ricardoneud.com/v2/tools/dnscheck
Request Headers:
Header | Type | Required | Description |
---|---|---|---|
Authorization | string | ✅ | Bearer token with a valid API key |
X-Domain | string | ✅ | The domain of the DNS you want to check |
X-Record-Type | string | ✅ | The type of DNS record you want to retrieve (e.g., A , MX ) |
The following DNS record types are supported by the API:
- A: IPv4 address record
- AAAA: IPv6 address record
- MX: Mail exchange record
- NS: Name server record
- PTR: Pointer record
- CNAME: Canonical name record
- SOA: Start of authority record
- TXT: Text record
- SRV: Service record
- CAA: Certification Authority Authorization record
- DS: Delegation Signer record
- DNSKEY: DNS Key record
Example Response
The response will contain a list of DNS records.
Example:
[ { "location": "Home", "ip": "54.86.50.139", "provider": "Local Network", "dns_results": [ { "type": "A", "host": "example.com", "ip": "1.1.1.1" } ], "resolved": true }, { "location": "San Francisco CA, United States", "ip": "208.67.222.220", "provider": "OpenDNS", "dns_results": [ { "type": "A", "host": "example.com", "ip": "8.8.8.8" } ], "resolved": true }]
Fields in the Response:
- domain_or_ip: The domain or IP address associated with the DNS record.
- dns_type: The type of DNS record (e.g.,
A
,MX
). - status: The resolution status of the DNS record (e.g.,
resolved
,unresolved
).