惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
J
Java Code Geeks
G
Google Developers Blog
A
About on SuperTechFans
博客园 - Franky
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
腾讯CDC
博客园 - 司徒正美
GbyAI
GbyAI
Martin Fowler
Martin Fowler
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件

root on CoreDNS: DNS and Service Discovery

暂无文章

root
2024-11-22 · via root on CoreDNS: DNS and Service Discovery

Description

The default root is the current working directory of CoreDNS. The root plugin allows you to change this. A relative root path is relative to the current working directory. NOTE: The root directory is NOT currently supported by all plugins. Currently the following plugins respect the root plugin configuration:

  • file
  • tls
  • dnssec

This plugin can only be used once per Server Block.

Syntax

PATH is the directory to set as CoreDNS’ root.

Examples

Serve zone data (when the file plugin is used) from /etc/coredns/zones:

. {
    root /etc/coredns/zones
}

When you use the root and tls plugin together, your cert and key should also be placed in the root directory. The example below will look for /config/cert.pem and /config/key.pem

tls://example.com:853 {
    root /config
    tls cert.pem key.pem
    whoami
}

Bugs

NOTE: The root directory is NOT currently supported by all plugins. Currently the following plugins respect the root plugin configuration:

  • file
  • tls
  • dnssec