Forum Discussion
Sriram_87174
Nimbostratus
May 03, 2019DNS irule for resolving FQDN with a IP - LTM
Hi All,
I have a request from the project to explore the option for the scenario below.
VIP to be setup to listen on UDP 53 traffic
The client sends a request with FQDN (there are 6 x...
youssef1
Cumulonimbus
May 03, 2019Hi.
If you want to use DNS in irule unsing LTM you must have necessary license (DNS Services license)
try this:
when DNS_REQUEST {
set host [DNS::question name]
switch -glob $host {
"hostname1.domain.com" {
DNS::answer insert "[DNS::question name]. 300 [DNS::question class] [DNS::question type] 1.1.1.1"
DNS::return
}
"hostname2.domain.com" {
DNS::answer insert "[DNS::question name]. 300 [DNS::question class] [DNS::question type] 1.1.1.2"
DNS::return
}
default {
do nothing
}
}
}
let me know if you need more details.
regards,
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