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

require "uri"
require "net/http"

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

https = Net::HTTP.new(url.host, url.port);
https.use_ssl = true

request = Net::HTTP::Get.new(url)

response = https.request(request)
puts response.read_body
"https://api.scrapfly.io/scrape?key=&url=https%3A%2F%2Fhttpbin.dev&proxy_pool=public_datacenter&dns=true"

"api.scrapfly.io"
"/scrape"

key         = "" 
url         = "https://httpbin.dev" 
proxy_pool  = "public_datacenter" 
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
            }
        ]
    },
    ...
...