DNS Lookup API to check MX, NS, etc. server records | WhoisXML API

DNS Lookup API lets you check MX, NS, and other server records

A DNS lookup API call gives you a domain’s corresponding IP address from its A record as well as the domain’s mail server (MX record), nameserver (NS record), SPF (TXT record), and more records.

DNS lookup API calls are done via a simple HTTP request with output results in either JSON or XML format.

Get started

500 free credits monthly. No credit card required.

1.2 billion+Domains and subdomains
142,703,533MX records updated daily
196,463,291NS records updated daily
99.5%IP addresses in use covered

Benefits of our DNS server API

  • Insightful

    Learn more about a domain’s owner from his available Domain Name System (DNS) information. Find the IP address, mail server, nameserver, and other DNS-related information of domains by letting DNS Lookup API gather A, mail exchanger (MX), NS, SPF/TXT, and other records.

  • Easy to use

    DNS Lookup API is a RESTful API that can be easily integrated into pre-existing systems and processes. We also provide multiple client libraries with code samples for all commonly-used programming languages to speed up integration.

Practical usage of DNS API calls for MX, NS, and other server records

Practical usage of DNS API calls for MX, NS, and other server records

DDoS attack prevention

Even more violent than spam is the dreaded DDoS attack, which is basically a security attack on your website from dozens or even hundreds of IP address simultaneously. If you suddenly notice an unusual amount of traffic, then you may want to conduct a DNS lookup and get to the root of it before it becomes a problem, especially if the traffic is originating from a group of similar IP addresses.

Anti-Spam solutions

Better manage spam attacks from a given web server or IP address. When spammers attack your site repeatedly, you can obtain the attackers’ IP addresses via a DNS lookup tool and more information about the DNS infrastructure in use.

Penetration testing

Pen testers and researchers can use DNS data to expand their knowledge of an organization’s online properties. From there, they can begin to understand the bigger picture and reduce potential attack surfaces.

Study your competition

DNS entries can help you determine the companies that your competitors are currently working with and might be relevant for you to approach as part of your business development efforts.

DNS Database Download

All the insights of our DNS checker API are available in our comprehensive passive DNS database

Our database contains information on 2 billion hostnames, enabling you to gather all available historical DNS data points for any hostname or IP address you may be interested in.

Order database
DNS Lookup API | WhoisXML API

Get 500 free credits monthly. No credit card required.

Get started

Trusted by
the smartest
companies

You may be interested

Brand Alert
Brand Alert

Monitor exact matches, variations and common misspellings of your brand name & trademarks.

Learn more
Screenshot Service
Screenshot Service

Instantly get a screenshot of any web page.

Learn more
Domain Availability
Domain Availability

The most accurate domain availability checker offered on the market.

Learn more
IP Netblocks
IP Netblocks

Find out which IP range the particular IP belongs to.

Learn more
All Registered Domains
All Registered Domains

Get a complete daily list of all the registered domains and zone files.

Learn more
Real-time Domain Registration
Real-time Domain Registration

Get data feeds of new registered domains along with their WHOIS data generated in real time.

Learn more
Typosquatting Data Feed
Typosquatting Data Feed

Easily detect all typosquatting domain names as soon as they are registered each day.

Learn more
WHOIS Database Download
WHOIS Database Download

We provide complete and relevant domain WHOIS data which can be customized and easily integrated as per your business needs.

Learn more
Newly Registered Domains
Newly Registered Domains

Keep track of the best business opportunities online.

Learn more
Website Categorization
Website Categorization

Define website category of the given domain.

Learn more
WHOIS Search
WHOIS Search

Get well-parsed and normalized WHOIS information for any domain name, IP address or email.

Learn more
Threat Intelligence Data Feeds
Threat Intelligence Data Feeds

Get the most relevant data to be ahead of emerging security threats.

Learn more
Registrant Alert
Registrant Alert

Find out which domains were added or dropped by registrants, with given search criteria.

Learn more
DNS Lookup Services
DNS Lookup Services

Identify who is hosting a particular domain name or website.

Learn more
Domains & Subdomains Discovery API
Domains & Subdomains Discovery API

Find domains and subdomains related by specific terms in their hostnames.

Learn more
Domain Research Suite
Domain Research Suite

Enhance your domain research toolkit by our enterprise-grade web-based solution that helps you in searching...

Learn more
Newly Created Websites Data Feed
Newly Created Websites Data Feed

Get insights for the new business registered on the web.

Learn more
Reverse MX
Reverse MX

Reveal all the domains that use the same mail server.

Learn more
Subdomains Lookup
Subdomains Lookup

Discover subdomains related to the target domain name.

Learn more
US Internet Retailers Database
US Internet Retailers Database

Get access to the biggest US Internet Retailers Database.

Learn more
Reverse NS
Reverse NS

Find all domains that use the same name server.

Learn more
Email Verification
Email Verification

Ensure the validity and quality of any email address.

Learn more
Website Contacts
Website Contacts

Get full contacts data of the given domain.

Learn more
Reverse WHOIS
Reverse WHOIS

Find connections between various domains, individuals and organizations.

Learn more
IP Geolocation
IP Geolocation

Find out the exact physical location of any IP address, email or domain name.

Learn more
Domain Reputation API
Domain Reputation API

Assess the domain's or IP addresses reputation and risk profile with a simple score based on a comprehensive...

Learn more
Reverse IP/DNS
Reverse IP/DNS

Find relations like ownership between hostnames and IPs.

Learn more

Enterprise API Packages

Shift to an annual API access subscription package that matches your enterprise needs and budget. We offer various tiers according to your desired number of queries for each API.

Learn more
Have questions?

We are here to listen. For a quick response, please select your request type or check our Contact us page for more information. By submitting a request, you agree to our Terms of Service and Privacy Policy.

Or shoot us an email to