treewide: integrate new DNS server
This integrates the new DNS server into the network service, replacing
CoreDNS.
Change-Id: I1d2e0fd3315dc2c602a8f805ed701633799e9986
Reviewed-on: https://review.monogon.dev/c/monogon/+/3260
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/node/BUILD.bazel b/metropolis/node/BUILD.bazel
index a0847f8..d043c1c 100644
--- a/metropolis/node/BUILD.bazel
+++ b/metropolis/node/BUILD.bazel
@@ -37,11 +37,12 @@
files = {
"//metropolis/node/core": "/core",
- # CA Certificate bundle & os-release & resolv.conf
+ # CA Certificate bundle & os-release & resolv.conf & hosts
# These should not be explicitly used by Metropolis code and are only here for compatibility with
# paths hardcoded by standard libraries (like Go's).
"@cacerts//file": "/etc/ssl/cert.pem",
- "//metropolis/node/core/network/dns:resolv.conf": "/etc/resolv.conf",
+ "//osbase/net/dns:resolv.conf": "/etc/resolv.conf",
+ "//osbase/net/dns:hosts": "/etc/hosts",
":os-release-info": "/etc/os-release",
# Metrics exporters
@@ -50,9 +51,6 @@
# Hyperkube
"//metropolis/node/kubernetes/hyperkube": "/kubernetes/bin/kube",
- # CoreDNS
- "@com_github_coredns_coredns//:coredns": "/kubernetes/bin/coredns",
-
# runsc/gVisor
"@dev_gvisor_gvisor//runsc": "/containerd/bin/runsc",
"@dev_gvisor_gvisor//shim": "/containerd/bin/containerd-shim-runsc-v1",
@@ -94,7 +92,6 @@
],
symlinks = {
"/ephemeral/machine-id": "/etc/machine-id",
- "/ephemeral/hosts": "/etc/hosts",
},
)