Retrieve IP address of AirPrint printer
You can use ippfind command that finds services registered with a DNS server or available through local devices. Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands.
ippfind
Then you get local address of printer (Internet Printing Protocol (IPP, RFC 2911)):
ipp://3036B5000000.local:XXX/ipp/print
then ping local address
ping 3036B5000000.local
and here we go
PING 3036B5000000.local (192.168.0.108): 56 data bytes64 bytes from 192.168.0.108: icmp_seq=0 ttl=64 time=262.342 ms64 bytes from 192.168.0.108: icmp_seq=1 ttl=64 time=285.290 ms
our printer has 192.168.0.108