DNS

overview page of web interface
DNS tab in log inspection

DNS feature is straightforward, and you can collect information about DNS configuration. You can monitor changes.

This feature may impact performance negatively

Usage

import requests

url = "https://api.scrapfly.io/scrape?key=__API_KEY__&url=https%3A%2F%2Fhttpbin.dev&dns=true"

response = requests.request("GET", url)

print(response.text)

# import json
# print(json.loads(response.text)['result']['content'])
# print(json.loads(response.text)['result']['status_code'])
"https://api.scrapfly.io/scrape?key=&url=https%3A%2F%2Fhttpbin.dev&dns=true"

"api.scrapfly.io"
"/scrape"

key  = "" 
url  = "https://httpbin.dev" 
dns  = "true" 

Example Of Response

...
"result": {
    ...
    "dns": {
        "A": [
            {
                "host": "34.127.70.125",
                "ttl": 300
            }
        ],
        "CAA": [],
        "NS": [
            {
                "host": "ns-cloud-c4.googledomains.com",
                "ttl": -1
            },
            {
                "host": "ns-cloud-c2.googledomains.com",
                "ttl": -1
            },
            {
                "host": "ns-cloud-c1.googledomains.com",
                "ttl": -1
            },
            {
                "host": "ns-cloud-c3.googledomains.com",
                "ttl": -1
            }
        ],
        "SOA": [
            {
                "expires": 259200,
                "hostmaster": "cloud-dns-hostmaster.google.com",
                "minttl": 300,
                "nsname": "ns-cloud-c1.googledomains.com",
                "refresh": 21600,
                "serial": 1,
                "ttl": -1
            }
        ],
        "TXT": [
            {
                "text": "google-site-verification=WSRMzA3PyGeg1LYiNn979SCXSjVwfoqv9QuAXk-C_Dg",
                "ttl": -1
            }
        ]
    },
    ...
...