Running OpenBSD 4.3 and noticed after the install everything has a slight delay in connecting to where I want to go. Realised that using the "-4" switch with everything that it was because everything was trying IPv6 first. Turns out that it's just the resolver looking for IPv6 records when trying to resolve something.
Code:
16:35:01.857501 192.168.1.200.37444 > 192.168.1.254.53: [udp sum ok] 2489+ AAAA? www.google.com. (32) (ttl 64, id 60159, len 60)
16:35:06.862732 192.168.1.200.37444 > 192.168.1.254.53: [udp sum ok] 2489+ AAAA? www.google.com. (32) (ttl 64, id 11068, len 60)
16:35:11.872879 192.168.1.200.34052 > 192.168.1.254.53: [udp sum ok] 15209+ AAAA? www.google.com.konundrum.org. (46) (ttl 64, id 13656, len 74)
16:35:15.978486 192.168.1.254.53 > 192.168.1.200.34052: [udp sum ok] 15209 NXDomain- 0/0/0 (46) (ttl 255, id 35698, len 74)
16:35:15.978983 192.168.1.200.3278 > 192.168.1.254.53: [udp sum ok] 47919+ A? www.google.com. (32) (ttl 64, id 26604, len 60)
16:35:16.529135 192.168.1.254.53 > 192.168.1.200.3278: 47919 4/0/0 www.google.com. CNAME www.l.google.com., www.l.google.com.[|domain] (ttl 255, id 35700, len 128)
Is there a way to stop this? Or just to make it default to IPv4 only records?