Skip to content

Instantly share code, notes, and snippets.

@elia
Forked from ctborg/airprint.md
Created January 18, 2022 09:00
Show Gist options
  • Save elia/b752b414d449d7541102fe2d095f2e31 to your computer and use it in GitHub Desktop.
Save elia/b752b414d449d7541102fe2d095f2e31 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