Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default zones will have an empty forwarders {} list.
1) Add default zone config (A records) with empty forwarders list {}. This results in contrail-named daemon delegating the subzone using NS records configured. Adding forwarders list under zone ensure the rule applied for a zone. Previously as the forwarders list was under view level, for any records not in local-cache within the zone, resulted in queries being forwarded. 2) Add RR zones (PTR records) with an empty forwarders list. This will result in DNS not trying to resolve the PTR records when RR is disabled. 3) When dns forwarder is configured, this will apply at view level and zone level will not be empty anymore. 4) When dns forwarder is configures, zone level will be empty only if RR is diabled for PTR records. view "default-domain-vdns-1" { rrset-order {order random;}; virtual-forwarder "default-domain-vdns-2"; zone "1.1.21.in-addr.arpa." IN { type master; file "/etc/contrail/dns/default-domain-vdns-1.1.1.21.in-addr.arpa.zone"; allow-update {127.0.0.1;}; }; zone "new.net" IN { type master; file "/etc/contrail/dns/default-domain-vdns-1.new.net.zone"; allow-update {127.0.0.1;}; }; }; view "default-domain-vdns-2" { rrset-order {order random;}; forwarders {8.8.8.8; 10.84.5.100; 172.21.200.60; 172.29.131.60; }; zone "1.1.31.in-addr.arpa." IN { type master; file "/etc/contrail/dns/default-domain-vdns-2.1.1.31.in-addr.arpa.zone"; allow-update {127.0.0.1;}; forwarders { }; }; zone "4.4.4.in-addr.arpa." IN { type master; file "/etc/contrail/dns/default-domain-vdns-2.4.4.4.in-addr.arpa.zone"; allow-update {127.0.0.1;}; forwarders { }; }; zone "new.net" IN { type master; file "/etc/contrail/dns/default-domain-vdns-2.new.net.zone"; allow-update {127.0.0.1;}; forwarders { }; }; }; view "default-domain-vdns-ns-record" { rrset-order {order random;}; forwarders {8.8.8.8; 10.84.5.100; 172.21.200.60; 172.29.131.60; }; zone "2.2.2.in-addr.arpa." IN { type master; file "/etc/contrail/dns/default-domain-vdns-ns-record.2.2.2.in-addr.arpa.zone"; allow-update {127.0.0.1;}; forwarders { }; }; zone "6.6.6.in-addr.arpa." IN { type master; file "/etc/contrail/dns/default-domain-vdns-ns-record.6.6.6.in-addr.arpa.zone"; allow-update {127.0.0.1;}; forwarders { }; }; zone "abc.net" IN { type master; file "/etc/contrail/dns/default-domain-vdns-ns-record.abc.net.zone"; allow-update {127.0.0.1;}; forwarders { }; }; }; Change-Id: I3a573c771d09a247a0627fab3734af7f176f66ff Closes-Bug:1547236 Closes-Bug:1542516
- Loading branch information
Showing
6 changed files
with
385 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.