Re: having trouble with web site and resolving a host

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

 



On Tue, 2007-07-03 at 10:29 -0500, Scott Berry wrote:
> I just wrote in the /etc/hosts this line is this the correct way to do
> this?
> 127.0.0.1 pilotalk.com www.pilotalk.com 

As Frank said, you need to keep the localhost information, and you may
not need the www one.  That depends on whether your webserver works both
ways (with and without the www prefix).

If your machine was on the local address of 192.168.1.1, I would have
done it this way:

127.0.0.1  localhost.localdomain  localhost
192.168.1.1  pilotalk.com www.pilotalk.com 

If you were also serving out FTP, which the thread initially indicated
by then said no, I would be tempted to add ftp.pilotalk.com onto the end
of that line too.  Regardless of whether you intended to serve a server
on an address like that, people often expect it.  Of course, that'd need
to be in DNS too.  Don't bother doing something like that with SSH,
though.

i.e. The point being that some people expect to find some services using
the popular sub-domain names (websites with www ones, file servers with
ftp ones, and so on).

-- 
[tim@bigblack ~]$ rm -rfd /*^H^H^H^H^H^H^H^H^H^Huname -ipr
2.6.21-1.3228.fc7 i686 i386

Using FC 4, 5, 6 & 7, plus CentOS 5.  Today, it's FC7.

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.



-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux