[opensuse] host file question
HI all, OK, its been a long time since I've set this up and I must be missing something. This is my host file: 127.0.0.1 localhost 192.168.0.101 warthog.de warthog # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts ############ But when I try to use FF to go to warthog or warthog.de it times out. When I use www.warthog.de I get some odd dating site. I checked my Apache server is up and running. So I must be missing something. Any ideas? Thanks! JIM -- Check out my stamp & postcard collection! Yankee GO HOME! Anti-US Propaganda on stamps, postcards, envelopes, and labels http://yankeegohome.18-t.com/ Check out my online Delcampe store http://www.delcampe.net/stores/warthogbulletin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/11/12 10:45, James Hatridge pecked at the keyboard and wrote:
HI all,
OK, its been a long time since I've set this up and I must be missing something.
This is my host file:
127.0.0.1 localhost
192.168.0.101 warthog.de warthog
# special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts
############
But when I try to use FF to go to warthog or warthog.de it times out. When I use www.warthog.de I get some odd dating site. I checked my Apache server is up and running. So I must be missing something.
Any ideas?
Thanks!
JIM
Since you apparently do not own the domain come up with one that is not. Then it should work. Also the entry needs to be in the format of: <IP address> FQDM ALIAS Example: 123.456.789 webmachine.domain.com webmachine -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Ken Schneider - openSUSE wrote:
On 06/11/12 10:45, James Hatridge pecked at the keyboard and wrote:
OK, its been a long time since I've set this up and I must be missing something.
This is my host file:
192.168.0.101 warthog.de warthog
But when I try to use FF to go to warthog or warthog.de it times out. When I use www.warthog.de I get some odd dating site.
Since you apparently do not own the domain come up with one that is not. Then it should work.
It's not relevant if he owns the domain or not. If he has the cited entry in his hosts file, access to warthog should work. Changing the name will *not* make it work, James needs to analyze the problem instead. (For that, see my previous email.) In fact, adding host entries for hosts in domains that one doesn't own is a well-known technique to shortcut traffic to these hosts.
Also the entry needs to be in the format of:
<IP address> FQDM ALIAS
Example:
123.456.789 webmachine.domain.com webmachine
Ahem, technically no. You probably know that, but I want to mention it for the archives. The format is IP_address name1 [name2 ...] -- You can have as many names on the line as you want. -- Only one name is needed. Adding an alias is not mandatory. -- The first name is not necessarily the fully qualified domain name (FQDN), though it's custom to do so. To have a short name first, an arbitrary dotted name second, and than the FQDN is equally valid. That's because FQDN is a concept from DNS that doesn't exist in a hosts file. That leads to: -- Names can have as many or as few periods in them as you want. They don't need to refer to any domain in DNS or so. As long as the contain only alphanumeric characters, minus signs, and periods, they are valid. Just my 0.03 EUR (adjusted for inflation ;-)) Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jschrod@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/11/12 16:36, Joachim Schrod pecked at the keyboard and wrote:
Ken Schneider - openSUSE wrote: own is a well-known technique to shortcut traffic to these hosts.
Also the entry needs to be in the format of:
<IP address> FQDM ALIAS
Example:
123.456.789 webmachine.domain.com webmachine
Ahem, technically no. You probably know that, but I want to mention it for the archives. The format is
IP_address name1 [name2 ...]
-- You can have as many names on the line as you want. -- Only one name is needed. Adding an alias is not mandatory. -- The first name is not necessarily the fully qualified domain name (FQDN), though it's custom to do so. To have a short name first, an arbitrary dotted name second, and than the FQDN is equally valid. That's because FQDN is a concept from DNS that doesn't exist in a hosts file. That leads to: -- Names can have as many or as few periods in them as you want. They don't need to refer to any domain in DNS or so. As long as the contain only alphanumeric characters, minus signs, and periods, they are valid.
Just my 0.03 EUR (adjusted for inflation ;-))
Joachim
I beg to differ: pc1:~ # cat /etc/hosts # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Joachim Schrod said the following on 06/11/2012 04:36 PM:
Ken Schneider - openSUSE wrote:
On 06/11/12 10:45, James Hatridge pecked at the keyboard and wrote:
OK, its been a long time since I've set this up and I must be missing something.
This is my host file:
192.168.0.101 warthog.de warthog
But when I try to use FF to go to warthog or warthog.de it times out. When I use www.warthog.de I get some odd dating site.
Since you apparently do not own the domain come up with one that is not. Then it should work.
It's not relevant if he owns the domain or not. If he has the cited entry in his hosts file, access to warthog should work.
No. Read what he says. His entry is
192.168.0.101 warthog.de warthog and he's trying to contact www.warthog.de
He doens't have an entry for www.warthog.de -- A generation which ignores history has no past and no future. Robert Heinlein (1907 - 1988), The Notebooks of Lazurus Long -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
HI all, OK, now it seems that by changing the ip numbers I got it to work. BUT now I get this: Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster. Error 403 warthog.de Tue Jun 12 00:56:33 2012 Apache/2.2.21 (Linux/SUSE) ########### I'm guessing that this is a premissions problem. But where do I fix it? Thanks! JIM -- Check out my stamp & postcard collection! Yankee GO HOME! Anti-US Propaganda on stamps, postcards, envelopes, and labels http://yankeegohome.18-t.com/ Check out my online Delcampe store http://www.delcampe.net/stores/warthogbulletin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Hatridge wrote:
OK, now it seems that by changing the ip numbers I got it to work. BUT now I get this:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. Error 403 warthog.de Tue Jun 12 00:56:33 2012 Apache/2.2.21 (Linux/SUSE) ###########
I'm guessing that this is a premissions problem. But where do I fix it?
In the Apache configuration. This error code may be caused by several configuration problems. The error log in /var/log/apache2 should have more information about the root cause. But I use neither Yast nor other openSUSE mechanisms to configure my Apache servers. Therefore others must take up the thread and help you with your further problems. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jschrod@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Anton Aylward
-
James Hatridge
-
Joachim Schrod
-
Ken Schneider - openSUSE