Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it normal it get an IPv6 address when a hostname is resolved and the IPv6 interface has been disabled (unchecked from network adapter settings)? How do I know for sure IPv6 has been disabled?

share|improve this question
    
Is it possible that the address is IPv6 only? –  soandos Jun 11 '12 at 17:01
    
could you post an example of this? –  Journeyman Geek Jun 11 '12 at 17:04
    
Well, when I do an nslookup to the host name, I get both IPv6 and IPv4 addresses. I can also do a ping hostname -4 and responds to it's IPv4 address. Leave out the -4 and it returns the IPv6 address. –  hydroparadise Jun 11 '12 at 17:06
    
@JourneymanGeek There's a similar question I posted that I have yet to resolve. I changed some parameters and lead me to ask this current question, but the example is given in that qeustion... superuser.com/questions/433416/… –  hydroparadise Jun 11 '12 at 17:09

1 Answer 1

up vote 4 down vote accepted

It's normal for a resolver to report IPv6 addresses regardless of whether IPv6 is actually enabled on any interfaces. The resolver operates at the TCP and UDP layer, and isn't programmed to check whether or not addresses of a particular protocol family would ultimately be usable if they were returned. That would complicate the resolver a lot (consider cases where IPv6 may be available through one interface but not through another, and which interface gets uses for the traffic depends on routing), not to mention being a blatant layering violation.

When the resolver returns IPv6 addresses and they are not usable due to no interfaces having IPv6 connectivity, they will very quickly be rejected by the application's socket connection logic, so it costs almost nothing to return them and try them anyway.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.