
Thus spake Mark Sapiro:
What do you get on the local machine from
dig txt _dmarc.yahoo.com
[uckelman@one Mailman]$ dig txt _dmarc.yahoo.com
; <<>> DiG 9.9.4-P2-RedHat-9.9.4-12.P2.fc20 <<>> txt _dmarc.yahoo.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2747 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 7
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;_dmarc.yahoo.com. IN TXT
;; ANSWER SECTION: _dmarc.yahoo.com. 1777 IN TXT "v=DMARC1\; p=reject\; sp=none\; pct=100\; rua=mailto:dmarc-yahoo-rua@yahoo-inc.com, mailto:dmarc_y_rua@yahoo.com\;"
;; AUTHORITY SECTION: yahoo.com. 89848 IN NS ns1.yahoo.com. yahoo.com. 89848 IN NS ns2.yahoo.com. yahoo.com. 89848 IN NS ns6.yahoo.com. yahoo.com. 89848 IN NS ns3.yahoo.com. yahoo.com. 89848 IN NS ns4.yahoo.com. yahoo.com. 89848 IN NS ns5.yahoo.com.
;; ADDITIONAL SECTION: ns1.yahoo.com. 521834 IN A 68.180.131.16 ns2.yahoo.com. 521834 IN A 68.142.255.16 ns3.yahoo.com. 521834 IN A 203.84.221.53 ns4.yahoo.com. 521848 IN A 98.138.11.157 ns5.yahoo.com. 521834 IN A 119.160.247.124 ns6.yahoo.com. 3460 IN A 121.101.144.139
;; Query time: 0 msec ;; SERVER: 62.210.16.6#53(62.210.16.6) ;; WHEN: Thu May 29 16:42:14 CEST 2014 ;; MSG SIZE rcvd: 371
If that gives the expected result,
It looks like I got a DMARC record back. Is that the expected result?
what do you get from the following Python
import dns.resolver from dns.exception import DNSException resolver = dns.resolver.Resolver() dmarc_domain = '_dmarc.yahoo.com' resolver.timeout = 3.0 resolver.lifetime = 5.0 txt_recs = resolver.query(dmarc_domain, dns.rdatatype.TXT) for x in txt_recs: print x
The script prints:
"v=DMARC1; p=reject; sp=none; pct=100; rua=mailto:dmarc-yahoo-rua@yahoo-inc.com, mailto:dmarc_y_rua@yahoo.com;"
-- J.