Module bind

BIND DNS server.

require("module/bind")

bind:NewZone{domain='example.com', type='master', file='/path/to/example.com.db'}
bind:NewZone{domain='example.net', type='slave', masters={"10.0.0.2"}}

Functions

AllowQuery (ip) Allow IP to query server.
AllowRecursion (ip) Allow IP to query server.
RRL (qps) Enable RRL.
NewZone (zone) Add a new zone.

Tables

zone Zone file.


Functions

AllowQuery (ip) line 11
Allow IP to query server.

Parameters:

  • ip string
AllowRecursion (ip) line 18
Allow IP to query server.

Parameters:

  • ip string
RRL (qps) line 25
Enable RRL.

Parameters:

  • qps int
NewZone (zone) line 39
Add a new zone.

Parameters:

  • zone zone

See also:

Tables

zone line 36
Zone file.

Fields:

  • domain string The domain name.
  • type string 'master' or 'slave'.
  • file string Path to zone file. (optional)
  • masters table If type is 'slave' then a list of master servers. Example: {'172.16.0.53', 'fc00::53'} (optional)
generated by LDoc 1.4.6 Last updated 2019-03-17 07:38:48