Consul 如何支持 nsd

Consul 如何支持 nsd

如何将 tel nsd 用作.consule检查记录的另一个服务级别。

这里的 stub-zone 为 unbound 但如何告诉 nsd 使用 consul?

未绑定配置

stub-zone:
    name: "consul"
    stub-addr: 127.0.0.1@86400

NSD 将抛出错误

nsd.conf:9: at 'stub-zone:': error: syntax error

示例区域文件:

$TTL    86400 ; 24 hours could have been written as 24h or 1d
; $TTL used for all RRs without explicit TTL value
$ORIGIN example.com.
@  1D  IN  SOA ns1.example.com. hostmaster.example.com. (
                  2002022401 ; serial
                  3H ; refresh
                  15 ; retry
                  1w ; expire
                  3h ; nxdomain ttl
                 )
       IN  NS     ns1.example.com. ; in the domain
       IN  NS     ns2.smokeyjoe.com. ; external to domain
www    IN  A      192.168.0.2  ;web server definition
ha-www    IN  CNAME      service-a.consul.  ; using consul

相关内容