summaryrefslogtreecommitdiff
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
commitd570830db8f7d893cbcf8e7cfe05c4578bb63fd0 (patch)
treea71784aa8d29749a4ec674c22dafb5c408b58f94
parent6b777872b8d0ec8506ef90bc121eb70a8099db80 (diff)
Updated for new class name.
-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