mirror of
https://github.com/mainnika/openwrt-feed-coredns.git
synced 2026-06-22 12:44:58 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
4a28f02407
|
|||
|
fd71c59538
|
@@ -17,3 +17,29 @@ This is an openwrt feed that contains definitions to include CoreDNS software in
|
|||||||
3. install coredns packages into your build:
|
3. install coredns packages into your build:
|
||||||
|
|
||||||
`./scripts/feeds install -a -p feed_coredns`
|
`./scripts/feeds install -a -p feed_coredns`
|
||||||
|
|
||||||
|
## service init
|
||||||
|
|
||||||
|
The package setups an init script `/etc/init.d/coredns` and uci config section:
|
||||||
|
|
||||||
|
```
|
||||||
|
config coredns 'main'
|
||||||
|
option port '53'
|
||||||
|
option config '/etc/coredns/Corefile'
|
||||||
|
```
|
||||||
|
|
||||||
|
There are two options defined:
|
||||||
|
- port, default: 53 -- a port where coredns will listen for connections
|
||||||
|
- config, default: /etc/coredns/Corefile -- a Corefile config file
|
||||||
|
|
||||||
|
> Use `uci` tool to change these values, e.g.: `uci set coredns.main.port=1053'
|
||||||
|
|
||||||
|
## coredns configuration
|
||||||
|
|
||||||
|
The package provides an empty config `Corefile` located at `/etc/coredns/Corefile`.
|
||||||
|
The empty `Corefile`:
|
||||||
|
|
||||||
|
```
|
||||||
|
. { }
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ define Package/coredns/install
|
|||||||
$(INSTALL_BIN) ./files/coredns.init $(1)/etc/init.d/coredns
|
$(INSTALL_BIN) ./files/coredns.init $(1)/etc/init.d/coredns
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/etc/config
|
$(INSTALL_DIR) $(1)/etc/config
|
||||||
$(INSTALL_CONF) ./files/coredns.config $(1)/etc/config/coredns
|
$(INSTALL_CONF) ./files/coredns.conf $(1)/etc/config/coredns
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/etc/coredns
|
$(INSTALL_DIR) $(1)/etc/coredns
|
||||||
$(INSTALL_CONF) ./files/Corefile $(1)/etc/coredns/Corefile
|
$(INSTALL_CONF) ./files/Corefile $(1)/etc/coredns/Corefile
|
||||||
|
|||||||
Reference in New Issue
Block a user