Can GTM redirect URL using cname?

Hi

We need to access from internal user to internet. and we have GTM as DNS server.

Can we create wide-ip name "; and make it resolve CNAME ?

so when user want to access this website, they just type into url and enter. then it redirect user to . ?

Is this can be done? or it need LTM+irule redirect.

Thank you

It’s been a while for me on GTM-only iRules, but I think this will work for you:

when DNS_REQUEST {
  if { [wideip name] eq "www.easy.com" } {
     cname "www.verylongname.com"
 }
}

I am trying above irules and it is not working

Configuration:

1). Configure WIP servicedesk.com with A record and CNAME

2). Irules

  1. when DNS_REQUEST {
  2. if { [wideip name] eq “www.servicedesk.com” } {
  3. cname “www.service-now.com”
  4. }
  5. }