mirror of
https://github.com/coredns/coredns.git
synced 2026-01-15 21:31:19 -05:00
Add Quick Start section with minimal Corefile example (#7809)
Signed-off-by: Alxmassy <alexmassy2005@gmail.com>
This commit is contained in:
22
README.md
22
README.md
@@ -84,6 +84,28 @@ docker run --rm -i -t \
|
|||||||
|
|
||||||
The above command alone will have `coredns` binary generated.
|
The above command alone will have `coredns` binary generated.
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
Create a minimal Corefile:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat > Corefile <<EOF
|
||||||
|
.:53 {
|
||||||
|
forward . 8.8.8.8
|
||||||
|
log
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
Run CoreDNS:
|
||||||
|
```
|
||||||
|
$ ./coredns -conf Corefile
|
||||||
|
```
|
||||||
|
|
||||||
|
Test it:
|
||||||
|
```
|
||||||
|
$ dig @127.0.0.1 google.com
|
||||||
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
When starting CoreDNS without any configuration, it loads the
|
When starting CoreDNS without any configuration, it loads the
|
||||||
|
|||||||
Reference in New Issue
Block a user