We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62f8e06 commit 08686a7Copy full SHA for 08686a7
src/aleph/sdk/domain.py
@@ -38,6 +38,19 @@ async def get_dnslink(self, url: str):
38
if query is not None and len(query) > 0:
39
return query[0].text
40
41
+ async def get_txt_values(self, url: str, delimiter: Optional[str] = None):
42
+ domain = self.url_to_domain(url)
43
+ res = await alephdns.query(domain, "TXT")
44
+ values = []
45
+ if res is not None:
46
+ for _res in res:
47
+ if hasattr(_res, "text") and _res.text.startswith("0x"):
48
+ if delimiter is not None and delimiter in _res.text:
49
+ values = values + _res.text.split(delimiter)
50
+ else:
51
+ values.append(_res.text)
52
+ return values
53
+
54
async def check_domain_configured(self, domain, target, owner):
55
try:
56
print("Check...", target)
0 commit comments