DNS Records Lookup API

DNS Records Lookup API

DNS Records Lookup queries the specified DNS server and retrieves the requested records that are associated with the domain name you provided. These records contain information like the domain name’s IP addresses.

API description

About the API:

A DNS lookup is initiated when an end user enters a domain name and the resolver translates it into the corresponding identifier—the IP address. 

Forward DNS (also known as a forward DNS lookup) is a request that is used to obtain an IP address by searching the domain. This follows the standard DNS query journey when the user types in a web page or sends an email and is provided with the related IP address.

This process allows an end client to translate a domain name or email address into the address of the device that would handle the server-side communication.  

 

What this API receives and what your API provides (input/output)?

 This API receives the domains name and it will deliver all the DNS records that are available or related to it:

The following types of DNS records are especially useful:

  • A: the IPv4 address of the domain.
  • AAAA: the domain’s IPv6 address.
  • CNAME: the canonical name — allowing one domain name to map onto another. This allows more than one website to refer to a single web server.
  • MX: the server that handles email for the domain.
  • NS: one or more authoritative name server records for the domain.
  • TXT: a record containing information for use outside the DNS server. The content takes the form name=value. This information is used for many things including authentication schemes such as SPF and DKIM.

 

What are the most common uses cases of this API?

 

 

Security issues can be handled by DNS lookup. You will be able to detect any DNS record associated with a Domain. If you know beforehand if an IP address is blacklisted, you can detect that IP address to the domain you are looking for and you can block any connections with them. 

Also, you can enrich your DNS databases, and you will be able to know if any IP that wants to connect with you or your products is allowed by you.  

 

Are there any limitations to your plans?

Besides the number of API calls per month:

 

API Documentation

Endpoints


Get all related DNS records that are related to the domain of your choice. 

 

"domain" parameter - Insert the domain of your choice. 



                                                                            
GET https://zylalabs.com/api/259/dns+records+lookup+api/244/get+all+dns+records
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {
    "aResults": [
        {
            "ipAddress": "188.114.97.2"
        },
        {
            "ipAddress": "188.114.96.2"
        }
    ],
    "aaaaResults": [
        {
            "ipAddress": "2a06:98c1:3120::2"
        },
        {
            "ipAddress": "2a06:98c1:3121::2"
        }
    ],
    "aResultsForWww": [
        {
            "ipAddress": "188.114.97.2"
        },
        {
            "ipAddress": "188.114.96.2"
        }
    ],
    "aaaaResultsForWww": [
        {
            "ipAddress": "2a06:98c1:3121::2"
        },
        {
            "ipAddress": "2a06:98c1:3120::2"
        }
    ],
    "nsResults": [
        {
            "nameServer": "andy.ns.cloudflare.com"
        },
        {
            "nameServer": "vida.ns.cloudflare.com"
        }
    ],
    "txtResults": [
        {
            "txtDetail": "google-site-verification=kV3LiN6vrVL9bUj040xvHo4tfb0WMTuzuf65NAnVB0o"
        },
        {
            "txtDetail": "v=spf1 include:_spf.google.com ~all"
        }
    ],
    "mxResults": [
        {
            "reference": 1,
            "exchange": "aspmx.l.google.com"
        },
        {
            "reference": 5,
            "exchange": "alt1.aspmx.l.google.com"
        },
        {
            "reference": 5,
            "exchange": "alt2.aspmx.l.google.com"
        },
        {
            "reference": 10,
            "exchange": "alt3.aspmx.l.google.com"
        },
        {
            "reference": 10,
            "exchange": "alt4.aspmx.l.google.com"
        }
    ],
    "soaResult": {
        "expire": 604800,
        "defaultTTL": 3600,
        "refresh": 10000,
        "retry": 2400,
        "serial": -2007687833,
        "hostmasterEmail": "dns.cloudflare.com",
        "primaryNameserver": "andy.ns.cloudflare.com"
    },
    "processResponseTime": "168ms",
    "domain": "zylalabs.com",
    "requestType": "ANY",
    "warnings": []
}
                                                                                                                                                                                                                    
                                                                                                    

Get All DNS Records - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/259/dns+records+lookup+api/244/get+all+dns+records&domain=Required' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the DNS Records Lookup API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
3,420ms

Category:


Tags: