cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
461
Views
1
Helpful
3
Replies

Anyconnect DNS doctoring

lcthasenhod
Level 1
Level 1

Hi All,

I have a problem figuring out how to make the ASA/FTD send back to correct ip, i have 3 interfaces, and dns server is google.

outside - 6.6.6.6 - vpn.example.com (works)

inside - 10.10.10.1 - i want to rewrite vpn.example.com to this ip when you are connected to inside

guest - 10.10.20.1 - i want to rewrite vpn.example.com to this ip when you are connected to guest

I have enabled anyconnect to connect to all 3 interfaces, but the ASA/FTD wont let me make a DNS rewrite on its own interfaces, please assist.

3 Replies 3

Using fmc 

Add nat rule 

In advanced tab 

There is option to translate DNS, this is same as dns doctor in previous Asa platforms. 

But this option you can only use when you have NAT 1:1

And make sure the anyconnect ask the internal DNS server via vpn not it public DNS server learn from ISP. (tunnel all)

MHM

MckenzieFiona
Level 1
Level 1

@lcthasenhod wrote:

Hi All,

I have a problem figuring out how to make the ASA/FTD send back to correct ip, i have 3 interfaces, and dns server is google.

outside - 6.6.6.6 - vpn.example.com (works)

inside - 10.10.10.1 - i want to rewrite vpn.example.com to this ip when you are connected to inside

guest - 10.10.20.1 - i want to rewrite vpn.example.com to this ip when you are connected to guest

guest - 10.20.10.2 - scarlet install

I have enabled anyconnect to connect to all 3 interfaces, but the ASA/FTD wont let me make a DNS rewrite on its own interfaces, please assist.


Have you verified that the DNS server configuration on the ASA/FTD is correctly set to Google's DNS servers?

nayahai503
Level 1
Level 1

To achieve DNS rewrite for different interfaces on your ASA/FTD, you can use the following approach:

  1. DNS Rewrite Configuration: Unfortunately, the ASA/FTD does not support DNS rewriting directly. However, you can work around this by using split DNS configurations and adjusting the DNS settings based on the interface.

  2. DNS Configuration per Interface:

    • For Inside Interface:
      • Configure DNS settings for the inside network to resolve vpn.example.com to 10.10.10.1.
    • For Guest Interface:
      • Configure DNS settings for the guest network to resolve vpn.example.com to 10.10.20.1.
  3. DNS Forwarding: You can set up DNS forwarding on your internal DNS servers to handle this rewrite. Configure your internal DNS servers to resolve vpn.example.com to the correct IP based on the network segment.

  4. Routing and Access Rules: Ensure that your ASA/FTD routing and access control lists (ACLs) are set up correctly to allow traffic from each interface to reach the correct IP.

  5. Testing and Validation: Test the configuration by connecting to each interface and verifying that vpn.example.com resolves to the correct IP address.

If you need further assistance with specific commands or configuration steps, please let me know!