Re: Apache2 Address family for hostname not supported
On 10/09/2011 03:50 AM, Manfred Schmitt wrote:
Peter Müller schrieb:
Hat sich nicht erledigt, es ist so:
wenn das Gerät online ist, startet apache2. Wenn nicht, startet apache2
nicht und gibt diese Fehlermeldung aus:
[error] (EAI 9)Address family for hostname not supported: Could not
resolve host name 127.0.0.1 --ignoring!
Kann mir da jemand weiterhelfen?
Address family not supported deutet auf ein ipv6-Problem hin.
Wie sieht die /etc/apache2/ports.conf bzw. auch andere apache-configs
bzgl. Listen aus?
ports.conf:
# NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Dann koennte 'ip addr' auch interessant sein.
Weil ich ein ipv6-Problem auch schon vermutet hatte, habe ich eine
ipv6-Adresse hinzugefügt, das Problem gab es vorher also auch schon,
hier die Ausgabe von ip addr:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN qlen 1000
link/ether 00:11:25:84:94:cf brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
link/ether 00:12:f0:18:57:df brd ff:ff:ff:ff:ff:ff
inet 192.168.1.33/24 brd 192.168.1.255 scope global eth1
inet6 fe80::212:f0ff:fe18:57df/64 scope link
valid_lft forever preferred_lft forever
4: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether 5e:05:b7:f1:a5:df brd ff:ff:ff:ff:ff:ff
-------------------
Bzw.
auto lo
iface lo inet loopback
steht in der /etc/network/interfaces drin?
Ja, sieht so aus:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp
-------------------
In die Richtung wuerde ich zuerst schauen, man findet einige Bugreports
zu dem Thema (aber nichts eindeutiges).
Ansonsten, wenn es doch ein DNS-Problem ist, waeren die relevanten Dateien
in /etc grob: nsswitch.conf, host.conf, hostname, resolv.conf, networks,
gai.conf (hm, die sehe ich das erste mal) und die hosts (die Du ja schon
gepastet hast).
Ist das so weit erstmal ok? Wenn nicht, schaue ich in den von dir
angegebenen Dateien noch nach. Danke erstmal,
Peter
Reply to: