I have a Jekyll blog, that I serve locally (i.e. bundle exec jekyll serve at 127.0.0.1:4000/)
I want to use a custom URL that is available locally (in the computers of my LAN). For example thisisatest.yesitis. If I add to my _config.yml file host: thisisatest.yesitis then when running bundle exec jekyll serve I get a jekyll 3.4.3 | Error: getaddrinfo: No such host is known.
What am I missing? I know I could use github to host if I wanted to have the blog available publicly, but I just want to serve it to computers in my LAN. Can't I just make up an URL that only exists locally?
How can computers in my network connect to my blog if in each of their hosts file it points to their own localhost/127.0.0.1, which is not hosting anything (as opposed to the localhost of my computer). Thanks
– jlo Apr 11 '17 at 12:46/etc/hostsfile maps hostnames to IP addresses in local way. DNS servers do the same thing in a global way. You cannot point anything to DNS in that file. If you don't have a DNS server in your LAN, you need to register a domain and add the A record for the hostname there. – Tero Kilkanen Apr 11 '17 at 23:28