Forum Discussion
SANTS_boy_18328
Sep 01, 2015Nimbostratus
Hi,
as we will need to add lots of resolutions, will this work or all the DNS requests will be dropped? Do I need to put a default statement at the end of each "switch" to allow traffic or without a statement it will do the default behavoir of resolving any DNS request to that Listener?
Thanks a lot.
SANTS boy
when DNS_REQUEST {
if { ([IP::local_addr] eq "1.1.1.1")
switch [DNS::name] {
aaa.com { drop }
}
} elseif { ([IP::local_addr] eq "2.2.2.2")
switch [DNS::name] {
bbb.com { drop }
}
}
}