From: rgr AT rio DOT sci DOT ccny DOT cuny DOT edu (Roger Kuhlman) Subject: Re: gethostbyname: returns "not owner" 6 Jun 1997 18:06:41 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199706061807.OAA04460.cygnus.gnu-win32@zebra.sci.ccny.cuny.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Original-To: gnu-win32 AT cygnus DOT com In-Reply-To: <33958DF5.EE0A5D91@bellsouth.net> from "David Means" at Jun 4, 97 04:47:01 pm X-Mailer: ELM [version 2.4 PL25] Original-Sender: owner-gnu-win32 AT cygnus DOT com > > When I call gethostbyname(), it returns an error. perror() displays > "not owner". > > This only happens when I'm running under SH.EXE. > I don't know about the above, that sounds like a permissions problem in the registry????????????????????? but for the below, there are several contributions I can make. 1) in your winnt directory look in system32/drivers/etc there is a hosts.sam and an Lmhosts.sam file. Depending on whether you are on an internet(U**ix) network or an NT network, you need to set up the appropriate hosts file with entries following the sample entries ex. 192.32.71.12 foo.net.com foo in hosts will allow ping foo or telnet foo to work. 2) for general networking, you need to get nameserever info and default router info from your connection provider, and set up your ppp or whatever connection with that info. DNS=nameserver your net administrator should be able to help you. > Also, when I'm running under SH.EXE, ping (/windows/ping) and ftp > (/windows/ftp) will not work with host names. If I use IP addresses > however, it will work. In example, ping will return "Bad IP address" > > Thanks for any help you can provide, > > David Means > mailto:dmeans AT bellsouth DOT net > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request AT cygnus DOT com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".