Hello, another not-so-easy and not-so-important question.
I have several hosts in my LAN that have multiple aliases, mostly set in the router /etc/hosts file. The /etc/ethers file is also used to assign the canonical name to hosts that I keep on DHCP without a static IP address, then aliases are found in /etc/hosts.
Excerpt from /etc/ethers (made-up MAC-addr):
## /etc/ethers
00:01:02:03:05:05 mybox-canonical
Let us assume dnsmasq is configured to serve 192.168.1.10 to the above host.
Excerpt from /etc/hosts:
## /etc/hosts
192.168.1.10 mybox-canonical mybox ftp www
Is it possible to configure dnsmasq so that it will use all locally known aliases to create and report cname records? Ideally, I would like nslookup on Windows to do the right thing too, and reply along the lines of:
win:c> nslookup mybox.lan
Server: router.lan
Address: 192.168.1.254
Name: mybox.lan
Address: 192.168.1.10
Also known as:
mybox-canonical.lan
ftp.lan
www.lan
win:c>
Or something like that. Not sure nslookup on Windows is able to do that, but at least the stock nslookup on linux should?
I do have a working dig on my ubuntu box, so I can check if my new config is working. Well, if I knew how to use dig, that is. What would be an appropriate query to check all aliases for mybox.lan on DNS server router.lan?