Forum Discussion
AngryCat_52750
Nimbostratus
Jul 05, 2015GTM-DNS logging
i am trying to log only for a specific wide ip.. i want to see the requestors IP address..
what am i missing here...
when DNS_REQUEST {
if { ([DNS::is_wideip] equals "example.apples.fruits.com") } {
log local0. "Client: [IP::client_addr] Question:[DNS::question name] Type:[DNS::question type]"
}
}
i get the following error - 01070151:3: Rule [/Common/_gtm_irule] error: /Common/_gtm_irule:2: error: [wrong args][DNS::is_wideip]
2 Replies
- Kevin_Stewart
Employee
I believe the correct syntax is just:
if { [DNS::is_wideip] "example.apples.fruits.com" } - Kevin_Stewart
Employee
Typo. It should be:
if { [DNS::is_wideip "example.apples.fruits.com"] }
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