You can use the .local, .localhost, .example, and .test TLDs for local domains -- these are IANA reserved: https://www.iana.org/assignments/special-use-domain-names/sp...
As of now, but something about IPv6 also forced Microsoft to implement this, and some Linux distros also does this in CUPS (I know it's Apple...)