I would like to set up my Yunohost to query a DNS resolver located on a different machine in my local network (and not the ones that
/etc/resolv.dnsmasq.conf contains by default).
Currently, I’m forcing Yunohost to query my local resolver by doing the following :
echo -e "10.0.0.2\n2001:DB8:11:22::acab/64" > /etc/resolv.dnsmasq.conf \ && chattr +i /etc/resolv.dnsmasq.conf
chattr +i command makes the config file unremovable.
Until now, this is correctly working. But it is not very elegant and I wonder if it could break something (like the vpnclient app that tries to modify this config file).
Would anyone have a better idea than mine ?
Thanks for your attention