Forum Discussion
upatel209_95128
Nimbostratus
Apr 14, 2014DNS caching
when RULE_INNIT {
Hostname to resolve to IP - Production
set ::EBSProductionHost "EBS.Production.Nationalgrid.net"
Time in ms after which to re-query DNS server
set ::QueryTime 30000
table add -subtable "DNS" "Production" "[RESOLV::lookup @13.13.13.13 $::EBSProductionHost]" indef
after $::QueryTime - periodic { table replace -subtable "DNS" "Production" "[RESOLV::lookup @13.13.13.13 $::EBSProductionHost]" indef }
}
when CLIENT_ACCEPTED {
Retrieve VIP address from table and define variable
set ::VIP [table lookup -subtable "DNS" "Prodution"]
Select the IP
log local0. "IP resolved! - [lindex $::VIP 0]"
node [lindex ::VIP 0] 21
}
2 Replies
- upatel209_95128
Nimbostratus
I am getting syntex error. I want to configure dns caching for 30min locally for a quick user response. Can someone advise where I am going wrong - Cory_50405
Noctilucent
Not sure if it's a typo when you pasted it in here, but it should be:
when RULE_INIT, not RULE_INNIT
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