logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gdnsd-plugin-static - gdnsd static plugin

Description

gdnsd-plugin-static is a combined monitoring and resolution plugin that returns static data.  It is
       generally useless in real scenarios, and mostly serves only as an example/test plugin.

       For resolution, the configuration is a simple key/value hash where the keys are resource names and the
       values can be a single IP address (v4 or v6) or a domainname.  The domainname form can only be used with
       "DYNC", while the address form can be used with either "DYNA" or "DYNC".

       For monitoring configuration as a service_type, the only two useful parameters are "ttl" and "state",
       which set a fixed TTL and state for this static monitor result.  The other standard monitoring parameters
       (e.g. interval, timeout) are ignored, as static sets its states once at startup and never runs again.

Name

       gdnsd-plugin-static - gdnsd static plugin

See Also

gdnsd.config(5), gdnsd.zonefile(5), gdnsd(8)

       The gdnsd manual.

Synopsis

       Example static resources config for resolution:

         plugins => {
           static => {
             foo => 192.0.2.1
             bar => 2001:db8::1
             baz => something.example.org.
           }
         }

       Example static service_types config for monitoring:

         service_types => {
           my_static_mon => {
             plugin => static,
             ttl => 123,
             state => UP,
             # ... other generic service_type params (ignored)
           }
         }

       Zonefile RRs using static plugin resolution, in zone example.com:

         foo 300 DYNA static!foo
         bar 300 DYNC static!bar
         baz 300 DYNC static!baz

See Also