dns-filtering
Syntax
dns-filtering { sinkhole { dns-resp-ttl seconds; fqdn domain-name; ipv4-address ipv4-address; ipv6-address ipv4-address; srv-resp-err-code (Noerror | Refused); txt-resp-err-code (Noerror | Refused); wildcarding-level value; } traceoptions { file { file-name; files number-of-trace-files; match match-expression; no-world-readable size maximum-trace-file-size; world-readable } flag (all | config | connect | dns | filter | gencfg | normal | operational commands | parse | routing | snmp | statistics | system | timer); level (all | error | info | notice | verbose | warning); no-remote-trace; } }
Hierarchy Level
[edit services]
Description
Configure DNS filtering to identify DNS requests for disallowed domains.
The DNS sinkhole must be configured only for DNS profile category.
Options
dns-resp-ttl | Configure the time-to-live (TTL) value in seconds to send_IN_the DNS response after taking the DNS sinkhole action. The maximum value for DNS response TTL is 86400 (24 hour). Default value is 1800 (30 min). |
fqdn | Configure the fully qualified domain name (FQDN) that must be sent in the DNS response for the sinkhole domains. |
ipv4-address | Configure the sinkhole IPv4 address. |
ipv6-address | Configure the sinkhole IPv6 address. |
srv-resp-err-code | Configure the DNS response error code that must be sent for bad domains for server query type. |
txt-resp-err-code | Configure the DNS response error code that must be sent for bad domains for text query type. |
wildcarding-level | Configure the number of levels that will be iteratively examined for a domain match. The range is 0 to 10. The default value is 10. |
file | Configure traffic sampling tracing operations. You can configure the following:
|
flag | Tracing flag parameters. The available options are:
|
level | Level of debugging output. The available options are:
|
no-remote-trace | Disable remote tracing. |
Required Privilege Level
security—To view this statement in the configuration.
security-control—To add this statement to the configuration.
Release Information
Command introduced in Junos OS Release 20.4R1.