Raspberry pi 将dnsmasq配置为在公共IP上侦听,而不是仅在LAN上侦听

Raspberry pi 将dnsmasq配置为在公共IP上侦听,而不是仅在LAN上侦听,raspberry-pi,dnsmasq,Raspberry Pi,Dnsmasq,我正在尝试使用我的Raspberry Pi使用dnsmasq托管DNS服务器。我可以通过局域网连接到DNS服务器,但我不能通过我的公共IP连接到它。我已经在路由器上转发了端口53 /etc/dnsmasq.conf: server=1.1.1.1 server=1.0.0.1 interface=wlan0 address=/test.example.com/127.0.0.1

我正在尝试使用我的Raspberry Pi使用dnsmasq托管DNS服务器。我可以通过局域网连接到DNS服务器,但我不能通过我的公共IP连接到它。我已经在路由器上转发了端口53

/etc/dnsmasq.conf:

server=1.1.1.1
server=1.0.0.1
interface=wlan0
address=/test.example.com/127.0.0.1