A macOS waring dialog showing this text:
This computer's local hostname
"dair.local" is already in use on this network. The name has been changed to "dair-2.local".
To change the local hostname, open System Settings, go to General > Sharing, then click "Edit" and type the name in the "Local hostname" field.
OK