Forum Discussion
msmith_64485
Nimbostratus
Jan 25, 2010IP to FQDN
Looking for an irule that will replace the IP address of outgoing traffic with the FQDN. Issue is external server does not have a valid PTR record to allow resolution. Owner of this server does not ...
hoolio
Cirrostratus
Jan 28, 2010I was assuming originally that you were using a network VIP and only wanted to rewrite the host header when certain host header values were seen. If you want to rewrite the host header on all requests, you can remove the check for an IP of 1.1.1.1 (or 2.2.2.2) in the host header value.
If for some reason you do want to check that the host header value is a specific IP address before rewriting the host header, you could continue to use the if {not ([catch... line. But you'd want to check for the VIP address, not the actual server address. This is because clients who use an IP address in the host header will be making a request to the VIP address (2.2.2.2)--not the pool member IP (1.1.1.1).
Aaron
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