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