Search a class datagroup for the value and find the name
Hi I've got created a string/value datagroup which maps domain to IP.
e.g
www.domain.com:=1.1.1.1
www.domain2.com:=2.2.2.2
so initially to find to corresponding IP of the domain i do a class match on the string name and return the value which is working as i want.
e.g
set ip [class match -value [DNS::question name] equals whitelist_ip]
However in a different irule for different traffic i want to use the same datagroup but essentially do the reverse, i want to use an IP to find the corresponding domain name in the datagroup. Bassically search the values of the datagroup and find the name it relates to it.
Is there an efficient/fast way to do this with a single datagroup or ifile, it could potentially hold 100/1000's of lines.
regards
Adrian