Is There Any API to Check If a Domain Resolves to the Server (Name Servers Set)?

AminEtemadifar

New member
Joined
May 10, 2025
Messages
1
I'm working on a project that integrates with DirectAdmin, and I need to programmatically check whether a domain resolves to the server — in other words, whether the correct name servers are set for the domain.


Is there any DirectAdmin API or endpoint that allows me to verify if a specific domain is pointing to the server (based on name servers or any other method)?
If not, is there any recommended way to check this from the server side?


For example, in cPanel I use the following API:
/json-api/has_local_authority?api.version=1&domain=example.com

which tells me whether the domain is pointing to this server or not.


Is there any equivalent API in DirectAdmin for this?


Thanks in advance!
 
Back
Top