Documentation
¶
Overview ¶
Package dns answers an actor's DNS from its sandbox's gateway namespace and writes the resolv.conf that points the actor at it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SandboxResolvConf ¶
SandboxResolvConf replaces the pod's nameservers with nameserver, the address the sandbox's DNS is served on, while preserving the pod's search domains and options for Kubernetes DNS.
func Serve ¶
func Serve(ctx context.Context, relay Server, ns netns.Handle, port uint16) ([]io.Closer, []func(), error)
Serve serves UDP and TCP DNS in the sandbox's local gateway namespace.
func WriteRootfsResolvConf ¶
WriteRootfsResolvConf installs content at /etc/resolv.conf inside rootfs.
os.Root confines path traversal; unlinking prevents writes through existing links.
Types ¶
Click to show internal directories.
Click to hide internal directories.