From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,acc336730927db6e,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-01-21 11:42:35 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uunet!Germany.EU.net!netmbx.de!zib-berlin.de!informatik.tu-muenchen.de!ramm From: ramm@Informatik.TU-Muenchen.DE (Christoph Ramm) Subject: Problems with 'host' command and gethostbyname() Keywords: netdb host gethostbyname Originator: ramm@sunbode29.informatik.tu-muenchen.de Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem) Organization: Technische Universitaet Muenchen, Germany Date: Fri, 21 Jan 1994 13:36:42 GMT Message-ID: <1994Jan21.133642.28377@Informatik.TU-Muenchen.DE> I have problems with the 'host' command and the 'gethostbyname()' function on an ALPHA running osf1 1.2a. The host command returns a packet size error although it seems to resolve the requested internet address correctly according to the debug output. The gethostbyname() function produces a segmentation fault even if the hostname parameter is a nice null-terminated string. Even more strange: gethostbyname sometimes works and sometimes doesn't (called with the same machine name). Thanks for any hints on that subject !!!!