This feature is available in Enterprise Edition only.

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.