meena_60183
Jun 09, 2009Nimbostratus
reverse DNS lookup on iRule
Hi All,
I have the following requirement. The apache web server currently has the logic.
. port 80 and DNS match
When users come in on port 80 and the reverse DNS lookup on the client IP contains xxx.com, it sends the traffic to port 8080 on the web server.
. port 443 and DNS match
when users come in on port 443 and the reverse DNS lookup on the client IP contains xxx.com, it sends the traffic to port 8443 on the web server.
. port 80 and DNS mismatch
When users come in on port 80 and the reverse DNS lookup on the client ip is not xxx.com, redirect to port 8443 on the server.
.port 443 and DNS mismatch
When users come in on port 443 and the reverse DNS lookup on the client ip is not xxx.com, send it to port 8443 on the server.
Can this be done using iRules? Only piece that I do not know is how to do the reverse lookup using the DNS server.
Meena