mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Prevent orphan glue records from being published
When a domain refreshes, always delete all of its subordinate host records and then add glue records for its in-bailiwick nameservers, if the domain is in a publishable status. When a host refreshes, delete its glue record (if any) and then refresh its superordinate domain. The goal is to prevent A/AAAA records for hosts that are not used as in-bailiwick nameservers from being published in the DNS. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=128354008
This commit is contained in:
parent
05ec2ff421
commit
c3e8ff7b21
2 changed files with 11 additions and 8 deletions
|
@ -39,11 +39,12 @@ public interface DnsWriter extends AutoCloseable {
|
|||
void publishDomain(String domainName);
|
||||
|
||||
/**
|
||||
* Loads {@code hostName} from datastore and publishes its A/AAAA glue records to the DNS server.
|
||||
* Replaces existing records for the exact name supplied, with an A or AAAA record (as
|
||||
* appropriate) for each address stored in the registry, for the supplied host name. If the host
|
||||
* is deleted then the existing records are deleted. Assumes that this method will only be called
|
||||
* for in-bailiwick hosts. The registry does not have addresses for other hosts.
|
||||
* Loads {@code hostName} from datastore and publishes its A/AAAA glue records to the DNS server,
|
||||
* if it is used as an in-bailiwick nameserver. Orphaned glue records are prohibited. Replaces
|
||||
* existing records for the exact name supplied, with an A or AAAA record (as appropriate) for
|
||||
* each address stored in the registry, for the supplied host name. If the host is deleted then
|
||||
* the existing records are deleted. Assumes that this method will only be called for in-bailiwick
|
||||
* hosts. The registry does not have addresses for other hosts.
|
||||
*
|
||||
* @param hostName the fully qualified host name, with no trailing dot
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue