Name servers not serving TXT records

April 26, 2017 268 views
DNS

Hi,

I have created a number of TXT records for my domain on the Digital Ocean name servers:
TXT awesage.com returns "v=spf1 +a +mx +ip4:107.170.5.217 ~all" 3600

However when I query directly against the DO name servers my TXT records are not being returned:

dig awesage.com TXT @ns1.digitalocean.com

; <<>> DiG 9.10.3-P4-Ubuntu <<>> awesage.com TXT @ns1.digitalocean.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 60734
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;awesage.com. IN TXT

;; Query time: 154 msec
;; SERVER: 173.245.58.51#53(173.245.58.51)
;; WHEN: Wed Apr 26 20:22:24 AEST 2017
;; MSG SIZE rcvd: 40

Other records created such as A and CNAME are being returned correctly. As I am querying DO name servers directly propagation delay should not be an issue. Why aren't my TXT records being served? Any help to resolve this issue would be appreciated.

3 Answers

@tractionmusic

Are the TXT records showing up for your domain through the DigitalOcean Control Panel under the Networking -> Domains page?

When querying your domain for A and CNAME, I can confirm they do show up, though I'm not seeing TXT records on my end either.

Hi @tractionmusic

It says status: SERVFAIL, so something goes wrong. Try modifying the record to:

v=spf1 a ~all

I have removed the + signs, since I've never seen them used. And just have a, since the mx and ip4 are the same address.

Thanks for the replies. I had a malformed DKIM record along with my SPF record. The malformed record prevented any TXT records being returned, not just the malformed one. Deleting this resolved the issue.

Have another answer? Share your knowledge.