straw-hat-team / adr

Architecture Decision Record (ADR)
https://straw-hat-team.github.io/adr/
MIT License
43 stars 5 forks source link

[Proposal] Use .localhost for TLD in local development #35

Open yordis opened 1 year ago

yordis commented 1 year ago

Use .localhost for TLD in local developmen

Context

Bikeshedding about TLD for local development

Resolution

Links

yordis commented 4 months ago

From https://www.reddit.com/r/homelab/comments/vlmzc0/comment/idwa8ct/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Best practice is to get a registered domain and then use a subdomain for AD. You can get some very cheap domain names for something like $8 a year.

The AD domain should then look like:

ad.domain.com or internal.domain.com

Using .local has been discouraged since Server 2003 (with the exception of Small Business Server).

Having a registered domain name guarantees unique names.

.local can interfere with apple services like Bonjour which uses .local on a local subnet without DNS lookup.

I also have read that it can interfere with autodiscovery in AD.

Sure, you can probably get by using .local... But if you want to do it right, .local is a bad idea.