Q: How do I create a TXT record?
I'm trying to figure out how to create a TXT record on OS X Server 4's DNS server. Specifically for the Caching service's multiple public IP address requirements. I'm, of course, using OS X Server's DNS implementation, but see no definitive method for creating TXT records. I see there is a Text field for most record types, but usage is confusing at best. Why would Apple choose not to implement TXT records, when this is a requirement of functionality for other supported services? Not to mention, a good DNS implementation needs to have TXT record support. Achieving this is trivial on Linux/Unix or Windows, but I can't even find reference to the BIND configuration file for Server 4, and it is no longer in the /var/named/ directory.
Also, if anyone can point me to any documentation covering these services in detail, that would also be appreciated.
-- Mike
Mac mini, OS X Server, Yosemite, OS X Server 4.0
Posted on Jan 3, 2015 11:54 AM
Thanks for the reply,
I actually found the "named" directory just before reading this, and was able to edit the respective zone file, like a standard BIND configuration file. I understand that Server.app will create a TXT record using the inheritance of the A record label, when using the Text field of the new A record dialog box. However, this will not suffice if you need to create a TXT record starting with an underscore (_), as is required by Apple's own Caching service, when using different public IPs for clients. Go ahead and try to make a TXT record entry for "_aaplcache._tcp", with the Server.app GUI and let me know how it goes...I'll answer that for you; "Not well, Mike." This could likely function correctly if Apple implemented RFC 2181, in Server.app's GUI. This expands the character set allowed for DNS names, stating that any binary string may be utilized for DNS labels. Luckily, Apple implements BIND correctly, and serves the TXT entry when queried. It also appears to leave the zone file intact when modifying other entries with the GUI. The Server.app GUI does not parse the manually created TXT record however, and thus must be modified and maintained by hand.
-- Mike
Posted on Jan 3, 2015 7:07 PM
