I have a device that is already mapped to domain.tld
. I now want to create a wildcard for all subdomains *.domain.tld
so that they are mapped to the ip of domain.tld
, too. How do I do this with dnsmasq
?
To enable the wildcard subdomain, go to your Site Tools > Domain > Subdomains. The wildcard subdomain is the one with an * in front of the domain. You can enable it from the Manage Subdomains > Actions menu.
A wildcard DNS record is a record that answers DNS requests for any subdomain you haven't already defined. You can create wildcard A records and CNAME records by entering an asterisk (*) in the Host field when creating a DNS record. For example, if you create the wildcard A record *.
What is a wildcard subdomain? A wildcard DNS record allows you to point all existing and non-existing subdomains to a specific area. For example, www.example.com and test.example.com would both direct to www.example.com when a wildcard subdomain is enabled.
Creating wild card subdomain is just the same as creating any other records. Give the wild card domain name, select the record type you want and enter host name/IP or CNAME of load balancer. Route 53 allows us to create wildcard subdomains for any record type.
In the dnsmasq.conf
file, add the line
address=/.domain.tld/192.168.0.1
But use the IP you actually want as that end bit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With