NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

DNS: how hostnames become addresses

The Domain Name System (DNS) is the lookup service that turns a hostname such as example.com into the IP addresses your client connects to.

Definition

Before any HTTP request, your client needs an address. It asks a resolver, usually provided by your network or a public service, which walks the DNS hierarchy (root, then the top level domain, then the domain's own name servers) and returns records. The common ones are A for IPv4 addresses, AAAA for IPv6, and CNAME for aliases that point to another name. Each answer carries a TTL that says how long it may be cached.

Why DNS matters for scraping

  • Speed. An uncached lookup can add tens of milliseconds or more to the first request. Crawlers that touch thousands of hosts benefit from a local caching resolver.
  • Geography. CDNs use DNS to send visitors to a nearby edge. The resolver's location decides which edge you reach, and different edges can return different cached content.
  • Failures. Errors such as NXDOMAIN (name does not exist), SERVFAIL or timeouts look like network failures in your logs. Log them separately so they do not hide inside generic retries.
  • Rate limits. Public resolvers throttle heavy clients. A large crawl through a free resolver can slow down for reasons unrelated to the target.

DNS and proxies

When you use a proxy, the question is who resolves the hostname: your machine or the proxy.

  • With an HTTP proxy and HTTPS targets, the client sends CONNECT example.com:443, so the proxy resolves the name at the exit.
  • With SOCKS5, it depends on the client. The socks5h:// scheme sends the name to the proxy; plain socks5:// often resolves locally. See SOCKS5 proxy.
  • Browsers can send DNS over HTTPS directly to a provider, bypassing the proxy settings you set for page traffic, unless configured otherwise.

Local resolution through a remote proxy has two effects. Your own network sees every hostname you visit, which may be a privacy concern. And you may connect to an edge chosen for your location rather than the exit's, so a "German" session hits a US edge and receives US cached content. Remote resolution keeps lookups and edge choice consistent with the exit.

Checking resolution

dig +short example.com A
dig +short example.com AAAA
dig example.com @1.1.1.1 +stats   # query time and server used

Run the same query from your scraper host and through the proxy exit (many providers offer a shell or test tool) to compare the answers.

DNS and GateSolver

Our API lives at https://gatesolver.com, so your client resolves that name once and reuses the answer within its TTL. Long running workers should keep an HTTP session open rather than reconnecting for each poll; that avoids repeat lookups and TLS handshakes alike. If calls to /createTask fail with name resolution errors while other sites work, check the resolver on that host first. GateSolver does not sell proxies; for proxy tasks the solve resolves the target through the proxy you provide, the same way your scraper does.

See CDN for how edges use DNS and request timeout for setting sensible limits around lookups.

Common questions

What is a TTL in DNS?

Time to live: the number of seconds a resolver may cache an answer before it must look the name up again.

Does a proxy resolve DNS for me?

For HTTPS through an HTTP proxy, yes. With SOCKS5 it depends on the client and scheme; socks5h makes the proxy resolve names.

Why do I reach a different CDN edge through a proxy?

If your machine resolves the name locally, the CDN picks an edge near your resolver instead of near the proxy exit.

What does NXDOMAIN mean?

The name does not exist in DNS. Check spelling, expired domains or a resolver that filters certain names.

Should a crawler run its own resolver?

For large crawls a local caching resolver helps, because it cuts lookup time and avoids rate limits on public resolvers.

Keep reading