Forum Discussion

smalex's avatar
smalex
Icon for Altostratus rankAltostratus
Apr 25, 2019

URL Based DNS resolution in GTM

There was a requirement of DNS resolution based on URL. Is this possible with irules?

 

abc.com/def ----> x.x.x.x (IP) abc.com/ghi ----> y.y.y.y(IP)

 

Maybe a dump question. Need guidance.

 

2 Replies

  • Hi,

     

    I think your request is not possible, let me explain trough a use case:

     

    • User try to access to: https://abc.com/def
    • User system asked to LDNS IP of abc.com based on DNS protocol. and dns portocol don't send any URI... just hostname
    • system retrieve IP x.x.x.x
    • Then user send his request to https://abc.com/def (to IP: x.x.x.x)

    And as you can noticed at this steps the resolution dns has already been made before user can provide his URI to F5.

     

    URI is checked in App level, DNS is checked in before app level in an other context.

     

    Hope it's clear, don't hesitate if you need more details.

     

    regards,

     

  • smalex,

     

    Could you provide more details about what you are trying to accomplish? What DNS hostname do you want to resolve? The client's or the VIP used by the virtual server on your BIG-IP?