Answer the question
In order to leave comments, you need to log in
DNS Bind, forwarers { ... } through proxy
Hello.
I am learning to deploy DNS on the network. I understand how Bind works, but previously I always configured it with direct access to the Network, which allowed me to specify in the forwaders section { 8.8.8.8; 8.8.4.4; }; and requests for external resources went to the Google servers. Now in the test environment, a proxy on Squid (Debian, Squid version 3.1.20) has appeared, which is minimally configured to proxy requests from the internal network without authorization.
Configs in a minimal state, just to make it work:
directory "/var/cache/bind";
forwarders {
8.8.8.8; 8.8.4.4;
};
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on port 53 { 127.0.0.1; 10.1.1.3; };
disable-empty-zone yes;
zone "agc.com" {
type master;
file "db-agc.com";
journal "/var/cache/bind/db-agc.com.jnl";
allow-update {key rndc-key;};
};
zone "1.1.10.in-addr.arpa" {
type master;
file "db-1.1.10";
journal "/var/cache/bind/db-1.1.10.jnl";
allow-update { key rndc-key; };
};
Answer the question
In order to leave comments, you need to log in
Change the contents of resolv.conf on the server with Squid to:
domain agc.com
search agc.com
nameserver 10.1.1.3
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question