openeuler/corednsThe official CoreDNS docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
Current coredns images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
CoreDNS is a DNS server. It is written in Go. It can be used in a multitude of environments because of its flexibility. CoreDNS is licensed under the Apache License Version 2, and completely open source.
Read more on CoreDNS Website.
The tag of each coredns docker image is consist of the version of coredns and the version of basic image. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 1.13.2-oe2403sp2 | coredns 1.13.2 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
| 1.13.1-oe2403sp2 | coredns 1.13.1 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
| 1.12.4-oe2403sp2 | coredns 1.12.4 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
| 1.12.1-oe2403sp1 | CoreDNS 1.12.1 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
In this usage, users can select the corresponding {Tag} based on their requirements.
Pull the openeuler/coredns image from docker
docker pull openeuler/coredns:{Tag}
Run with an interactive shell
You can also start the container with an interactive shell to use coredns.
docker run -it --rm openeuler/coredns:{Tag} bash
Create a Corefile
In your current working directory, create a simple Corefile:
# Corefile .:53 { forward . 8.8.8.8 log }
What this means:
.:53: Listen for all DNS queries on port 53.forward . 8.8.8.8: Forward all DNS queries to Google Public DNS. You can replace 8.8.8.8 with your loca DNS server if needed.log: Log each DNS request for debugging.Start CoreDNS (Run as a local binary)
If you have the coredns binary, start it with:
./coredns -conf Corefile
After starting, CoreDNS will listen on 0.0.0.0:53 and forward incoming DNS queries according to your configuration.
Test DNS Resolution
Use dig on your container to test if CoreDNS is working:
# You should install bind-utils first in order to use the dig command. dnf install -y bind-utils dig @127.0.0.1 [***]
You should see a DNS response in your terminal, and CoreDNS should log the request in its output.
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.






manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务