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

RE: ipv4 and ipv6 in /etc/hosts



Carel Fellinger [mailto:carel.fellinger@chello.nl] wrote:

> I search the net and the archive in vain to find whether ipv4 and ipv6
> behave like seperate name spaces.  So now I join the list, 
> temporarely:)

It are distinct namespaces but pointing to the same resources.
Just like as street+city/housenumber combo and a zipcode/housenumber
combo.

> Is the following /etc/hosts snipped legimate?
> 
>   /etc/hosts:
> 
>   192.168.1.1        local-host.local-domain
>   ::FFFF:192.168.1.1 local-host.local-domain

If you want to define the local-domain.tld it is ;)

> And the next question: what address range to use for the above schema?
> Stick with the "::FFFF:" prefix for IPv4-Mapped addresses or switch to
> the "::" prefix for IPv4-Compatible addresses.

IPv4-mapped is in a stadium of being deprecated at the moment.
::192.168.1.1 is not valid, but ::ffff:192.168.1.1 is valid.

Using IPv4 mapped addresses isn't encouraged.

Greets,
 Jeroen



Reply to: