| 
					
				 | 
			
			
				@@ -267,24 +267,24 @@ module InterconnectionPointProtocolHandler 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               f = Fiber.new do 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Fiber.yield Resolv.getname(iphost) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              host_name = f.resume 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              domainname = f.resume 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               #host_name = "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              if host_name.nil? || host_name.empty? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                host_name = iphost 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if domainname.nil? || domainname.empty? 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                domainname = iphost 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 # if the resulting dns is too long, use ip-address instead. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 # if the resulting dns has too many dots, use ip-address instead. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if host_name.length > 23 || host_name.split(".").size > 3 || host_name.grep(/\d/).size > 3 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  #put_log "cutting down host_name: #{host_name}, because:" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  #put_log "#{host_name.length}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  #put_log "#{host_name.split(".").size}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  #put_log "#{host_name.grep(/\d/).size}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if domainname.length > 23 || domainname.split(".").size > 3 || domainname.grep(/\d/).size > 3 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  #put_log "cutting down host_name: #{domainname}, because:" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  #put_log "#{domainname.length}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  #put_log "#{domainname.split(".").size}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  #put_log "#{domainname.grep(/\d/).size}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  host_name = iphost 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  domainname = iphost 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              source = "qw://#{host_name}:#{ipport}#{rest}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              source = "qw://#{domainname}:#{ipport}#{rest}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           end # of if source qw://x.x.x.x:portzzz 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |