Hi,
I was wondering if anyone tell me if the below rule will simply forward any traffic it receives toward cluster.messagelabs.com? I think it will use the dns server (172.1.1.1) to resolve the address cluster.messagelabs.com, but once it has resolved it, will it actually forward traffic toward cluster.messagelabs.com?
*********************************************************************************************************************************************
Select the first returned IP address as the destination IP (inherits the destination port from the client's destination port).
when CLIENT_ACCEPTED {
log local0. "cluster.messagelabs.com is currently at IP [RESOLV::lookup @172.1.1.1 "cluster.messagelabs.com"]"
Get IP(s) for hostname cluster.messagelabs.com against 172.1.1.1 name server
set ips [RESOLV::lookup @172.1.1.1 -a "cluster3out.eu.messagelabs.com"]
Log result. If there are multiple IP's it could be a TCL list like {1.1.1.1 2.2.2.2 3.3.3.3}.
log local0. "Looked up cluster3out.eu.messagelabs.com and found $ips, parsed first element: [lindex $ips 0]"
Check if the first list element was empty
if {$ips eq ""}{
Select the IP
node [lindex $ips 0]
}
}
*********************************************************************************************************************************************
Sorry if this is a numpty question, but I'm new to this! :(
May thanks,
Pete