Skip to content

Commit

Permalink
Set DNS to Cloudflare during Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Apr 5, 2024
1 parent ed5e3a8 commit e9d6c6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/dns/templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ RUN apk add --no-cache \

WORKDIR /tmp

RUN wget https://www.internic.net/domain/named.root -qO- >> /etc/unbound/root.hints
RUN echo "nameserver 1.1.1.1" > /etc/resolv.conf && \
wget https://www.internic.net/domain/named.root -qO- >> /etc/unbound/root.hints

COPY files/ /opt/

Expand Down

0 comments on commit e9d6c6d

Please sign in to comment.