mtanfin_90263
May 16, 2011Nimbostratus
DNS_REQUEST
Hi everybody,
I have some trouble with the behavior of the GTM when a DNS_REQUEST occurs.
I would like to manage the request according to the type of the DNS_REQUEST.
I want to get the GTM to process if the type is "A" or "CNAME", forward to a DNS server if "MX", "NS" or "SOA", and reject the request if the type is another one.
Normally, the DNS::rrtype give us the opportunity to manage all the types of DNS but the GTM enters in the irules only if the rrtype is "A". Is it normal?
Here is my irule :
when DNS_REQUEST {
log "RRType : [DNS::rrtype]"
if { ([DNS::rrtype] != "A") or
([DNS::rrtype] == "CNAME")
} {
if { ([DNS::rrtype] == "MX") or
([DNS::rrtype] == "NS") or
([DNS::rrtype] == "SOA")
} {
forward
}
else {
reject
}
}
}
When the DNS_REQUEST is a "A" one, the GTM enters the irule otherwise it doesn't enter the irule.
How can i do to get the GTM have that behavior?
Thanks,
Marylène