K
K
Kirill Petrov2014-08-26 07:20:02
Domain Name System
Kirill Petrov, 2014-08-26 07:20:02

How to configure BIND to send all sites to the same server, except for certain ones?

There is a bind config

zone "." {
   type master;
   file "/etc/bind/alow.";
};

$TTL 3600
@ IN SOA ns1.host.com. admin.host.com. (
       2014042101; Serial
       21600; Refresh
       3600; Retry
       604800; Expire
       86400 ); Negative Cache TTL
   IN NS ns1.host.com.
   IN NS ns2.host.com.
*   IN A 192.168.1.1

It sends all requests to one server. How to modify it to send all requests to one server, except
for
certain
sites
. com 192.168.1.5

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Petrov, 2014-08-26
@dandyvssega

Solution found

$TTL 3600
@ IN SOA ns1.host.com. admin.host.com. (
       2014042101; Serial
       21600; Refresh
       3600; Retry
       604800; Expire
       86400 ); Negative Cache TTL
   IN NS ns1.host.com.
   IN NS ns2.host.com.
site.ru IN A 123.321.123.123
*   IN A 111.111.111.111

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question