Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Correct configuration of /etc/hosts
Results 1 to 2 of 2

Thread: Correct configuration of /etc/hosts

  1. #1
    Newbie
    Join Date
    Apr 2009
    Location
    Olympia, WA
    Posts
    2

    Correct configuration of /etc/hosts

    I operate a webserver and have had many conflicting configurations of my /etc/hosts on Ubuntu Server 8.04. My current /etc/hosts file is found below. The 10.1.10.XXX is for internal. I am hoping that I can gain some insight why I cannot view my domain from inside my own network. Now, who wants to share their hosts!
    Code:
    127.0.0.1 localhost
    127.0.1.1 "insert hostname here"
    10.1.10.XXX buckycomputing.net

  2. #2
    /etc/hosts is a local file, meaning that only the machine that has that specific file will resolve names to those IPs.
    Also, if you want to add an alias (an additional name for an ip), you can just space separate them on the same line - e.g.:
    Code:
    127.0.0.1 localhost hostname
    10.1.10.XXX buckycomputing.net
    hope this helps!
    Last edited by countach44; 05-12-2009 at 07:13 PM. Reason: cleaning up parens
    63,000 bugs in the code, 63,000 bugs,
    ya get 1 whacked with a service pack,
    now there's 63,005 bugs in the code!!

Similar Threads

  1. dns/bind and /etc/hosts
    By ph34r in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 12-06-2008, 06:36 AM
  2. help for etc/hosts
    By bongkietwins in forum Redhat / Fedora
    Replies: 3
    Last Post: 10-07-2007, 04:05 AM
  3. HOSTS File
    By Lord_Anubis in forum Windows - General Topics
    Replies: 1
    Last Post: 01-14-2007, 03:38 AM
  4. correct path in gphoto2
    By doggiebone in forum Redhat / Fedora
    Replies: 11
    Last Post: 03-04-2003, 06:51 AM
  5. hosts file
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 05-16-2002, 06:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •