Forum Discussion
Brandon_12607
Nimbostratus
Apr 05, 2016Adding Irule to on GTM DNS--- Delivery -- Irules---
- I believe you should be able to use DNS::name, instead of DNS::rrname. Then apply create the iRule in: DNS -> Delivery -> iRules -> iRule List -> creat
-
The DNS::name gives an error when trying to add to config.
-
when DNS_REQUEST {
- switch -glob [string tolower [DNS::name]] {
- "www.abc.com" -
- "www.domain2.com" -
- "www.domain3.com" -
- "www.domain4.com" -
- "www.domain5.com" {
- pool external_dns_pool
- snat none
- }
- }
- }
1 Reply
- IanB
Employee
I think you might be wanting to use DNS::question name ?
"DNS::name " operates on a resource record object (something you've previously created using DNS::rr)
Take a look at https://devcentral.f5.com/wiki/iRules.DNS_REQUEST.ashx and https://devcentral.f5.com/wiki/iRules.DNS__question.ashx
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