Add RDAP warning when domain searches by nameserver may be incomplete

When searching for domains by nameserver name or IP address, we fetch the matching nameserver keys, then search for domains by those keys. We limit the number of nameserver keys returned, to avoid arbitrarily large domain queries. This CL adds a warning to the RDAP response if we retrieved the maximum number of nameservers. This may indicate that we have not found all the domains.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168885124
This commit is contained in:
mountford 2017-09-15 14:04:18 -07:00 committed by jianglai
parent 7dc1940cdb
commit 1bb655267c
7 changed files with 266 additions and 43 deletions

View file

@ -0,0 +1,129 @@
{
"domainSearchResults":[
{
"ldhName":"domain1.lol",
"status":[
"client delete prohibited",
"client renew prohibited",
"client transfer prohibited",
"server update prohibited"
],
"remarks":[
{
"title":"Incomplete Data",
"type":"object truncated due to unexplainable reasons",
"description":[
"Summary data only. For complete data, send a specific query for the object."
]
}
],
"handle":"13C5-LOL",
"links":[
{
"value":"https://example.com/rdap/domain/domain1.lol",
"type":"application/rdap+json",
"rel":"self",
"href":"https://example.com/rdap/domain/domain1.lol"
}
],
"objectClassName":"domain"
},
{
"ldhName":"domain2.lol",
"status":[
"client delete prohibited",
"client renew prohibited",
"client transfer prohibited",
"server update prohibited"
],
"remarks":[
{
"title":"Incomplete Data",
"type":"object truncated due to unexplainable reasons",
"description":[
"Summary data only. For complete data, send a specific query for the object."
]
}
],
"handle":"13C6-LOL",
"links":[
{
"value":"https://example.com/rdap/domain/domain2.lol",
"type":"application/rdap+json",
"rel":"self",
"href":"https://example.com/rdap/domain/domain2.lol"
}
],
"objectClassName":"domain"
}
],
"remarks":[
{
"description":[
"This response conforms to the RDAP Operational Profile for gTLD Registries and Registrars version 1.0"
]
},
{
"title":"EPP Status Codes",
"description":[
"For more information on domain status codes, please visit https://icann.org/epp"
],
"links":[
{
"value":"https://icann.org/epp",
"type":"text/html",
"rel":"alternate",
"href":"https://icann.org/epp"
}
]
},
{
"description":[
"URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf"
],
"links":[
{
"value":"https://www.icann.org/wicf",
"type":"text/html",
"rel":"alternate",
"href":"https://www.icann.org/wicf"
}
]
}
],
"rdapConformance":[
"rdap_level_0"
],
"notices":[
{
"title":"Search Policy",
"type":"result set truncated due to unexplainable reasons",
"description":[
"Search results may contain incomplete information due to first-stage query limits."
]
},
{
"title":"RDAP Terms of Service",
"description":[
"By querying our Domain Database, you are agreeing to comply with these terms so please read them carefully.",
"Any information provided is 'as is' without any guarantee of accuracy.",
"Please do not misuse the Domain Database. It is intended solely for query-based access.",
"Don't use the Domain Database to allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations.",
"Don't access our Domain Database through the use of high volume, automated electronic processes that send queries or data to the systems of any ICANN-accredited registrar.",
"You may only use the information contained in the Domain Database for lawful purposes.",
"Do not compile, repackage, disseminate, or otherwise use the information contained in the Domain Database in its entirety, or in any substantial portion, without our prior written permission.",
"We may retain certain details about queries to our Domain Database for the purposes of detecting and preventing misuse.",
"We reserve the right to restrict or deny your access to the database if we suspect that you have failed to comply with these terms.",
"We reserve the right to modify this agreement at any time."
],
"links":[
{
"value":"https://example.com/rdap/help/tos",
"type":"text/html",
"rel":"alternate",
"href":"https://www.registry.tld/about/rdap/tos.html"
}
]
}
]
}