V
V
Viktor Yanyshev2018-04-12 09:42:10
ubuntu
Viktor Yanyshev, 2018-04-12 09:42:10

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

2 answer(s)
A
Antonio Solo, 2018-04-12
@solotony

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

V
vreitech, 2018-04-12
@fzfx

there is no such way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question