May 14, 2024 16:33
# cat /etc/hosts | grep backendNAS
192.168.0.3
# for x in {4..62} ; do echo "192.168.0.$x backendNAS" >> /etc/roundrobin_nas
# chmod 644 /etc/roundrobin_nas
# cat /etc/dnsmasq.conf | grep addn-hosts
addn-hosts=/etc/roundrobin_nas
# systemctl restart dnsmasq
# nslookup backendNAS
Name: backendNAS
IP: 192.168.1.3
Name: backendNAS
IP: 192.168.1.4
Name: backendNAS
IP: 192.168.1.5
...
Name: backendNAS
IP: 192.168.1.60
Name: backendNAS
IP: 192.168.1.61
Name: backendNAS
IP: 192.168.1.62
unix,
linux,
dns