created and passed first unit tests for DNS; finished recovery from PingScheduler...
[pingcheck] / src / dns / resolverbase.cpp
index 82b6c29..9f36e68 100644 (file)
@@ -64,10 +64,7 @@ std::string ResolverBase::get_skip_cname() const
     if ( first_out_of_date == Hostname )
         return "";
     else
-        // we want to skip this first outdated cname, so return what is 
-        // directly behind it.
-        // If that is not a cname but ips, will return empty here
-        return Cache->get_cname(first_out_of_date).Host;
+        return first_out_of_date;
 }
 
 void ResolverBase::update_cache( const std::string &hostname,