Forum Discussion
Leilow214
Altostratus
Hi JRahm,
Good day!
Thank you for the response, appreciate it. How do I refine it only for the targeted domain? Can you share the commands/syntax please?
Regards,
Leo
JRahm
Aug 16, 2022Admin
something like this should work for you, I threw in my.domain.com as a test condition.
when DNS_REQUEST {
if { ([string toupper [DNS::question type]] eq "CNAME") && ([string toupper [DNS::question name]] eq "my.domain.com")} {
DNS::disable dnsx
}
}
Again...i'd test to see how DNS::question returns values, and if all caps or all lower case on each sub-command (type, name, etc) then you can safely remove the string toupper to avoid the additional operations.
- Leilow214Aug 17, 2022Altostratus
Thank you so much for the response guys! I will test this out by next week and let you all know the result.
Regards,
Leo
- LiefZimmermanOct 14, 2022Admin