DNS feature allows collecting DNS information and records for any web scraped target website. It's useful for monitoring and tracking DNS changes.

Note that enabling DNS may slow down scraping speed.

DNS details can also be found in the monitoring dashboard logs under the DNS tab:

dns details on the monitoring logs page


To use DNS feature the DNS parameter can be enabled on any Scrapfly scrape request. This will include DNS details in the result.dns field:

require "uri"
require "net/http"

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

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

Example Of Response


No additional fee is applied on usage.