Forum Discussion
How to create redirection page in BIG IP DNS
Hi.i am new to big ip DNS.we have an irule for redirecting the blocked urls to and external Host 10.16.3.4,Now i want to create a redirection page in BIG IP itself and redirect the blocked urls queries to the new page instead of external server.
when DNS_REQUEST { if { [DNS::question name] starts_with "-" } then { DNS::drop } elseif { [class match [string tolower [DNS::question name]] eq Blacklist_Domain] } then { if { [DNS::question type] eq "A" } then { DNS::answer insert "[DNS::question name]. 60 IN A 10.16.3.4" DNS::header ra "1" } else { DNS::last_act reject } DNS::return } } any help?
- SurgeonRet. Employee
what sort of redirection you are talking about? HTTP 302?
- Andy_McGrath
Cumulonimbus
You cannot block/redirect URLs in F5 DNS as it only deals with the DNS queries, FQDN to IP, so the URL is never sent to the F5 DNS.
I would to do this sort of redirection on the F5 LTMs with
and have the FQDN used resolve on the F5 DNS toHTTP::redirect
.10.16.3.4
- surya24d
Nimbostratus
@surgeon. Scenario is we need to block site abc.com. if any query is coming for abc.com we need to redirect or display a custom page/words stating mentioned site is blocked.
Recent Discussions
Related Content
* 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