diff --git a/Dockerfile b/Dockerfile index 5ea1468..aec9879 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG BUILD_FROM -FROM --platform=amd64 golang:1.22-alpine3.19 AS builder +FROM --platform=amd64 golang:1.23.3-alpine3.20 AS builder WORKDIR /usr/src ARG BUILD_ARCH diff --git a/build.yaml b/build.yaml index 9c9a64e..9e246bb 100644 --- a/build.yaml +++ b/build.yaml @@ -1,10 +1,10 @@ image: ghcr.io/home-assistant/{arch}-hassio-dns build_from: - aarch64: ghcr.io/home-assistant/aarch64-base:3.19 - armhf: ghcr.io/home-assistant/armhf-base:3.19 - armv7: ghcr.io/home-assistant/armv7-base:3.19 - amd64: ghcr.io/home-assistant/amd64-base:3.19 - i386: ghcr.io/home-assistant/i386-base:3.19 + aarch64: ghcr.io/home-assistant/aarch64-base:3.20 + armhf: ghcr.io/home-assistant/armhf-base:3.20 + armv7: ghcr.io/home-assistant/armv7-base:3.20 + amd64: ghcr.io/home-assistant/amd64-base:3.20 + i386: ghcr.io/home-assistant/i386-base:3.20 codenotary: signer: notary@home-assistant.io base_image: notary@home-assistant.io @@ -21,4 +21,4 @@ labels: org.opencontainers.image.documentation: https://www.home-assistant.io/docs/ org.opencontainers.image.licenses: Apache License 2.0 args: - COREDNS_VERSION: 1.8.7 + COREDNS_VERSION: 1.11.4 diff --git a/plugins/fallback/forward.go b/plugins/fallback/forward.go index 71928a0..19bef7f 100644 --- a/plugins/fallback/forward.go +++ b/plugins/fallback/forward.go @@ -7,6 +7,7 @@ import ( "github.com/coredns/caddy" "github.com/coredns/coredns/plugin/forward" "github.com/coredns/coredns/plugin/pkg/parse" + "github.com/coredns/coredns/plugin/pkg/proxy" "github.com/coredns/coredns/plugin/pkg/transport" ) @@ -40,7 +41,7 @@ func initForward(c *caddy.Controller) (*forward.Forward, error) { if trans != transport.DNS { return f, fmt.Errorf("only dns transport allowed") } - p := forward.NewProxy(h, trans) + p := proxy.NewProxy("Fallback", h, trans) p.SetExpire(defaultExpire) f.SetProxy(p) }