How to answer a DNS SRV request in a irule on GTM
I know how I could answer an A request directly with an host ip in an irule:
when DNS_REQUEST {
if { [IP::addr [IP::client_addr]/24 equals "10.10.10.0] } {
use pool GTM_pool1
} elseif { ([DNS::rrtype] eq "A") and ([DNS::rrname] eq "www.domain.com") }
host 10.20.10.15
}
But what if I want to answer to a SRV request - what do I use instead of the 'host' keyword in the above ?
when DNS_REQUEST {
if { [IP::addr [IP::client_addr]/24 equals "10.10.10.0] } {
use pool GTM_pool1
} elseif { ([DNS::rrtype] eq "SRV") and ([DNS::rrname] eq "_sip._tcp.domain.com") }
?????? "1 0 5061 srv.domain.com"
}
I have searched through the wikis and references here - but I haven't found what to use ?
I'm pretty sure that this is something very simple, but everything I have tried in the irule editor has created an error when checking the syntax ?
Regards,
Arnor