This is our old Q&A Site. Please post any new questions and answers at

Greetings everyone,

I'm trying to get ipv6 name resolution working using hosts file. It works ok for IPv4 addresses but I've tried many formats for and still can't get it to translate IPv6 hosts, see below my attempts:

fe80::10:18ff:fe99:9904 Machine1
fe80.0000.0000.0000.0010.18ff.fe99.9904 Machine2
fe80::210:18ff:fe96:3f66 Machine3
fe80:0000:0000:0000:0210:18ff:fe96:3f66 Machine4
fe80::21:70ff:fe9b:9925 Machine5
fe. Machine6
fe-80-00-00-00-00-00-00-00-0c-29-ff-fe-c4-2f-f0 Machine7 Machine8 Machine9 Machine10

Regards - Philippe

asked 06 Jan '11, 00:52

moction's gravatar image

accept rate: 0%

edited 06 Jan '11, 09:19

SYN-bit's gravatar image

SYN-bit ♦♦

Is this still a problem? Just tried that out and works perfectly fine with 1.6.2

(11 Oct '11, 07:14) Landi

According to the prefix fe80, these are all IPv6 link-local addresses. You should use the global or site-local addresses instead.

In an IPv4 address, the subnet mask specifies which part of the address is the network ID. A multi-homed system will have a different network ID for each interface. IPv6 link-local addresses, on the other hand, all have the same prefix. Therefore, the address by itself, is not sufficient to determine which interface should be used for link-local traffic.

See IPv6 address - Link-local addresses and zone indices which has a brief explanation of why the IPv6 address of an interface by itself is not sufficient for the local computer to make a routing decision and discusses the use of a zone ID to differentiate the interfaces.

Also see TCP/IP Fundamentals for Microsoft Windows Chapter 7 - Host Name Resolution. Microsoft states "For IPv6 entries, the address in the Hosts file entry is a global or site-local IPv6 address expressed in colon hexadecimal notation."

Then there is an example of a Hosts file with both IPv4 and IPv6 entries (but no link-local addresses).

Followed by "You should not place entries for link-local addresses in the Hosts file because you cannot specify the zone ID for those addresses."

permanent link

answered 06 Jan '11, 20:13

Jim%20Aragon's gravatar image

Jim Aragon
accept rate: 24%

edited 06 Jan '11, 23:06

Jaap's gravatar image

Jaap ♦

Jaragon, the original poster is trying to do reverse-lookup with wireshark. These will be the addresses he is seeing (which is what you will see on a network that doesn't have a IPv6 router configured - it will only have link-local addresses)

(06 Jan '11, 22:48) martyvis
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 06 Jan '11, 00:52

question was seen: 14,460 times

last updated: 11 Oct '11, 07:14

p​o​w​e​r​e​d by O​S​Q​A