Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detailed installation documentation #261

Open
willzhang opened this issue Apr 27, 2022 · 0 comments
Open

Add detailed installation documentation #261

willzhang opened this issue Apr 27, 2022 · 0 comments
Labels

Comments

@willzhang
Copy link

willzhang commented Apr 27, 2022

What would you like to be added:

1、add docs about how to use coredns docker image,like

docker run -d --name coredns \
  --restart=always \
  -v /etc/coredns/:/etc/coredns/ \
  -p 192.168.72.15:53:53/udp \
  coredns/coredns:1.9.1 -conf /etc/coredns/Corefile

It took me a lot of time to find that i must use -conf /etc/coredns/Corefile , because coredns never report errors .

2、add docs about how to install with go binary,like

wget https://github.com/coredns/coredns/releases/download/v1.9.1/coredns_1.9.1_linux_amd64.tgz
tar -zxvf coredns_1.9.1_linux_amd64.tgz
mv coredns /usr/local/bin
cat >/etc/systemd/system/coredns.service<<EOF
[Unit]
Description=CoreDNS DNS server
Documentation=https://coredns.io
After=network.target
 
[Service]
PermissionsStartOnly=true
LimitNOFILE=1048576
LimitNPROC=512
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
User=coredns
WorkingDirectory=~
ExecStart=/usr/local/bin/coredns -conf=/etc/coredns/Corefile
ExecReload=/bin/kill -SIGUSR1
Restart=on-failure
 
[Install]
WantedBy=multi-user.target
EOF

Why is this needed:

official not say how to install :https://coredns.io/manual/toc/#installation

it not eays for a novice to use coredns as a local dns server.

@chrisohaver chrisohaver transferred this issue from coredns/coredns Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants