AuthDnsCheck
Provides a client for checking that all authoritative DNS servers know about a record and agree on its value(s).
Supports global or per-zone overrides for the set of authoritative DNS servers, for bypassing AnyCast arrangements.
Does not yet support records other than A records.
Does not yet support IPv6.
Installation
Add this line to your application's Gemfile:
gem 'auth_dns_check'
And then execute:
$ bundle
Or install it yourself as:
$ gem install auth_dns_check
Usage
Example:
require "auth_dns_check"
client = AuthDnsCheck.client(
overrides: {
:default => [
Resolv::DNS.new(nameserver: "192.168.0.253"),
Resolv::DNS.new(nameserver: "192.168.0.252"),
]
}
)
# Ignore the NS records for peculiardomain.com and check that
# 192.168.0.253 and 192.168.0.252 both know about and agree on
# 4acf8ea915b7.peculiardomain.com.
#
client.all?("4acf8ea915b7.example.com")
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/starjuice/auth_dns_check.
License
The gem is available as open source under the terms of the MIT License.