[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

HELP - gethostbyname() no longer works



Hi,
    I played around with my /etc/resolve, /etc/hosts, and /etc/hostname.
And now, the function gethostbyname() returns
NULL.
    This seriously broke up all of my programs. I am connected in a LAN
with a given ip address using ethernet.

    At a moment: my /etc/resolve.conf has nameserver 127.0.0.1
    /etc/hostname has localhost and /etc/hosts has 127.0.0.1 localhost

    I believe these are the default values. It worked two days ago.
Please help....

    Thanks.

Shao.



--
____________________________________________________________________________
Shao Zhang - Running Debian 2.1  ___ _               _____
Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: shao@cia.edu.au                                                  |___/
_____________________________________________________________________________




Reply to: