-
I have a DNS rewrite added (Filters → DNS rewrites) as I want to create a DNS rewrite that returns # Custom filtering rules
||null-host.server^$important,dnsrewrite=0.0.0.0
# Returns 10.0.0.11 If I delete the rewrite and add a manual rule rule for it: # Custom filtering rules
||*.server^$dnsrewrite=10.0.0.11
||null-host.server^$important,dnsrewrite=0.0.0.0
# Returns 0.0.0.0 and 10.0.0.11 Is there a way I can have it reply |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you want to target just a single hostname and not it's subdomains, you'd better do something like that:
Here's the pair of rules that does what you need:
|
Beta Was this translation helpful? Give feedback.
If you want to target just a single hostname and not it's subdomains, you'd better do something like that:
|null-host.server^$dnsrewrite=0.0.0.0
|
- points to a beginning of a hostname, it does not match subdomains like||
does.For the second rule, you should use
denyallow
:||*.server^$dnsrewrite=10.0.0.11,denyallow=null-host.server
Here's the pair of rules that does what you need: