For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Aviv's avatar
Aviv
Icon for Cirrus rankCirrus
Sep 24, 2015

Dns Query based on suffix

Hi Folks!

 

I need to query Computers names from internal Dns and also to query Domain names from the internet by external dns. i have set and internal and external ip's of the dns'es in the DNS Lookup Server List. the problem is that when i use dig to query an a record only the first dns in the dns list answer the query. and there is no answer it does not try the second dns in the list.

 

i have tried to create a vs for dns with pool of the external and internal dns servers. now i need help with writing an irule that will forward queries that ending with domain.local to InternalDnsNode and all other to ExternalDnsNode.

 

Please Help or suggest your solution,

 

Thank,

 

Aviv Hassidim

 

2 Replies

  • Hi! I figured how to do it: 1.create 2 pools A.Pool_Dns_External B.pool_Dns_Internal

     

    2.create a dns listener: Dns>>Delivery>>Listeners>>Listerner list >> create in "Destination Address(/Mask" put the ip of the dns that you will query. change "Source Address Translation" to Auto Map in the resources Tab choose "Pool_Dns_External" as the pool 3.create this irule

     

    when DNS_REQUEST { if { [DNS::question name] ends_with "domain.local" } { pool Pool_Dns_internal } else { pool Pool_Dns_External } }

     

    4.attach the irule to the vs/dns listener you have created in stage 2

     

    test it by this command from ssh

     

    dig @(ip of the vs) SomeName.domain.local dig @(ip of the vs) yahoo.com

     

    • Aviv's avatar
      Aviv
      Icon for Cirrus rankCirrus
      i forget to write that you have to enbale AddressTranslation and Port Translation