to "redirect" all requests for domain *.home.lan to 10.10.10.1
Now, if I want to redirect the requests of a single subdomain of home.lan, for example nas.home.lan and its related sub sub domains *.nas.home.lan, f.e.:
In other words, dns understands that there is a different ip for the more specific subdomain nas.home.lan, even if it has already an entry for home.lan?
Thanks!!!
ps: the [0] in the dhcp.@dnsmasq[0] to what refer? Should/Might use dhcp.@dnsmasq[1]?
Thanks to both! But now I have a curiosity....
Is it supported also some sort of pattern matching or wildcard? If I just want to route *-test.myDomain.com, I can just use this string in the hostname(s) part? Or this is the forwarding use case?
Wildcards are not supported and the domain name in the address or server options cannot start with a hyphen. In my opinion, what you want to achieve (*-test.myDomain.com) is not possible.