Server file errors in system log

I have uploaded a server file called dns2.rtf wit the following format:

192.168.0.1 rutc.lan
192.168.0.139 pi2.lan
192.168.0.117 pi3.lan
192.168.0.241 pi5.lan
...

in the system log I am getting the following errors:

763 Wed Apr 30 20:38:29 2025 daemon.err dnsmasq[4402]: bad option at line 1 of /etc/vuci-uploads/cbid.dhcp.general.serversfiledns2.rtf
764 Wed Apr 30 20:38:29 2025 daemon.err dnsmasq[4402]: bad option at line 2 of /etc/vuci-uploads/cbid.dhcp.general.serversfiledns2.rtf
765 Wed Apr 30 20:38:29 2025 daemon.err dnsmasq[4402]: bad option at line 3 of /etc/vuci-uploads/cbid.dhcp.general.serversfiledns2.rtf
766 Wed Apr 30 20:38:29 2025 daemon.err dnsmasq[4402]: bad option at line 4 of /etc/vuci-uploads/cbid.dhcp.general.serversfiledns2.rtf

Hello,

To clarify a few points, could you please confirm where exactly you uploaded the dns2.rtf file?

For dnsmasq to properly read a custom hosts-style file like yours (with IP hostname pairs), it should either:

  • Be referenced in the /etc/dnsmasq.conf file using the line:
addn-hosts=/path/to/your/hosts/file

Or

  • Be added via the WebUI under Network → DNS → General Settings page, Advanced Settings tab** in the Additional servers file field.

Also, try specifying the DNS servers file in plain text format without any rich text formatting (RTF).

Best regards,

Hello,

I uploaded it using the web UI and tried a plain text format too but it was still not working properly for me.

It now works but I abandoned the file option and added all my domains manually via the UI