Cloud API Overview > @adpt/cloud > k8s > PodProps > dnsPolicy
k8s.PodProps.dnsPolicy property
Set DNS policy for the pod.
Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.
Signature:
dnsPolicy: "ClusterFirstWithHostNet" | "ClusterFirst" | "Default" | "None";