cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1254
Views
0
Helpful
1
Replies

Cisco ASA DNS Logging

MikeO5422
Level 1
Level 1

I was playing around with URL logging on an ASA 5510 the other day. Pretty neat. But I was wondering if you could do a similar thing with DNS queries. I setup a regex to match anything and setup a class that referenced the regex. Then, I created a DNS inspection policy map that references the class and logs the matches. However, it only logs something similar to "410004 - DNS Classification: Received DNS query (id: xxxxx) for host x.x.x.x and so on" I was wondering if there was a way to actually log the domain being queried, similar to the URL logging? Here is the example setup just for reference. This would work great if I had some specific domain (or list of domains) I was interested in, but in this case I want to log any DNS query and see the domain being queried for.

 

regex matchall "."

 

class-map type inspect dns match-any re.dnsQueries

 match domain-name regex matchall

 

policy-map type inspect dns dnsQueries

  parameters

   class re.dnsQueries

   log

 

policy-map global_policy

  class inspection_default

     inspection dns dnsQueries

 

 

1 Reply 1

Vibhor Amrodia
Cisco Employee
Cisco Employee

Hi,

This is not currently possible at least for now.

Thanks and Regards,

Vibhor Amrodia

Review Cisco Networking for a $25 gift card