Skip to content

Instantly share code, notes, and snippets.

@ctborg
Last active January 18, 2022 09:00
Show Gist options
  • Save ctborg/50e89a2deb5693b502c8a2c27246b3c1 to your computer and use it in GitHub Desktop.
Save ctborg/50e89a2deb5693b502c8a2c27246b3c1 to your computer and use it in GitHub Desktop.
Enable Airprint for any printer on MacOs (BigSur)
  1. Connect printer, install printer drivers, and enable Printer Sharing.
  2. Open terminal, run: dns-sd -Z _ipp._tcp. You'll see a few lines of repeated text. Look for your printer's name, next to that record you will see a TXT, copy everything after TXT into a notepad.
  3. In that TXT line, you'll see a line like this: "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster" Change that, to add ,image/urf. So it'll look like: "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf"
  4. Now take that entire TXT line, and add it to this: dns-sd -R "name_to_be advertised" _ipp._tcp.,_universal . 631 URF=none pdl=application/pdf,image/urf YOUR_TXT_STRING
  5. Run that line in the terminal, and Airprint should be enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment