Forum Discussion
ITGem
Altocumulus
Dec 04, 2017GDNS GTM DNS iRule Response Round Robin A Records for SVIP Databases
GTM/LTM version 11.3.0 HF 10.
Does anyone have an GTM DNS iRule that can be used to return three A records? I need a way to load balance databases between datacenters without changing their existin...
scottn4milesto1
Nimbostratus
Dec 04, 2017Give this a try;
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals x.x.x.x/x] } {
host 10.x.x.x
}
else {
Generate an answer with three A records
DNS::answer insert "[DNS::question name]. 111 [DNS::question class] [DNS::question type] 1.1.1.1"
DNS::answer insert "[DNS::question name]. 111 [DNS::question class] [DNS::question type] 1.1.1.2"
DNS::answer insert "[DNS::question name]. 111 [DNS::question class] [DNS::question type] 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