On Wed, Jun 25, 2008 at 11:03:54PM -0400, Richard Lowe wrote:
> Will Fiveash <William.Fiveash at Sun.COM> writes:
> 
> >> In 
> >> http://cr.opensolaris.org/~mjnelson/toolsreview/webrev.python/usr/src/tools/onbld/Checks/__init__.py.html
> >> 
> >>   48 # 
> >>   49 # Generic check to test if a host is on SWAN
> >>   50 # 
> >>   51 def onSWAN():
> >>   52         try:
> >>   53                 if socket.gethostbyname("sunweb.central.sun.com."):
> >>   54                         return True
> >>   55                 else:
> >>   56                         return False
> >>   57         except:
> >>   58                 return False
> >> 
> >> - Perhaps it would be good to test a couple more internal hosts if
> >>   sunweb is down?
> 
> It's a DNS lookup.  I would assume that if you can't resolve sunweb
> you'd be unable to resolve anything else swan-specific you may wish to
> use(?).

Missed that, you've got a good point there.

-- 
Will Fiveash
Sun Microsystems Inc.
http://opensolaris.org/os/project/kerberos/

Reply via email to