4 ms·
For my development needs, I try to either: * Publish mDNS records to give myself extra `.local` names, or * Get a wildcard published in the organisation's inte
by andrewaylett 9y ago
For my development needs, I try to either:
* Publish mDNS records to give myself extra `.local` names, or
* Get a wildcard published in the organisation's internal DNS
If you can't do either of those, _please_ use `.test` as your test TLD, as it's explicitly set aside for that purpose so you know you're never going to collide with anyone.
https://tools.ietf.org/html/rfc2606#page-2 https://tools.ietf.org/html/rfc2606#page-2
- the_mitsuhiko 9y agoI would recommend against funky things on .local. It’s not a great idea either. I recommend just using a subdomain on a TLD you control.
- jwilk 9y agoWhat's funky about .local? It's an officially-registered special-use domain: https://tools.ietf.org/html/rfc6762 https://tools.ietf.org/html/rfc6762
- okket 9y agoThe .local TLD is reserved for mDNS requests, as the RFC states?
- the_mitsuhiko 9y agoFor the purpose of that RFC you linked.
- X-Istence 9y agoIf you use mDNS to publish things into .local then you are using it for what it was designed for. I wrote such a tool: https://github.com/bertjwregeer/mdns-announce https://github.com/bertjwregeer/mdns-announce It allows you to easily announce CNAME's in mDNS to do the sort of dev testing locally that requires alternate domains, without the possibility of leaking them outside of your own local network.
- X-Istence 9y agoI wrote a tool that does exactly this a while back: https://github.com/bertjwregeer/mdns-announce https://github.com/bertjwregeer/mdns-announce It publishes CNAME records into mDNS for adding additional "hostnames".
- andrewaylett 9y agoThanks for sharing, that looks really useful. I've hacked together an Apache module that tries to announce local hostnames for vhosts, but while it's good enough for me it's never been quite good enough for me to share.