Forum Discussion
Mauro_Patriota_
Nimbostratus
Mar 20, 2014DNS redirect
Guys,
I need to redirect a DNS traffic to a specific node, example:
If name is alpha.com redirect to node 192.168.1.1
else
redirect to node 8.8.8.8 (google DNS)
It´s like host file doe...
Cory_50405
Noctilucent
Mar 20, 2014Try attaching this iRule to your listener:
when DNS_REQUEST {
if { [DNS::question name] equals "alpha.com" } {
host 192.168.1.1
} else {
host 8.8.8.8
}
}
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