I noticed some 'weird' DNSMasq behavior when I set up my LAN for dual stack IPv4 & IPv6 networking. It seems that my DNS server (DNSMasq) which acts as a forwarder and also has all the host names for the static leases for the local network, replies with it's own interface address when it cannot resolve a specific record.
Let me explain: When I do a look-up for an 'A' record for my host called 'router.home.example.com', it replies with the correct local IP address (10.0.1.2). When I query for the 'AAAA' address (which my router does not have yet, and as such is not registered as a static lease) it replies with it's own IPv6 address (and host name). Obviously I expected it to return a 'host/record not found' message.
The problem is that when I try to reach said router (OpenWRT) via the web interface, it complains about a DNS rebinding attempt and refuses to let me log in, probably because it sees 2 different addresses and host names.
Before posting this question here I've spent hours trying to figure this out - I really hope it's not something obvious I'm missing because I've been staring at this problem for too long.
For what it's worth, I'm using pfSense 2.1 BETA with DNSMasq. I've successfully configured IPv6 using Hurricane Electric as a tunnel broker.
Thanks in advance for any help!