Closed indirect closed 6 years ago
FYI: An update to Chrome forces .dev domains to HTTPS via preloaded HSTS which would effectively break the default TLD for local dev without SSL.
It does not work for me, switched to .local
, seen the changes to the config and also see them in /opt/boxen/config/dnsmasq/dnsmasq.conf
... but still .dev resolves to 127.0.0.1 - .local ist not able to be resolved at all
did some digging
so that is there, removed /etc/resolver/dev and also dev.dnsmasq.plist -0 ensured all launchd of dnsmasq are down, and the used this to start it again
sudo launchctl load /Library/LaunchDaemons/local.dnsmasq.plist
while dig @127.0.0.1 d.local
works and resolves to 127.0.0.1
dig d.local
will not work. The scoped DNS setting seems to be there
resolver #8
domain : local
nameserver[0] : 127.0.0.1
flags : Request A records, Request AAAA records
reach : Reachable, Local Address, Directly Reachable Address
Any clues?
Interesting, found
resolver #2
domain : local
options : mdns
timeout : 5
flags : Request A records
reach : Not Reachable
order : 300000
could that be the cause?
If i add local
to the search domains, it starts working. I am connected to a gateway which sets a search domain to something.ourcomp.com
- is that the root of the issue?
Well, that is an issue and expected https://support.apple.com/en-us/HT203136 .. not sure it was a good idea to go for .local here.
confiming that switching to lan, pkill dnsmasq
( since unload does not work ) and then start again with sudo launchctl load /Library/LaunchDaemons/dev.dnsmasq.plist
will work.
We also might have a something fishy here, a /Library/LaunchDaemons/local.dnsmasq.plist
is created without any use
also one needs to remove /etc/resolver/dev
and /etc/resolver/local
to cleanup
Well, that is an issue and expected https://support.apple.com/en-us/HT203136 .. not sure it was a good idea to go for .local here.
We've moved to test
internally for that exact reason.
also one needs to remove /etc/resolver/dev and /etc/resolver/local to cleanup
This was a bug I introduced in #17 however was fixed in #24 a few days back and a new release cut for it. Are you able to update to 2.0.5
and let me know if this fixes the issue for you?
So .dev has been sold by ICANN, and has a registry and root name servers. This means that Boxen is now (potentially) blocking legitimate sites by using .dev for local development. Are there plans to update the default domain to something that isn't actually part of the real internet?