Forum Discussion

Richard__Harlan's avatar
Richard__Harlan
Historic F5 Account
Jun 15, 2006

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

 

}

30 Replies