Forum Discussion
meena_60183
Nimbostratus
Jun 09, 2009reverse 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 ...
meena_60183
Nimbostratus
Jun 11, 2009Thank you for the response. I tried the irule and I did not get the resolved name. I logged the client IP
when HTTP_REQUEST {
Hold HTTP data until hostname is resolved
HTTP::collect
log local0. "client ip = [IP::client_addr]"
Start a name resolution on the hostname
NAME::lookup [IP::client_addr]
}
when NAME_RESOLVED {
log local0. "client name = >[NAME::response]<"
Release HTTP data once hostname is resolved
HTTP::release
}
and the log shows
Jun 11 15:32:39 tmm tmm[1788]: Rule dns-name-lookup : client ip = 10.124.242.84
Jun 11 15:32:39 tmm tmm[1788]: Rule dns-name-lookup : client name = ><
I have the correct DNS configured on the bigIP. When I do a manual nslookup using that DNS server, it gets resolved.
Any ideas?
Meena
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
