Forum Discussion
Hoang_Hung
Cirrus
Sep 05, 2019Irule F5 response IP public
Hi guy. I have config GTM on F5 I4800. After config complete. I have try test, all any thing very ok. But I have bought subdomain: abc.com.vn and config Delegation to IP Public for Listener. When ...
Sep 06, 2019
Hi,
You could use this irule:
when DNS_RESPONSE {
set rrs [DNS::answer]
foreach rr $rrs {
if { ([DNS::rdata $rr] eq "a.a.a.a")} {
DNS::answer clear
DNS::answer insert [DNS::rr "aaa.aaa.com. IN A b.b.b.b"]
}
elseif { ([DNS::rdata $rr] eq "c.c.c.c")} {
DNS::answer clear
DNS::answer insert [DNS::rr "ccc.ccc.com. IN A d.d.d.d"]
}
}
}add it to the DNS Listener.
This Irule fixes 2 A records.
a.a.a.a = internal ip address#1
aaa.aaa.com. = the A record#1
b.b.b.b = external ip address#1
c.c.c.c = internal ip address#2
ccc.ccc.com. = the A record#2
d.d.d.d = external ip address#2
Cheers,
Kees
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
