Subject: RE: A few simple (I hope...) questions
To: 'Bill Studenmund' <wrstuden@netbsd.org>
From: Tristan Celder <tristan@unpure.net>
List: port-macppc
Date: 10/18/2002 04:27:33
Hi Bill,
Still not working... :(
This is what happens...
-------------------------------------
zappy# /usr/pkg/sbin/httpd start
[Fri Oct 18 05:26:24 2002] [alert] httpd: Could not determine the
server's fully qualified domain name, using 127.0.0.1 for ServerName
zappy# vi /etc/hosts
# $NetBSD: hosts,v 1.6 2000/08/15 09:33:05 itojun Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# It is used only for "ifconfig" and other operations
# before the nameserver is started.
#
#
::1 zappy.REMOVED.demon.co.uk localhost
127.0.0.1 zappy.REMOVED.demon.co.uk localhost
#
# RFC 1918 specifies that these networks are "internal".
# 10.0.0.0 10.255.255.255
# 172.16.0.0 172.31.255.255
# 192.168.0.0 192.168.255.255
#
# Added by NetBSD sysinst
#
192.168.0.101 .
# Added by Tristan... uh oh.
#
127.0.0.1 localhost
127.0.0.1 zappy
~
~
~
/etc/hosts: unmodified: line 1
------------------------
REMOVED.demon.co.uk is the name that resolves to my ip address on my
router. I don't know if NetBSD would have to check this out somewhere,
it may just think its on a private network? I really don't know, I'm
just very very confused.
Thank you for your persistence in helping me! I'm glad I can now do this
on a terminal using ssh on my regular machine!
Cheers,
Tristan
-----Original Message-----
From: Bill Studenmund [mailto:wrstuden@netbsd.org]
Sent: Friday, October 18, 2002 3:57 AM
To: Tristan Celder
Cc: port-macppc@netbsd.org
Subject: RE: A few simple (I hope...) questions
On Fri, 18 Oct 2002, Tristan Celder wrote:
> Thanks for the reply. Still seems not to work though.
>
> This is how my hosts file looks (without the comments) after following
> your suggestions.
>
> ----------------
>
> ::1 localhost.subdomain.domain.tld localhost
> 127.0.0.1 localhost
You need to do both lines. The "::1" line is for IPv6, and the "127. .."
one is for IPv4.
> 127.0.0.1 localhost #added by netbsd sysinst
> 127.0.0.1 zappy
>
> ----------------
>
> Should probably take out one of the duplicating 127.0.0.1 localhost
> lines maybe? I've called the machine zappy.
You can add "zappy" to the other lines, but I'd actually put zappy in at
the IP address you gave it w/ dhcp.
Zapping the duplicate line wouldn't hurt.
> Apache still throws out the "could not determine the servers fully
> qualified domain name" response. Is this because I have a firewall on
my
> router? Or is it because I've got something set wrong? I've tried
> looking in the documentation, but its going over my head in my unix
> experience infancy!
No, the problem is I bet appache's using IPv4, and you adjusted the IPv6
entry.
> I've enabled SSH via rc.conf, and can see it start when I reboot
(first
> time it created its keys too!). However, I still can't login using the
> machines private ip from within the network. Is there a default
firewall
> in place I need to turn off?
No, it should work.
Oh, you aren't logging in as root, are you? That is disabled by default
in
ssh.
Make a user account for you, and use that. I do that on all of my
machines, even ones I'm the only person who uses. Keeps "accidents" from
happening; most of the system you can only touch if you first su.
Take care,
Bill