I have a Bind Version as shown below
9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6.1.2
I have two Domain Specific Forwarders namely test.example.com and internal-test.example.cloud.com
The Local DNS Client or Resolver who need to resolve certian cname in the DOmain "test.example.com" would be forwarded by my Local DNS Server to the forwarders configured and their responce are cachedalso. Everything works great, no problem. However, my question is the for the Fordwared query, the External DNS Server are replying with a TTL value of 60. So my Internal DNS Server is caching that responce only for 60 Seconds. Is there any means to Override the TTL from my Internal DNS Server ?? for that Specific Domain.
And the /etc/named.conf Looks as following
options {
directory "/var/named";
allow-transfer{"none";};
allow-query {localhost; any;};
dump-file "/var/log/named_dump.db";
max-cache-ttl 300;
};
zone "test.example.com" IN {
type forward;
forwarders {11.1.2.17; 11.1.3.59;};
forward only;
};
zone "internal-test.example.cloud.com" IN {
type forward;
forwarders {11.1.2.17; 11.1.3.59;};
forward only;
};
zone "domain.local" in {
type master;
file "domain.local";
};
[root@dchockal ~]# dig test.example.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6.1.2 <<>> test.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31197
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;test.example.com. IN A
;; ANSWER SECTION:
test.example.com. 60 IN CNAME internal-test.example.cloud.com.
internal-test.example.cloud.com. 60 IN A 121.1.2.22
internal-test.example.cloud.com. 60 IN A 121.1.2.23
internal-test.example.cloud.com. 60 IN A 121.1.4.24
internal-test.example.cloud.com. 60 IN A 121.1.4.25
;; Query time: 133 msec
;; SERVER: 11.4.152.28#53(11.4.152.28)
;; WHEN: Thu Dec 15 15:31:22 2016
;; MSG SIZE rcvd: 175