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
?
相关问题
- Find who is hosting a website using PHP
- If current page URL equals X OR X?
- On Linux, Java issues reverse DNS lookups when a s
- SQL LIKE Column Value Plus Wildcard DB2
- How to balance webserver bandwith usage?
相关文章
- 如何通过命令行测试dns反向解析
- How do I enable custom domains for my users?
- Resolving relative paths with wildcards in C#
- performance for searching through 100 million reco
- Wildcard and Fuzzy query together in elastic searc
- Build a DNS Proxy in C
- Universal local network name resolution method wit
- Is localhost not saved anymore in “App Domain”?
While the accepted answer may have solved the author's problem, it is misleading as it suggests that the leading dot would match subdomains only, which is not true.
dnsmasq ignores any leading dots, so that
is equivalent to
or even
As of now (dnsmasq v2.76), there is unfortunately no way to specify some things (
server
,address
,ipset
) forThe only thing you can do, is to specify something for a domain name and all its subdomain and have override it for specific subdomains, e.g.
This single domain name only case, may be tackled with different options, such as
host-record
,srv-record
, which may be sufficient in some cases, but certainly not in all. It won't work for example, if you really need to use theserver
oripset
option for a single domain name only.In the
dnsmasq.conf
file, add the lineBut use the IP you actually want as that end bit