summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-22 06:43:43 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-22 06:43:43 +0000
commitc05bf655545d5b27b941ea03c1631d975557977e (patch)
treea71784aa8d29749a4ec674c22dafb5c408b58f94 /lib
parent80b250e226472b3d7d71c194ea1cd2b02f52885c (diff)
Updated for new class name.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/alerter.rb8
-rw-r--r--lib/custodian/multiping.rb4
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/custodian/alerter.rb b/lib/custodian/alerter.rb
index cb251e7..ffa07dd 100644
--- a/lib/custodian/alerter.rb
+++ b/lib/custodian/alerter.rb
@@ -1,5 +1,5 @@
-require 'custodian/dnsutil'
+require 'custodian/util/dns'
require 'mauve/sender'
require 'mauve/proto'
@@ -97,7 +97,7 @@ class Alerter
( target =~ /^([0-9a-f:]+)$/ ) )
resolved = target
else
- resolved = DNSUtil.hostname_to_ip( target )
+ resolved = Custodian::Util::DNS.hostname_to_ip( target )
end
@@ -227,7 +227,7 @@ class Alerter
subject = @details['target_host']
if ( ( subject =~ /^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/ ) ||
( subject =~ /^([0-9a-f:]+)$/ ) )
- res = DNSUtil.ip_to_hostname( subject )
+ res = Custodian::Util::DNS.ip_to_hostname( subject )
if ( res )
subject = res
end
@@ -240,7 +240,7 @@ class Alerter
if ( ( @details["target_host"] =~ /^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/ ) ||
( @details["target_host"] =~ /^([0-9a-f:]+)$/ ) )
- resolved = DNSUtil.ip_to_hostname( @details["target_host"] )
+ resolved = Custodian::Util::DNS.ip_to_hostname( @details["target_host"] )
if ( resolved.nil? )
resolved = ""
else
diff --git a/lib/custodian/multiping.rb b/lib/custodian/multiping.rb
index b800196..8844112 100644
--- a/lib/custodian/multiping.rb
+++ b/lib/custodian/multiping.rb
@@ -1,6 +1,6 @@
require 'getoptlong'
-require 'custodian/dnsutil'
+require 'custodian/util/dns'
#
# This class has methods to determine whether the target
@@ -21,7 +21,7 @@ class MultiPing
#
def initialize( hostname )
@hostname = hostname
- @resolved = DNSUtil.hostname_to_ip( hostname )
+ @resolved = Custodian::Util::DNS.hostname_to_ip( hostname )
end