Dnsmasq returns IPv6 instead of IPv4 for Tor onion services

I have server/root@igorek (tor) and client/root@OpenWrt (OpenWRT with dnsmasq).

root@igorek:/# cat /etc/tor/torrc:

User debian-tor
DataDirectory /var/lib/tor    
ExcludeExitNodes {RU}, {UA}, {BY}
VirtualAddrNetwork 10.250.0.0/16
AutomapHostsOnResolve 1
TransPort 10.100.100.1:9040
DNSPort 10.100.100.1:9053
SocksPort 10.100.100.1:9050

root@OpenWrt:~# cat /etc/dnsmasq.conf

server=/onion/10.100.100.1#9053

root@OpenWrt:~# dnsmasq --version

Dnsmasq version 2.80test3  Copyright (c) 2000-2018 Simon Kelley
Compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile

If I resolve *.onion on the server

root@igorek:~# nslookup facebookcorewwwi.onion
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
Name:	facebookcorewwwi.onion
Address: 10.250.60.193

If I resolve *.onion on the client through dnsmasq

root@OpenWrt:~# nslookup facebookcorewwwi.onion
Server:         127.0.0.1
Address:        127.0.0.1#53

*** Can't find facebookcorewwwi.onion: No answer
Name:      facebookcorewwwi.onion
Address 1: fe80:11e3:ac1d:ef65:dbe1:74e5:418b:7da5

Why does it return IPv6 insted of IPv4?

Same issue here. Have you found any solution?

Works for me:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.