Forum Discussion

Rahul_Rathor_36's avatar
Rahul_Rathor_36
Icon for Nimbostratus rankNimbostratus
Aug 10, 2018

Need to do url redirection on DNS level

Need to do redirection on DNS level.

 

1: my parent domain abc.com hosted on some Global DNS, which point towards my F5 listener IP.

 

2: created an URL (sub domain) xyz.abc.com

 

3: application which is behind the xyz.abc.com is hosted on bla.bla.bla.aws.com (outside my environment) 4: now requirement is when user access xyz.abc.com, then the request should redirect to bla.bla.bla.aws.com 5: Need help to configure, what is mentioned in point 4

 

Regards,

 

Rahul Rathor

 

3 Replies

  • Http Redirect is not available in dns protocol!

     

    You must create a http virtual server in your F5 to manage this redirect!

     

    If this is a https web site, you must create a https virtual server with a valid and public certificate

     

  • M_2's avatar
    M_2
    Icon for Altocumulus rankAltocumulus

    If DNS is the only case you want , then you man point using CNAME as below

     

    xyz.abc.com,INCNAME bla.bla.bla.aws.com

     

    -SAM

     

  • Well Rahul,

     

    This is an interesting situation and you need to play on the DNS level a bit to achieve this. So let us go through some series to find an answer as below.

     

    1. "xyz.abc.com" which is a sub-domain of "abc.com" has name server as F5-DNS. The domain name hosting of "abc.com " is done on some Domain Registrar outside.

       

    2. Similarly for bla.bla.bla.aws.com first thing you have to do is to create the CNAME from xyz.abc.com to bla.bla.bla.aws.com and give the name Server IP that will resolve this bla.bla.bla.aws.com to and IP address or just give the A record for this bla.bla.bla.aws.com in your F5-DNS so it can return the IP address to the users.

       

    3. Once the name resolution is done for this new name the user will connect directly to this server.

       

    Feel free to ask further question on this.

     

    Regards, Techgeeg