Forum Discussion

Maria_63394's avatar
Maria_63394
Icon for Nimbostratus rankNimbostratus
May 05, 2015

Modify dns answer with irule at GTM

Hi everyone,

I'm using ZoneRunner and WIPs for my domains and I'd like to insert or change TXT record answer for some of them. I think about some sort of construction:

when DNS_REQUEST { 
if { ([DNS::question type] eq "TXT") } { 
   set txt "any" 
   DNS::answer insert "[DNS::question name]. 90 [DNS::question class] [DNS::question type] $txt"
}
}    

But now I'm a little bit puzzled is it really possible? According to SOL14510 "a BIG-IP GTM wide IP responds to DNS A and AAAA record queries".

I'd appreciate any ideas.

Thanks

1 Reply

  • test it... don't actually answer anything, just log what you got.

     

    A wide_ip does indeed only care for A/AAAA and CNAME queries.. but iRules could do other things... and also other features might or might not be enabled in the dns profile for that given VIP, which might or might not handle the query....

     

    I am not clear on the difference between irules on the wide_ip, Vs iRule on the virtual servers... I know some stuff is not allowed in one context Vs the other... the GUI will tell you usually when you try to save the iRule...