0

How would I add a TXT record to a DNS zone in OS X Server.app? There's an option for adding a Service Record that happens to have a Text field, but there's also a required Service Type field that I'm not sure what to do with.

I'm just looking to add a simple TXT record. Any help would be appreciated. Thanks!

1
  • Supposedly the comment for an A record gets turned into a TXT, but I've not got any personal experience trying it out.
    – ceejayoz
    Apr 27, 2013 at 22:38

1 Answer 1

1

OS X Server (at least 10.8, I haven't looked at 10.7) doesn't seem to have a way to create a TXT record that's not accompanied by an A record. To create A and TXT records for the same domain name, make sure the DNS pane is in "Show All Records" mode (use the "action"/gear pop-up menu to switch it), then choose add (plus sign) pop-up menu > Add Machine Record, and fill in the Host Name, IP Addresses (A), and Text (TXT) fields appropriately. Unfortunately, it won't let you save the entry if you fill in the Text field but leave the address blank.

I was able to get it to serve a bare TXT record by adding an A+TXT "machine" record, then editing the zone file (/var/named/db.zonename) to remove the A record. This seemed to work, and it didn't even get overwritten when I edited the zone in Server.app, but I wouldn't trust this in production... Also, my attempt to simply add a TXT entry to the zone file manually caused servermgrd (the daemon that Server.app talks to go get/set server settings) to crash repeatedly. If you do any manual messing with the zone files, I recommend backing up /var/named first.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .