How tel nsd to use .consule
as another service level for checking records.
Here the stub-zone for unbound but how to tell nsd use consul?
Unbound config
stub-zone:
name: "consul"
stub-addr: 127.0.0.1@86400
NSD will be thorw an error
nsd.conf:9: at 'stub-zone:': error: syntax error
Sample zone file:
$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
0 Answers