---
# Code generated by 'make generate-documentation'. DO NOT EDIT.
title: Gadget dns
---

The dns gadget traces DNS requests.

### Example CR

```yaml
apiVersion: gadget.kinvolk.io/v1alpha1
kind: Trace
metadata:
  name: dns
  namespace: gadget
spec:
  node: minikube
  gadget: dns
  filter:
    namespace: kube-system
    podname: etcd-minikube
  runMode: Manual
  outputMode: Stream
```

### Operations


#### start

Start dns

```bash
$ kubectl annotate -n gadget trace/dns \
    gadget.kinvolk.io/operation=start
```
#### stop

Stop dns and store results

```bash
$ kubectl annotate -n gadget trace/dns \
    gadget.kinvolk.io/operation=stop
```

### Output Modes

* Stream
