On Wed, Apr 07, 1999 at 11:59:31AM +0000, Shao Zhang wrote:
> 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/resolv.conf 
search
nameserver 127.0.0.1            # localhost
nameserver 194.25.46.4          # provider 1. IP
nameserver 194.25.0.125         # provider 2. IP

>     /etc/hostname has localhost and /etc/hosts has 127.0.0.1 localhost
/etc/hostname
pmurmel                         # my linuxbox name

figure out with     `uname -n`

/etc/hosts
127.0.0.1       localhost               # localhost
192.168.1.1     pmurmel.pberlau.users.muenster.de pmurmel
# "full name" of my box  and  name
10.0.0.1        local_ptp.pberlau.users.muenster.de local_ptp   
# for ip - connection
10.0.0.2        remote_ptp.pberlau.users.muenster.de remote_ptp
# remote ip
192.168.1.2     amurmel.pberlau.users.muenster.de amurmel
# the name of the box from Adelheid is ...  amurmel

Hope this helps a little,
cu 
  Peter

-- 
Peter Berlau 
[EMAIL PROTECTED]

Reply via email to