summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian')
-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