victorious-account-76850
02/16/2021, 4:10 PMaverage-branch-45579
02/16/2021, 4:11 PMfamous-receptionist-34959
02/16/2021, 4:24 PMcolossal-hair-13755
02/16/2021, 4:55 PMdns=dnsmasq
• Add the local addresses you want to masquerade to your own dnsmasq plugin configuration file
# New file, for instance: /etc/NetworkManager/dnsmasq.d/devbox
local=/test/
local=/localhost/
local=/local/
address=/test/127.0.0.1
address=/localhost/127.0.0.1
address=/local/127.0.0.1
This is it. Everything mentioned there will go to localhost, everything else will fallback to dns / mdns or other internal configuration of name lookups.
However, on modern Ubuntu distributions, and I guess also on other Linux derivates, .local is not allowed anymore and usually used by avahi daemon or "forbidden" in some default mdns configurations, so you will experience special defects only with this TLD like I did.
And because browsers like Chrome will still complain an simply not work with this "special" domain (just try setting up self-signed certificates for a .local domain and accessing it with Chrome, good luck! ;-)), IMHO the easiest and most elegant way would be to simply follow the IETF recommendations and avoid any other problems from the beginning. Which is: use .test for local domains instead.
"The first is using a generic top-level domain. Generic TLDs like .local, .lan, .corp, etc, are now being sold by ICANN, so the domain you’re using internally today – company.local could potentially become another company’s property tomorrow. If you’re still not convinced, here are some more reasons why you shouldn’t use .local in your Active Directory domain name"colossal-hair-13755
02/16/2021, 5:00 PMhigh-pencil-62400
02/22/2021, 8:31 AMhigh-pencil-62400
02/22/2021, 9:36 AM/etc/hosts as it is (regardless it is the 1990th approach)
a. Very simple. Simple documentation, simple actions.
b. Cross-platform. It works in any linux, MacOS, Windows+WSL.
c. No impact on the host system. No additional software, etc.
2. docker/sdk does not interfere with the host system directly. It just recommends to run some specific commands. And that is user’s will how to configure the host system. You can use any local domain names as you control your deploy.yml. You can use any DNS solutions locally on on CI/CD. No limitations from docker/sdk.
3. .test still is not self resolved (at least on my MacOS). You will need the very same actions as we do with .local domain. I do not see any significant differences, others when Chrome tries to search spryker.local instead of opening it.
4. .local will never be sold by ICANN as it is reserved domain name according to specifications here: https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml. It is similar to localhost, but Multicast DNS. And it is not listed in https://data.iana.org/TLD/tlds-alpha-by-domain.txt as zero-level domains.
5. SSL does work for .local domains in Chrome, Safari without any problems by registering self-signed root certificate in the host system.
Yes, in general, I agree that .localhost or .test match better than .local from technical perspective, but it does not matter from user perspective. And IMO spryker.local looks more reliable and obvious than spryker.test or spryker.localhost .
We will consider this topic and probably change default values in the Spyker demoshops later.
Thank you for you contribution, guys!high-pencil-62400
02/26/2021, 8:47 AM