sidthetaff
Sep 27, 2019Nimbostratus
Provide custom resolution based on Source and URL
Hi,
Struggling to find literature to help with this, I'm running BIG-IP DNS ver 14.1 and have a requirement to produce an iRule that follows the following logic
When DNS Request
class match source IP (IP_Data_Group) and class match requsted URL (URL_Data_Group)
Respond with RPX_Pool
else continue
So when a DNS request is received from a specific IP subset (IP_Data_Group) and is requesting a specific group of URLs (URL_Data_Group) return a response of an RPX pool. Anything else (different source IP or different URL request) will continue as normal
So the question is,
What is the best way to go about creating the URL data group?
and
Can someone please help out with the syntax please? I've got the following so far
when DNS_REQUEST {
if {[class match [IP::client_addr] equals IP_Data_Group] and [class match [DNS::Question] contain URL_Data_Group }
pool RPX_POOL
else {DNS::return }
}
Thanks
Steve