Forum Discussion

Hien_Truong's avatar
Oct 11, 2024

FQDN resolve in non default domain name.

Hi,

Anyone can help to modify this irule using more than one DNS server (If this DNS server 8.8.8.8 down, it will pick up other the DNS server 9.9.9.9). Thanks for your help, i appreciate it.

 

when HTTP_REQUEST {
    set ips [RESOLV::lookup @8.8.8.8 "FQDN.amazonaws.com"]
    log local0. "example.com is currently at IP $ips, forwarding to node: [lindex $ips 0]%1 - The clients up address [IP::client_addr]"
    node [lindex $ips 0]%1 443
}

No RepliesBe the first to reply