Cor Bosman cor@xs4all.nl wrote:
Hey guys, our imap service has both a v4 and a v6 address. We're having some issues on v6, and id like rc to connect to v4 only. But... rc uses the imap server name in the database :( I dont want to remove the v6 address from the imap dns record, but it seems impossible for me to tell rc to connect v4 only without it starting a new database key because the imap server would change...
Any way to do this?
Maybe via /etc/gai.conf:
,---- | # precedence <mask> <value> | # Add another rule to the RFC 3484 precedence table. See section 2.1 | # and 10.3 in RFC 3484. The default is: | #precedence ::1/128 50 | #precedence ::/0 40 | #precedence 2002::/16 30 | #precedence ::/96 20 | #precedence ::ffff:0:0/96 10 | # | # For sites which prefer IPv4 connections change the last line to | # | #precedence ::ffff:0:0/96 100 `----
Changung the preference of "::ffff:0:0/96" to "100" will prefen IPv4 over IPv6.
This is of course global for the server this is set on, so use with caution.
Grüße, Sven.