I have already checked with the strongswan mailing list on this and it is not a strongswan issue. Storngswan simply uses the local lookup, whatever that might be.
We use two cell phone providers Airtel and Vodafone. Airtel works fine, no issues.
With Vodafone about 30% of the time, we get this:
root@CORS144:~# nslookup cors.surveyofindia.gov.in
Address 1: 127.0.0.1 localhost
Address 1: 64:ff9b::67cd:f46a
Address 2: 126.96.36.199
Why is nslookup returning an IPv6 IP address?
IPv6 is disabled:
root@CORS114:~# cat /proc/sys/net/ipv6/conf/all/disable_ipv6
root@CORS114:~# cat /proc/sys/net/ipv6/conf/default/disable_ipv6
So what is going on? I am using a FQDN in the strongswan connection profile in case we change ISPs. The issue goes away if I use an IP address but I don't want to do that.
I have tried creating this file:
root@CORS144:~# cat /etc/gai.conf
precedence ::ffff:0:0/96 100
scopev4 ::ffff:169.254.0.0/112 2
scopev4 ::ffff:127.0.0.0/104 2
scopev4 ::ffff:0.0.0.0/96 14
To force precedence of IPv4 over IPv6 but its not working.
Why is the RUT-950 using IPv6 when it is clearly disabled?
How can I FORCE IT to not use IPv6?