←back to thread

.localhost Domains

(inclouds.space)
301 points todsacerdoti | 1 comments | | HN request time: 0.002s | source
Show context
hardaker ◴[] No.43644486[source]
You might check out .internal instead which was recently approved [1] for local use.

[1]: https://en.wikipedia.org/wiki/.internal

replies(7): >>43644727 #>>43644836 #>>43645467 #>>43645484 #>>43645535 #>>43648046 #>>43656960 #
codetrotter ◴[] No.43644727[source]
In that case I would prefer naming as

  <virtual>.<physical-host>.internal
So for example

  phpbb.mtndew.internal
And I’d probably still add

  phpbb.localhost 
To /etc/hosts on that host like OP does
replies(1): >>43645381 #
1. nodesocket ◴[] No.43645381[source]
I wrote a super basic DNS server in go (mostly fun and go practice) which allows you to specify hosts and ips in a json config file. This eliminates the need for editing your /etc/hosts file. If it matches a host in the json config file it returns that ip, else uses Cloudflare public DNS resolver as a fallback. Please; easy on my go code :-). I am a total beginner with go.

https://github.com/nodesocket/godns