You may want to edit your printer URIs, replacing hostnames with IPs:
sudoedit /etc/cups/printers.conf
sudo systemctl restart cups.service
Otherwise, continue troubleshooting:
getent hosts Brother
getent hosts Brother%20HL-3170CDW%20series._ipp._tcp.local