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
}

  • you can create dns/udp vserver then put 8.8.8.8 & etc. as the pool members.
    then change the irules to use vip of above vserver.

    • Hien_Truong's avatar
      Hien_Truong
      Icon for Cirrus rankCirrus

      This is good idea, i will modify and apply it to VS. Updated to follow. Thanks