Help getting dnsmasq running with my router/modem

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
I have a Sagemcom F@st 5250 modem/router, with TrueNAS connected to it. The router interface lists all my jails, I used reserved IPs on each jail so it remains static. I created a jail called dnsmasq and installed the package, it is running and I can see port 53 used. Can someone post a simple /usr/local/etc/dnsmasq.conf that will allow me to resolve the jail names from my Mac? I can ping fine the dnsmasq jail from my Mac.

Jail /etc/hosts:
Code:
root@dnsmasq:~ # cat /etc/hosts
::1            localhost.local        localhost
127.0.0.1      localhost.local        localhost
192.1682.19    dnsmasq.local          dnsmasq
192.1682.20    media.local            media
192.1682.21    plexmediaserver.local  plexmediaserver


This is what I have now as config:
Code:
root@dnsmasq:~ # cat /usr/local/etc/dnsmasq.conf
bind-interfaces
domain-needed
expand-hosts
no-resolv
domain=local
listen-address=127.0.0.1
server=1.1.1.1,1.0.0.1


/etc/resolv.conf:
Code:
root@dnsmasq:~ # cat /etc/dnsmasq.conf
search local
nameserver 127.0.0.1
nameserver 1.1.1.1


The original resolv.conf was:
Code:
search home
nameserver 192.168.2.1


The router has the DNS set to:

1633816685180.png
 
Top