Answer the question
In order to leave comments, you need to log in
What is the way to specify in hosts that all subdomains should address a specific ip?
There is a site that periodically creates subdomains for cities, and each time you have to register in hosts 127.0.0.1 city.domain.com city2.domin.com I tried
.domain.com and *.domain.com. But without success.
Answer the question
In order to leave comments, you need to log in
if you have a real domain, write a normal dns for it (if there is no hosting, then at the registrar or on Yandex) and set up an A-record there
@ IN A 127.0.0.1
* IN A 127.0.0.1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question