Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101418 - Extra info for the /etc/hosts file?
Summary: Extra info for the /etc/hosts file?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 137031 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-05 03:25 UTC by Mark Cooper
Modified: 2006-06-17 01:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Cooper 2005-08-05 03:25:28 UTC
Just wondering if it would be worthwhile following FreeBSD's /etc/hosts format 
which make RFC1918 etc clear and hopefully stop people just making up IP's and 
getting themselves in trouble...


# $FreeBSD: src/etc/hosts,v 1.11.2.4 2003/02/06 20:36:58 dbaker Exp $
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file.  Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/host.conf for the resolution order.
#
#
::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain
#
# Imaginary network.
#10.0.0.2               myname.my.domain myname
#10.0.0.3               myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
#       10.0.0.0        -   10.255.255.255
#       172.16.0.0      -   172.31.255.255
#       192.168.0.0     -   192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers.  Do not try to invent your own network
# numbers but instead get one from your network provider (if any) or
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#

Reproducible: Always
Steps to Reproduce:
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2005-08-06 04:32:18 UTC
What do you think Roy .. also, do we need to keep the ipv6 stuff around ?
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-08-06 09:14:35 UTC
I think this is better than what we currently have. I would say that we need to
remove the localhost.my.domain though as we should ship something that 100% works.

Re the ipv6 stuff we have - I say we should remove it and just keep the ::1
reference back to localhost, which is the same as the example listed here.

The last paragraph is a bit confusing

# In case you want to be able to connect to the Internet, you need real official
assigned numbers.

I am connected to the internet, but I use private IP's. Maybe something like this

# In case you want to be able to directly connect to the Internet (ie not behind
a NAT, ADSL router or similar), you need real official assigned numbers.
Comment 3 SpanKY gentoo-dev 2005-08-06 15:17:03 UTC
thanks, integrated info into our current hosts file
Comment 4 SpanKY gentoo-dev 2006-06-17 01:27:19 UTC
*** Bug 137031 has been marked as a duplicate of this bug. ***