Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wildcard subdomains with dnsmasq

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?

like image 898
danb Avatar asked Mar 10 '14 22:03

danb


People also ask

How do I enable wildcard subdomains?

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.

Can you have a wildcard DNS entry?

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 sub domain?

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.

How do I create a wildcard subdomain AWS?

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.


1 Answers

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

like image 152
EkriirkE Avatar answered Oct 04 '22 01:10

EkriirkE