I
I
IpedikI2019-07-18 09:33:52
linux
IpedikI, 2019-07-18 09:33:52

How to give everyone one IP bind?

I use bind9, for all requests I need to transfer traffic to another dns (127.0.0.1:500), but for some, for example *.vk.com, give IP with DNS 1.1.1.1, now this is the scheme:

options {
    directory "/var/cache/bind";
    forwarders { 127.0.0.1 port 500; }; (другой днс)
    allow-query { any; };
    max-cache-ttl 30;
    max-ncache-ttl 30;
    max-zone-ttl 30;
    lame-ttl 30;
    dnssec-enable yes;
};

zone "vk.com" {
    type forward;
  forward only;
    forwarders { 1.1.1.1; };
};

Everything works, but subdomains on vk.com do not work, what is given is given forwarders { 127.0.0.1 port 500; };
How to fix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2019-07-18
@feanor7

In general, forward only works like this, everything must be sent to the forwarder.
Maybe it's cache?

V
Vitaly Karasik, 2019-07-18
@vitaly_il1

I don't have the patience to check it myself right now, but I would try defining 1.1.1.1 as NS for vk.com.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question