9c41 [Solved] IPv4/IPv6 preference - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old July 7th, 2010, 14:18
Abacus Abacus is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default IPv4/IPv6 preference

Hi there,

I've been Googling this for about 20 minutes and haven't found anything relevant. On Linux, the configuration file gai.conf allows me to set getaddrinfo() to prefer AAAA records over A records when doing a DNS lookup. I can't find an equivalent on FreeBSD.

All I found was this page, which says "FreeBSD prefers IPv6 if a DNS query results in IPv4 and IPv6 addresses being sent back (A and AAAA RRs)". This doesn't seem to be the case.

I know for certain that v4v6.ipv6-test.com does have both AAAA and A records, but FreeBSD is preferring to connect via IPv4. When I put an IPv6-only address into my browser (v6.ipv6-test.com), FreeBSD does connect over IPv6 as it should (so I know for certain that both IPv6 and IPv4 are working fine, it's just a matter of preferring one over the other in a DNS lookup).

Any ideas?
Reply With Quote
  #2  
Old July 8th, 2010, 03:49
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

ip6addrctl(8)
http://tools.ietf.org/html/rfc3484
Reply With Quote
  #3  
Old July 8th, 2010, 07:25
Abacus Abacus is offline
Junior Member
 
Join Date: Sep 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Perfect. Thank you.
Reply With Quote
Reply

Tags
ipv6 ipv4 dns preference

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 8.0 IPv6/IPv4 znanie Web & Network Services 1 December 11th, 2010 12:54
IPV6/IPV4 ipfw mold Firewalls 0 May 20th, 2010 21:11
IPv4/IPv6 starting scripts krik Networking 7 April 13th, 2010 22:50
[Solved] ipv4 / ipv6 on the same interface clinty Networking 5 August 3rd, 2009 07:52
IPv6 DAD disables IPv6 Traffic, how to turn IPv6 back on? benzh512 Networking 6 March 10th, 2009 16:57


All times are GMT +1. The time now is 18:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0