Skip to main content
Version: latest

Gadget dns

The dns gadget traces DNS requests.

Example CR

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

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

stop

Stop dns and store results

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

Output Modes

  • Stream