Forum Discussion

Chrism_103300's avatar
Chrism_103300
Icon for Nimbostratus rankNimbostratus
Jun 28, 2012

GTM NAPTR irule

Hi

 

 

I am trying to create a dns NAPTR irule on my GTM (v11.0) but getting the following error:undefine procedure on the following lines:

 

line:13 DNS::answer insert $new_rr_1

 

line:22 DNS::return

 

 

And this is the dns record i am creating the irule for:

 

 

africacom2011.co.za.apn.epc.mnc010.mcc655.3gppnetwork.org. IN NAPTR 10 10 "a" "x-3gpp-pgw:x-s5-gtp" "" topoff.pgw-s5.tbggs2.area2.node.epc.mnc010.mcc655.3gppnetwork.org.

 

 

 

This is the irule rule:

 

 

when DNS_REQUEST {

 

if { [DNS::question type] eq "NAPTR" } {

 

 

 

switch -glob [string tolower [DNS::question name] ] {

 

www.africacom2011.co.za.apn.epc.mnc010.mcc655.3gppnetwork.org {

 

 

 

set new_rr_1 [DNS::rr "www.africacom2011.co.za.apn.epc.mnc010.mcc655.3gppnetwork.org. IN NAPTR 10 10

 

\"s\" \"x-3gpp-pgw:x-s5-gtp\" \"\" topoff.pgw-s5.tbggs2.area2.node.epc.mnc010.mcc655.3gppnetwork.org.famge1.area1.node.epc.mnc010.mcc655.3gppnetwork.org"]

 

 

 

DNS::answer insert $new_rr_1

 

 

 

DNS::header aa 1

 

}

 

 

 

}

 

 

DNS::return

 

 

}

 

}

 

  • hello,

     

     

    every body, do you have some thing news about the issue comment by Chrism. because I have the same

     

    behavior.

     

     

    01070151:3: Rule [/Common/NAPTR_TEST] error:

     

    line 13: [undefined procedure: DNS::answer] [DNS::answer insert $new_rr_1 ]

     

    line 22: [undefined procedure: DNS::return] [DNS::return]