An example of configuring a custom DNS for a Pod
apiVersion: v1
kind: Pod
metadata:
name: dns-example
spec:
dnsPolicy: "None"
dnsConfig:
nameservers:
- 169.254.20.10
containers:
- name: test
image: nginx
Here you can learn more about DNS configuring.