This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Capture DNS traffic
editCapture DNS traffic
editThe dns
section of the packetbeat.yml
config file specifies configuration
options for the DNS protocol. The DNS protocol supports processing DNS messages
on TCP and UDP. Here is a sample configuration section for DNS:
packetbeat.protocols: - type: dns ports: [53] include_authorities: true include_additionals: true
Configuration options
editAlso see Common protocol options.
include_authorities
editIf this option is enabled, dns.authority fields (authority resource records) are added to DNS events. The default is false.
include_additionals
editIf this option is enabled, dns.additionals fields (additional resource records) are added to DNS events. The default is false.