# Cisco ASA - Allow Subdomain by FQDN

**URL:** <https://forum.networklessons.com/t/cisco-asa-allow-subdomain-by-fqdn/40379>\
**Category:** ASA\
**Created:** [October 26, 2023, 8:04am UTC](https://forum.networklessons.com/t/cisco-asa-allow-subdomain-by-fqdn/40379 "2023-10-26T08:04:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandro.correia](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/l/7bcc69/32.png) [@leandro.correia](https://forum.networklessons.com/u/leandro.correia)\
**Post date:** [October 26, 2023, 8:04am UTC](https://forum.networklessons.com/t/cisco-asa-allow-subdomain-by-fqdn/40379/1 "2023-10-26T08:04:38Z")

</div>

Dear,

I need help configuring Cisco ASA to allow any subdomain like the example below via FQDN or another available method.

Basically what I want is for this server to only be allowed to do Microsoft security updates.

My question is whether the ASA is capable of allowing you to reach a subdomain or if there is any way to put a regular expression using the \* character.

```auto
!
object-group network PC1
  network-object host 192.168.1.50
!
object network MS_Update
  fqdn *.microsoft.com
  fqdn *.update.microsoft.com
!
access-list TEST_IN extended permit tcp object PC1 object MS_Update eq 443
!
access-group TEST_IN int interface SERVER_ZONE
!
!

```

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [October 28, 2023, 5:01am UTC](https://forum.networklessons.com/t/cisco-asa-allow-subdomain-by-fqdn/40379/2 "2023-10-28T05:01:06Z")

</div>

Hello Leandro

It is possible to use the FQDN as part of an access list to filter traffic based on the IP address that that particular FQDN resolves to. However, it is not possible to use wildcard masks within the FQDN statement in the network object. This is stated in the ASA command reference here:

> **[Cisco Secure Firewall ASA Series Command Reference, A-H Commands - fe – fz...](https://www.cisco.com/c/en/us/td/docs/security/asa/asa-cli-reference/A-H/asa-command-ref-A-H/fe-fz-commands.html#wp9405198900)**
>
> fe – fz

Specifically, it states:

> The FQDN must begin and end with a digit or letter. Only letters, digits, and hyphens are allowed as internal characters. Labels are separated by a dot (for example, [www.cisco.com](http://www.cisco.com)).

So no wildcards of any type are accepted as FQDN network objects. I tried this on my ASA 5506 version 9.8 and I have confirmed it.

The use of an FQDN network object with an access list is a solution that has limitations and some difficulties in implementation. There are certain best practices that should be adhered to to ensure proper operation. Having said that, there are more appropriate (and reliable) solutions that you can use such as using an external URL filtering server, or the application inspection feature on the ASA. Take a look at this Cisco community post for more info.

> **[Using hostnames (DNS) in access-lists - configuration steps, caveats and...](https://community.cisco.com/t5/security-knowledge-base/using-hostnames-dns-in-access-lists-configuration-steps-caveats/ta-p/3123480)**
>
>   Understanding the FQDN ACL Feature Starting in ASA version 8.4(2) (Feature not available in 8.5(1) code) , ACL entries can contain a new type of object that represents a fully qualified domain-name. This allows administrators to create ACL...

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![cpj\_68](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@cpj\_68](https://forum.networklessons.com/u/cpj_68)\
**Post date:** [February 29, 2024, 3:18pm UTC](https://forum.networklessons.com/t/cisco-asa-allow-subdomain-by-fqdn/40379/3 "2024-02-29T15:18:47Z")

</div>

I tried to add the following line but received the error log.  
`access-list SPLIT-TUNNEL line 16 extended permit ip object FQDN object-group VPN`

Received:  
`ERROR: Access-list contains user, user-group, security-group or FQDN objects. These are not supported in group policies.`

ASA does not allow me to use FQDN. Why?

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [March 2, 2024, 6:11am UTC](https://forum.networklessons.com/t/cisco-asa-allow-subdomain-by-fqdn/40379/4 "2024-03-02T06:11:57Z")

</div>

Hello PO

A Cisco ASA [does support the use of an FQDN as part of an access list](https://notes.networklessons.com/asa-using-fqdn-in-an-acl), however, it does not support such an arrangement for access lists used for VPN split tunneling.

This is due to the way the ASA handles DNS. The ASA is not capable of doing DNS lookups in real-time for each packet that traverses the firewall. Therefore, **it can’t resolve FQDNs in access-lists that are applied to VPN tunnels** , because the ASA would need to resolve the FQDN to an IP address **each time a packet that matches the access-list is processed**.

Instead, you should use IP addresses or IP ranges in your access-lists for VPN split tunneling. If the IP addresses for the resources you’re trying to access via the VPN are subject to change, you might want to consider using a dynamic DNS service to keep track of the current IP addresses.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![cpj\_68](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/c67d28/32.png) [@cpj\_68](https://forum.networklessons.com/u/cpj_68)\
**Post date:** [March 4, 2024, 1:20am UTC](https://forum.networklessons.com/t/cisco-asa-allow-subdomain-by-fqdn/40379/5 "2024-03-04T01:20:58Z")

</div>

> [@lagapidis](#):
>
> ould use IP addresses or IP ranges in your access-lists for VPN split tunneling. If the IP addresses for the resources you’re trying to access via the VPN are subject to c

Thank you very much for your explanation.  
Since this is the restriction for ASA, does that mean other devices like Cisco Firepower may support FQDN in ACL to VPN tunnels?

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [March 5, 2024, 7:48am UTC](https://forum.networklessons.com/t/cisco-asa-allow-subdomain-by-fqdn/40379/6 "2024-03-05T07:48:00Z")

</div>

Hello PO

I am under the impression that other devices such as Cisco Firepower may support the use of FQDN in ACLs for VPN split tunneling. I don’t have a Firepower device on hand to try it out, nor have I been able to find any definitive documentation that states this. Ultimately the best thing to do is try it out practically and see what kind of results you get. If you or anyone else reading this thread does try it out, please let us know your results!

I hope this has been helpful!

Laz
