Setting up Mobility Print DNS with macOS Server DNS
Last modified on 10 August 2020 12:47 PM
macOS Server support:
It’s worth noting that Apple has announced that DNS is amongst the services being deprecated from macOS Server, in Spring 2018. Take a look at this article from Apple for more information: https://support.apple.com/en-us/HT208312
Also - if you’re looking for great advice on setting up BIND in general, head over to the A better BIND Mobility record setup, a better you! article.
Actually yes! Under the hood, a MacOS Server uses BIND for its DNS service. To illustrate this point, on your macOS server, take a look in /Library/Server/named/ - and you’ll see several files relating to the zones that you’ve set up in the DNS service, through the server app.
However, there are several things that you should know before beginning:
Setting up the Zone file:
In the zone file for the domain you’re interested in (for example, I’m using timtest.com as my test domain - so I would then edit the file /Library/Server/named/db.timtest.com), paste in the following PTR records at the end of the file:
Note the extra ‘.’ after the pc-printer-discovery entry. Also note that the other pc-printer-discovery and print-server-host records are not needed here.
For example, below you can see the zone file for timtest.com:
Setting up the named.conf file:
Next, in the same directory, edit your named.conf file to contain an extra zone entry at the end of the file (before the final closing “}” ):
Where x.x.x.x is the IP address of your Mobility Server (note that you cannot run Mobility Print on the same server as your DNS service).
For example below you can see the pc-printer-discovery entry, and 10.1.9.83 is the address of the Mobility Server:
Make the changes live:
Make sure the changes are saved to both files and then restart your DNS service (e.g. toggle the Service ‘ON’ button in newer versions of the macOS Server app).
For example below the DNS server address is 10.1.8.78:
From a test workstation, you should then be able to check the discovery of printers, through the pc-printer-discovery URLs on the Troubleshooting Mobility Print page under the ‘Check the configuration from a particular subnet or device type’ section.
Note that the testing above was done with a Mac running macOS High Sierra 10.13.3, and with Server App version 5.5.
For more information about Mobility Print, check out the Mobility Print Help Center.