Timeout - Do Not Respond
The module is designed to prevent any response from being sent, effectively leading to a connection timeout.
In both UDP and TCP modes, the client/resolver will receive nothing at all.
Category: Empty responses
Format
timeout.yourdomain.com
This module has no parameters.
Examples
In the default (UDP) mode, we can see that the client is unable to receive any response, resulting in a timeout. The client makes three attempts:
# dig timeout.yourdomain.com @127.0.0.1 ;; communications error to 127.0.0.1#53: timed out ;; communications error to 127.0.0.1#53: timed out ;; communications error to 127.0.0.1#53: timed out ; <<>> DiG 9.18.10-2-Debian <<>> timeout.yourdomain.com @127.0.0.1 ;; global options: +cmd ;; no servers could be reached
In TCP mode, the behavior is identical. The client is unable to receive any response. Once again, the client makes three attempts to resolve the timeout:
# dig timeout.yourdomain.com @127.0.0.1 +tcp ;; communications error to 127.0.0.1#53: timed out ;; communications error to 127.0.0.1#53: timed out ;; communications error to 127.0.0.1#53: timed out ; <<>> DiG 9.18.10-2-Debian <<>> timeout.yourdomain.com @127.0.0.1 +tcp ;; global options: +cmd ;; no servers could be reached
Like other features, you can append anything to the feature name to avoid receiving cached responses from the target DNS resolver. This forces the target resolver to actively communicate with our PolarDNS server instead of responding with cached answers. Using a random number is the most effective strategy:
# dig timeout${RANDOM}.yourdomain.com @10.211.55.2 ;; communications error to 10.211.55.2#53: timed out ;; communications error to 10.211.55.2#53: timed out ;; communications error to 10.211.55.2#53: timed out ; <<>> DiG 9.18.10-2-Debian <<>> timeout32124.yourdomain.com @10.211.55.2 ;; global options: +cmd ;; no servers could be reached
From the same category
- Close - Close the Connection
- Empty1 - Empty Packet
- Empty2 - Only NULL Bytes
- Empty3 - Only NULL Bytes (Suitable for TCP)
- Empty4 - Only Transaction ID and NULL Bytes
- Empty5 - Only DNS Header and NULL Bytes
- Empty6 - ANSWER Section Missing
- Empty7 - ANSWER Section Is NULL Bytes
- QueryBack1 - Query Reflection
- QueryBack2 - Query Reflection (Stripped)
- QueryBack3 - Query Reflection (To Port 53)
- QueryBack4 - Query Reflection (Random, to Port 53)