Forum Discussion
Nat_Thirasuttakorn
Employee
Nov 22, 2004node command does not work with host name
I tested 9.0.1. and found that node command does not work with host name
any idea how to make it work? (with out creating pool)
for example:
if my_class = "somethi...
bl0ndie_127134
Jan 30, 2005Historic F5 Account
Add the following to the "tmm_base.tcl" file and that should do the trick!
DNS UDP client (port 53)
: <- UDP:
proxy RESOLV {
use server $IP_ADDR_LOCALHOST $service(domain)
serverside UDP
}
I also had to comment out the following lines from my /var/named/config/named.conf
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
recursion yes;
directory "/config/namedb";
allow-query {
localhost;
};
allow-transfer {
localhost;
};
forwarders {
};
};
Well since you got me started, here is a rule from my 'secret stash' that shows how to make BigIP into a full blown http proxy.
rule proxy_rule {
when HTTP_REQUEST {
set uri [HTTP::uri]
set host [URI::host $uri]
set port [URI::port $uri]
set query [URI::query $uri]
set basename [URI::basename $uri]
if {[string bytelength $query] > 0} {
set query [format "?%s" $query]
}
if {[string bytelength $basename] > 0} {
set truncated [format "%s%s%s" [URI::path $uri] $basename $query ]
}
else {
set truncated [format "%s%s" [URI::path $uri] $query]
}
if {[scan $host "%d.%d.%d.%d" a b c d] != 4} {
HTTP::uri $truncated
NAME::lookup $host
HTTP::collect
}
else {
use node $host 80
}
}
when NAME_RESOLVED {
set address [NAME::response address 0]
use node $address 80
HTTP::release
}
}
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