Jump to content
Welcome to our new Citrix community!

Rewriting a specific DNS response


Kari Ruissalo

Recommended Posts

We're running ADC 12.1-52.15 and would need to rewrite or make sure that one DNS record is queried from the internal DNS when VPN connection is running.

 

The case is that we have a record "abc.company.com" that should resolve the following way:

  1. DNS query from internet /wo VPN -> public record - works
  2. Internal DNS query  -> internal record - works
  3. DNS query /w VPN -> internal record - not working

 

If we set the session policy / profile - > Client Experience / Split DNS setting for BOTH, we're seeing the public record. If we change this setting for REMOTE, we're getting the internal record, but are running in to other issues as not all the public records for our DNS domain "company.com" can be found from the internal DNS.

 

I know we can keep adding these entries to the internal DNS, but we would rather resolve this issue using the ADC.

 

I don't think using DNS View will resolve our issue, if the DNS policy cannot be targetted for a specific query "abc.company.com"?

 

I tried to create the following:

add rewrite action rw_act_abc.company.com replace_dns_answer_section "DNS.NEW_RRSET_A(\"123.123.123.123\",3600)"
add rewrite policy rw_act_abc.company.com "DNS.RES.QUESTION.DOMAIN.EQ(\"abc.company.com\")" rw_act_abc.company.com

 

... and finally bound it globally (on response), but the policy doesn't seem to get hit.

 

What am I missing?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...