[62873] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Detecting a non-existent domain

daemon@ATHENA.MIT.EDU (Jack Bates)
Tue Sep 23 17:48:31 2003

Date: Tue, 23 Sep 2003 16:37:57 -0500
From: Jack Bates <jbates@brightok.net>
To: Kee Hinckley <nazgul@somewhere.com>
Cc: nanog@merit.edu
In-Reply-To: <p0610021ebb966134c8d2@[192.168.1.104]>
Errors-To: owner-nanog-outgoing@merit.edu


Kee Hinckley wrote:

> 
> Getting practical for a minute.  What is the optimal way now to see if a 
> given host truly exists?  Assume that I can't control the DNS server--I 
> need to have this code run in any (*ix) environment. Assume also that I 
> don't want to run around specialcasing specific IP addresses or 
> TLDs--this needs to work reliably no matter what the domain.  User gives 
> me a string, and I need to see if the given host is a real machine.
> 

A set comparison between the domain your interested in and *.TLD will 
inform you if the domain is pointed to the same IP addresses as the 
wildcard. In many cases, this is sufficient and can be made to work 
dynamically and quickly with most software and scripts.

-Jack


home help back first fref pref prev next nref lref last post