I own a domain (say, example.com
) and wanted to:
- automatically update
ext.example.com
with my public DNS (via a script that will make the update once the ISP-provided IP changes) → this works - redirect the apex domain (
example.com
) toext.example.com
) - use a wildcard
*.example.com
to point toext.example.com
To this I set up the relevant DNS entries as (+ SOA
, NS
)
IN DNAME ext.example.com.
* IN CNAME ext.example.com.
ext 60 IN A 350.299.1.1
When querying ext.example.com
I get a weird answer: a recursive concatenation of ext
ext.example.com. 3508 IN CNAME ext.ext.example.com.
ext.ext.example.com. 3508 IN CNAME ext.ext.ext.example.com.
ext.ext.ext.example.com. 3508 IN CNAME ext.ext.ext.ext.example.com.
(about 20 such lines in total)
It seems that the match is done on *.example.com
(the CNAME
) and not ext.example.com
(the A
record).
Is there a way to force specificity on DNS? (i.e. so that the more specific ext.example.com
is provided, instead of the more general wildcard)