Closed unusualevent closed 1 year ago
exposing the current value as part of a failed output would be great.
Isn't the module already doing that?
maybe registering a DNS output via this module is a better feature request...
How about having another module (or plugin) that looks up the TXT values?
if it does grab the failed output, I'd love an example. I can't find it.
The benefit of this module doing it is I can see if there's weird differences in quoting / how your version of dnspython interprets records when checking for equality or looking up records.
Check out the failed test in CI (https://github.com/ansible-collections/community.dns/actions/runs/4002923994/jobs/6870582539#step:3:1334):
fatal: [localhost]: FAILED! => {"changed": false, "completed": 0, "msg": "Timeout (0 out of 1 check(s) passed).", "records": [{"check_count": 1, "done": false, "name": "github.com", "values": {"dns1.p08.nsone.net.": ["MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805", "MS=ms44452932", "MS=ms58704441", "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b", "apple-domain-verification=RyQhdzTl6Z6x8ZP4", "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8", "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd", "facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50", "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o", "krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE", "loom-site-verification=f3787154f1154b7880e720a511ea664d", "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f", "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"], "dns2.p08.nsone.net.": ["MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805", "MS=ms44452932", "MS=ms58704441", "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b", "apple-domain-verification=RyQhdzTl6Z6x8ZP4", "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8", "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd", "facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50", "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o", "krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE", "loom-site-verification=f3787154f1154b7880e720a511ea664d", "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f", "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"], "dns3.p08.nsone.net.": ["MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805", "MS=ms44452932", "MS=ms58704441", "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b", "apple-domain-verification=RyQhdzTl6Z6x8ZP4", "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8", "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd", "facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50", "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o", "krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE", "loom-site-verification=f3787154f1154b7880e720a511ea664d", "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f", "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"], "dns4.p08.nsone.net.": ["MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805", "MS=ms44452932", "MS=ms58704441", "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b", "apple-domain-verification=RyQhdzTl6Z6x8ZP4", "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8", "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd", "facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50", "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o", "krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE", "loom-site-verification=f3787154f1154b7880e720a511ea664d", "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f", "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"], "ns-1283.awsdns-32.org.": ["MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805", "MS=ms44452932", "MS=ms58704441", "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b", "apple-domain-verification=RyQhdzTl6Z6x8ZP4", "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8", "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd", "facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50", "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o", "krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE", "loom-site-verification=f3787154f1154b7880e720a511ea664d", "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f", "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"], "ns-1707.awsdns-21.co.uk.": ["MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805", "MS=ms44452932", "MS=ms58704441", "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b", "apple-domain-verification=RyQhdzTl6Z6x8ZP4", "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8", "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd", "facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50", "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o", "krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE", "loom-site-verification=f3787154f1154b7880e720a511ea664d", "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f", "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"], "ns-421.awsdns-52.com.": ["MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805", "MS=ms44452932", "MS=ms58704441", "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b", "apple-domain-verification=RyQhdzTl6Z6x8ZP4", "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8", "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd", "facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50", "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o", "krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE", "loom-site-verification=f3787154f1154b7880e720a511ea664d", "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f", "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"], "ns-520.awsdns-01.net.": ["MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805", "MS=ms44452932", "MS=ms58704441", "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b", "apple-domain-verification=RyQhdzTl6Z6x8ZP4", "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8", "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd", "facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50", "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o", "krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE", "loom-site-verification=f3787154f1154b7880e720a511ea664d", "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f", "v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"]}}]}
The JSON part formatted in readable:
{
"changed": false,
"completed": 0,
"msg": "Timeout (0 out of 1 check(s) passed).",
"records": [
{
"check_count": 1,
"done": false,
"name": "github.com",
"values": {
"dns1.p08.nsone.net.": [
"MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
"MS=ms44452932",
"MS=ms58704441",
"adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
"apple-domain-verification=RyQhdzTl6Z6x8ZP4",
"atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
"facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50",
"google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
"krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE",
"loom-site-verification=f3787154f1154b7880e720a511ea664d",
"stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"
],
"dns2.p08.nsone.net.": [
"MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
"MS=ms44452932",
"MS=ms58704441",
"adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
"apple-domain-verification=RyQhdzTl6Z6x8ZP4",
"atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
"facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50",
"google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
"krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE",
"loom-site-verification=f3787154f1154b7880e720a511ea664d",
"stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"
],
"dns3.p08.nsone.net.": [
"MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
"MS=ms44452932",
"MS=ms58704441",
"adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
"apple-domain-verification=RyQhdzTl6Z6x8ZP4",
"atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
"facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50",
"google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
"krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE",
"loom-site-verification=f3787154f1154b7880e720a511ea664d",
"stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"
],
"dns4.p08.nsone.net.": [
"MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
"MS=ms44452932",
"MS=ms58704441",
"adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
"apple-domain-verification=RyQhdzTl6Z6x8ZP4",
"atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
"facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50",
"google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
"krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE",
"loom-site-verification=f3787154f1154b7880e720a511ea664d",
"stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"
],
"ns-1283.awsdns-32.org.": [
"MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
"MS=ms44452932",
"MS=ms58704441",
"adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
"apple-domain-verification=RyQhdzTl6Z6x8ZP4",
"atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
"facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50",
"google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
"krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE",
"loom-site-verification=f3787154f1154b7880e720a511ea664d",
"stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"
],
"ns-1707.awsdns-21.co.uk.": [
"MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
"MS=ms44452932",
"MS=ms58704441",
"adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
"apple-domain-verification=RyQhdzTl6Z6x8ZP4",
"atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
"facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50",
"google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
"krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE",
"loom-site-verification=f3787154f1154b7880e720a511ea664d",
"stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"
],
"ns-421.awsdns-52.com.": [
"MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
"MS=ms44452932",
"MS=ms58704441",
"adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
"apple-domain-verification=RyQhdzTl6Z6x8ZP4",
"atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
"facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50",
"google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
"krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE",
"loom-site-verification=f3787154f1154b7880e720a511ea664d",
"stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"
],
"ns-520.awsdns-01.net.": [
"MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
"MS=ms44452932",
"MS=ms58704441",
"adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
"apple-domain-verification=RyQhdzTl6Z6x8ZP4",
"atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
"facebook-domain-verification=39xu4jzl7roi7x0n93ldkxjiaarx50",
"google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
"krisp-domain-verification=ZlyiK7XLhnaoUQb2hpak1PLY7dFkl1WE",
"loom-site-verification=f3787154f1154b7880e720a511ea664d",
"stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
"v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all"
]
}
}
]
}
nice, how do I get it to throw that?
Simply pass values that cannot be validated correctly, then it will fail after all timeouts. If you set the timeouts correspodingly, you get these values.
With the next release (latest in two weeks, maybe earlier) you will also be able to use a new module (https://ansible-collections.github.io/community.dns/branch/main/nameserver_record_info_module.html#ansible-collections-community-dns-nameserver-record-info-module) to retrieve that information.
(Sorry for the late reply, I started working on this in January in #133 and then got side-tracked, and simply forgot to write here...)
There is now a module nameserver_record_info in the latest released version. There are also two lookups (lookup and lookup_as_dict) which can be helpful as well.
SUMMARY
It would be useful to see how dnspython's interpretation of a DNS record does or doesn't match (e.g., quoting) - to know why the record isn't matched.
exposing the current value as part of a failed output would be great.
ISSUE TYPE
COMPONENT NAME
community.dns.wait_for_txt
ADDITIONAL INFORMATION
debugging what the ansible resolver config's lookup received would be useful...
similar to printing failed lookups, this'd print unequal lookups. or at least register them to an output / error.
maybe registering a DNS output via this module is a better feature request...