Forum Discussion
Mehrdad59_31135
Feb 23, 2017Nimbostratus
delegate _xmpp-client._tcp.domain.com to GTM and let the GTM to resolve to (A) record hosted on BIND.
I am trying to get iRule to work for servicing SRV records for _sipinternaltls._tcp.domain.com and _xmpp-client._tcp.domain.com, which are delegated to the GTM from the dns server running BIND.
ERROR...
Mehrdad59_31135
Feb 23, 2017Nimbostratus
Additional information: when DNS_REQUEST { log local0. "[DNS::question name]: [DNS::question name], [DNS::question class]: \ [DNS::question class], [DNS::question type]: [DNS::question type]" set ttl 120
if { [string tolower [DNS::question name]] starts_with "_xmpp-client._tcp.domain.com" } then {
if { [DNS::question type] equals "SRV" } then {
SRV response
DNS::answer insert "[DNS::question name]. $ttl IN [DNS::question type] 1 0 5223 xmpp1.domain.net."
DNS::answer insert "[DNS::question name]. $ttl IN [DNS::question type] 1 0 5223 xmpp2.domain.net."
DNS::answer insert "[DNS::question name]. $ttl IN [DNS::question type] 1 0 5223 xmpp3.domain.net."
Additional records
DNS::additional insert "xmpp1.domain.net. $ttl IN A 1.1.1.1"
DNS::additional insert "xmpp2.domain.net. $ttl IN A 1.1.1.2"
DNS::additional insert "xmpp3.domain.net. $ttl IN A 1.1.1.3"
DNS::return
} } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects