Forum Discussion
Ferzat_263580
Nimbostratus
May 12, 2016Redirect hosts using iRules
Hi all,
How can I achieve the below using iRules.
if clients from [network1, network2...] querying [sub.domain.com] --answer--> 1.2.3.4;
Yann_Desmarest_
Nacreous
May 12, 2016Hello,
You can use a similar irule :
when HTTP_REQUEST {
if { [HTTP::host] equals "sub.domain.com" } {
HTTP::respond 302 Location "1.2.3.4" noserver
}
}
- Ferzat_263580May 12, 2016
Nimbostratus
Thanks for your quick response Yann. I'm using F5 BIG-IP GTM as a caching DNS, and my question was regarding DNS queries redirect.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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