dnstools 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -2,7 +2,7 @@ require 'thor'
2
2
  require 'resolv'
3
3
 
4
4
  module DNSTools
5
- VERSION = '1.0.2'
5
+ VERSION = '1.0.3'
6
6
 
7
7
  class Commands < Thor
8
8
  end
@@ -1,14 +1,10 @@
1
1
  module DNSTools
2
2
  class Commands
3
3
 
4
- desc "serial_check domain", "Checks the serial number for all a domain's nameservers is the same"
4
+ desc "serialcheck example.com", "Checks the serial number for all a domain's nameservers is the same on all records"
5
5
  def serialcheck(domain)
6
6
  root_resolver = Resolv::DNS.new(:nameserver => ['8.8.8.8'])
7
7
 
8
- if domain.nil?
9
- $stderr.puts "usage: check.rb "
10
- end
11
-
12
8
  nameservers = root_resolver.getresources(domain, Resolv::DNS::Resource::IN::NS)
13
9
  serials = []
14
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnstools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-11-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70363330854020 !ruby/object:Gem::Requirement
16
+ requirement: &70261405098500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.16.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70363330854020
24
+ version_requirements: *70261405098500
25
25
  description:
26
26
  email: adam@atechmedia.com
27
27
  executables:
@@ -30,6 +30,7 @@ extensions: []
30
30
  extra_rdoc_files: []
31
31
  files:
32
32
  - bin/dnstools
33
+ - dnstools-1.0.2.gem
33
34
  - dnstools.gemspec
34
35
  - lib/dns_tools/serial_check.rb
35
36
  - lib/dns_tools.rb