Skip to content

Commit f920a8b

Browse files
author
Isaac Davis
committed
RFD 150: add explanation of Prometheus BIND server
1 parent 5415dee commit f920a8b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rfd/0150/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,17 @@ of the admin or poseidon account for Triton and Manta, respectively. The
179179
Prometheus image will contain a `certgen` script that generates this key upon
180180
provisioning.
181181

182+
Prometheus must be able to resolve CNS-generated domain names. However, it is
183+
not sufficient to put CNS resolvers in `/etc/resolv.conf`. Theoretically, there
184+
could be an arbitrary number of CNS instances deployed in the Triton deployment,
185+
and we'd like Prometheus to be able to use all of the CNS resolvers. However,
186+
the native Go name resolution only looks at the first three resolvers in
187+
`/etc/resolv.conf`. To circumvent this limitation, the Prometheus zone will run
188+
its own BIND server listening on localhost. This will be the only entry in
189+
`/etc/resolv.conf`. The server will replicate the CNS zone locally, and forward
190+
all other requests to the Binder and public-internet resolvers. This will allow
191+
name resolution using an arbitrary number of CNS resolvers.
192+
182193
Prometheus will store metrics for one month by default -- this will be a (SAPI)
183194
tunable -- on a delegate dataset to preserve across reprovisions. Long term
184195
storage of Prometheus metrics is the subject of

0 commit comments

Comments
 (0)