R
R
Rafail Dunyashev2016-11-01 15:31:20
Domain Name System
Rafail Dunyashev, 2016-11-01 15:31:20

How to set up a redirect to another domain if the domain is not found in BIND DNS?

The user makes a page request. The BIND server determines that the requested page does not exist and redirects the user.
In the named.conf file, zones are usually written something like this:

zone "name.domain.ru" in {
               type master;
               file "/var/named/name.domain.ru";
};

and the file name.domain.ru contains (including) the address:
name.domain.ru. IN A 222.222.222.222
Can it be configured like this?
name.domain.ru. IN A name1.domain.ru.
So?
* IN A name1.domain.ru.
or so?
* IN A 222.222.222.222

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question