class

Razor

Inherits Reference < Object

Constants

NAME = "Razor"
VERSION = {{ (read_file("shard.yml")).lines[1] }}

Constructors

new(config : String = "/etc/pdns-razor/razor.json", context : String = "production")
Source

Instance methods

data_from_redis(qtype, name, src, options)
Source
ipv4_get(range, skip_list, seed = UInt8::MAX)
Source
ipv6_get(range, skip_list, seed = UInt16::MAX)

Get the random IPv6 address from the given range, and exclude the ones that are listed as skip-list (= blackholed). This mechanism works only with /48 ranges and checks are based on /64 ranges.

Source
mainLoop
Source
mandatory_dns_options(name)
Source
parse_arguments
Source
run!
Source