Forum Discussion

kridsana_52318's avatar
kridsana_52318
Icon for Nimbostratus rankNimbostratus
Nov 07, 2017

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

 

3 Replies

  • 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"
     }
    }
    
  • 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. }