Sha256: fa792e5177cdc800c1cd36201023f4aecba91644ed0f04eaeb6505205fb4455c

Contents?: true

Size: 851 Bytes

Versions: 2

Compression:

Stored size: 851 Bytes

Contents

config.log_file = "/tmp/devdnsd-test-log.log"

config.add_rule(match: "match_1.dev", reply: "10.0.1.1")

config.add_rule(match: "match_2.dev", reply: "10.0.2.1", type: :MX)

config.add_rule(match: "match_3.dev") do "10.0.3.1" end

config.add_rule(match: "match_4.dev", type: :CNAME) do "cowtech.it" end

config.add_rule(match: /match_5_(\d+)\.dev/, reply: "ns.cowtech.it", type: :NS)

config.add_rule(match: /match_6_(\d+).dev/, reply: "10.0.6.$1", type: :PTR)

config.add_rule(match: /match_7_(\d+).dev/) do "10.0.7.$1" end

config.add_rule(match: /match_8_(\d+).dev/, type: :PTR) do "10.0.8.$1" end

config.add_rule(match: "match_9.dev") do false end

config.add_rule(match: "match_10.dev", type: [:A, :MX]) do |match, type, transaction| type == :A ? "10.0.10.1" : "10.0.10.2" end

config.add_rule(match: "quit.dev") do DevDNSd::Application.quit end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devdnsd-4.0.1 config/devdnsd_config.sample
devdnsd-4.0.0 config/devdnsd_config.sample