Ask HN: Local hostnames without root/admin
21–30 of 35 posts
Re: Ask HN: Local hostnames without root/admin
#221. Buy domain for your service 2. Make wildcard record to point to 127.0.0.1 3. User can apply any.thing.here.yourcompanyinternal.xxx
_Someone_ must have already done this, right?
This domain is used by https://lando.dev/ which is a docker/docker-compose wrapper for local development.
Re: Ask HN: Local hostnames without root/admin
#23Re: Ask HN: Local hostnames without root/admin
#24Re: Ask HN: Local hostnames without root/admin
#25You are probably running a resolver on the LAN already, in your router. Now you just have to login and add an entry.
Re: Ask HN: Local hostnames without root/admin
#26It would help if you could expand on this. Is this a "don't want devs to need to mess with their boxes" thing, or a "we're doing shadow IT and can't run things the normal way" thing, or something else?
> Running a resolver locally, or within the LAN, falls outside the realm of "simple".
No, it really doesn't. A DNS server can be a single file binary pointed at a simple text file, optionally pointed directly at a hosts-format file. I suggest coredns personally but there are other options.
Re: Ask HN: Local hostnames without root/admin
#27Like you want to be able to update it without su or that you cant access it at all?
Like you could have a cron running as root that updates etc/hosts every minute based on a userspace text document if you felt like it. It would be incredibly bad practice but I dont get the impression that this is a concern.
>Running a resolver locally, or within the LAN, falls outside the realm of "simple".
Running your own DNS server isnt simple? The standard Microsoft DHCP/DNS process is to take DHCP leases and turn them into DNS entries.
Part of the reason a lot of answers are going to challenge your simple requirements, is that theres a great deal of malware that would love to do what you want to do, and these systems are largely hardened to prevent it.
If this is for an application you want to deploy, I believe "Simple" for userspace, is quite complex to overcome all the things trying to prevent exactly this. My gut feeling is that this desire will evolve into a docker container with a DNS resolver, and just present some kind of interface for adding records. Then just pipe all your DNS requests through the container.
Re: Ask HN: Local hostnames without root/admin
#28Re: Ask HN: Local hostnames without root/admin
#291. Buy domain for your service 2. Make wildcard record to point to 127.0.0.1 3. User can apply any.thing.here.yourcompanyinternal.xxx
_Someone_ must have already done this, right?
Look they are requesting owa.mydomain Why don't I replace it with internet accessible phishing for outlook page ? Why it's bad idea