Forum Discussion
Richard__Harlan
Jun 15, 2006Historic F5 Account
DNS Lookup
Playing with the following rule trying to get DNS lookups working. Every time I hit the rule the name::response allways comes back empty. Any ideas what I am doing wrong. Thanks
when HTTP_REQUEST {
set host [HTTP::host]
NAME::lookup $host
HTTP::collect
log "$host"
}
when NAME_RESOLVED {
set address [NAME::response address 0]
use node $address 80
log "$address"
HTTP::release
}
- Deb_Allen_18Historic F5 AccountI have not yet used the NAME:: commands, but I did find this code: (Click here which seems to use slightly different syntax for the NAME::response command.
- Colin_Walker_12Historic F5 AccountYou also need to be sure that you've tweaked your configs appropriately, as is noted in the CodeShare page deb linked to in the above post. Use the syntax listed there along with the conf changes need, and you should be all set.
- Thomas_Schaefer
Nimbostratus
Is this configuration still required on v9.4? I tried this and am get a blank response as well.when HTTP_REQUEST priority 5 { Hold HTTP data until hostname is resolved HTTP::collect Start a name resolution on the hostname NAME::lookup "www.xmission.com" } when NAME_RESOLVED { log local0. "client name = >[NAME::response]<" Release HTTP data once hostname is resolved HTTP::release }
- Adrian_1807
Nimbostratus
Hi, - hoolio
Cirrostratus
hi Adrian, - JRahm
Admin
With NAME::lookup, the event NAME_RESOLVED fires when the resolution occurs and you use NAME::response to retrieve it. New in 10.1 is the RESOLV::lookup command, which suspends and returns the results inline. - JRahm
Admin
ha! Yeah, I do need to get that documentation cranked out. I've also wondered as commands are added...why? That would be a good feature to add in the wiki entries. I'll dig and see what I can come up with. - JRahm
Admin
There are several more commands I need to "voluntarily" get out there as well. - JRahm
Admin
Posted By hoolio on 01/19/2010 7:26 AM
- hoolio
Cirrostratus
Thanks for the info. Currently with NAME::lookup does all TMM processing wait until NAME_RESOLVED is triggered? With RESOLV::lookup, is that different?
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