Blame | Last modification | View Log | Download | RSS feed
\name{nsl}\alias{nsl}\title{Look up the IP Address by Hostname}\description{Interface to \code{gethostbyname}.}\usage{nsl(hostname)}\arguments{\item{hostname}{the name of the host.}}\value{The IP address, as a character string, or \code{NULL} if the call fails.}\note{This was included as a test of internet connectivity, to fail ifthe node running R is not connected. It will also return \code{NULL}if BSD networking is not supported, including the header file\file{arpa/inet.h}.}\examples{\dontrun{nsl("www.r-project.org")}}\keyword{utilities}