A
A
Arthur2015-09-04 19:55:52
Domain Name System
Arthur, 2015-09-04 19:55:52

How to redirect all requests to one address?

Hello.
There is a server on Bind. How to change all addresses? X(
That is, a person has the address of my DNS server, he enters the browser and writes ya.ru. The request goes to my server, and my server gives him the IP not of Yandex, but mine. And so you need to do so that as whatever site the user visits, only this page is given to him.I
hope I explained correctly :(. Thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2015-09-04
@deleted-fromStark

yum install bind
in a fresh install do the following edits:
[[email protected] ~]# cat /var/named/named.ca
$TTL 60
@ IN SOA @ hostmaster (
0 ; serial
60 ; refresh
5 ; retry
60 ; expire
60 ) ; minimum
NS @
A IP address of the server
* A IP address of the server
and be sure to write here all those zones that must be resolved correctly as slave
or forward
well, that's all. Now all domains known to the server will be resolved through slave or forward records, and unknown ones will go to named.ca, where NS root domains are registered in normal mode, and now the address you specified will be given to any record

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question