This is an old thread I know but wondering if this info is still true and a valid method of doing a mass import of new entries specifically for DNS entries /etc/hosts.
I attempted the the steps @Nas wrote…
so if you need to add 30 hosts make file /etc/ethers
cat /etc/ethers
see man ethers for syntax
00:16:3e:00:00:01 kvm1 10.1.1.150
00:16:3e:00:00:02 kvm2 10.1.1.200
and make custom template for dnsmasq.conf file
mkdir -p /etc/e-smith/templates-custom/etc/dnsmasq.conf
cp /etc/e-smith/templates/etc/dnsmasq.conf/30dhcp /etc/e-smith/templates-custom/etc/dnsmasq.conf/30dhcp
vi /etc/e-smith/templates-custom/etc/dnsmasq.conf/30dhcp
and add at the and of file
read-ethers
and run
signal-event nethserver-dnsmasq-update
But I never see any new entries make it into /etc/hosts. Pinging devices included in /etc/ethers after doing the aobe by hostname also does not translate.
There has to a be working method to do am ass import of entries into /etc/hosts and play nice with the programming side of this setup. Manually adding hundreds of new entries into DNS from the GUI is out of the question.
Any help is greatly appreciated.