by parasubvert · 11y ago · 0 comments
All of the bugs cited have to do with ".local" domains. You should never use .local domains as IANA has designated this domain as a special use domain for Multicast DNS as part of IP Zeroconf and Bonjour. http://tools.ietf.org/html/rfc6762
Apple has also made this clear here: http://support.apple.com/en-us/HT203136
Yosemite has split the job of unicast and multicast DNS up such that you cannot resolve single-label .local domains with unicast DNS anymore; you MUST use multicast. This is why hosts will resolve with nslookup or dig but not ping. The old behavior with mDNSresponder was arguably legacy backwards compatibility for unicast DNS resolution of .local hosts.
(I figured this out the hard way over a weekend using the Googles when my local VMs weren't resolving properly via dnsmasq - my fortunes changed when I looked into ".local").
There is one remaining problem with Yosemite DNS I haven't figured out yet, and that's getting unicast DNS resolution via dnsmasq while offline. Frustrating.
Another Yosemite daemon addition, recentsd, had serious issues (for example: substantial memory leaks when interacting with Mail.app) until 10.10.2.
Apple has gotten very good at eliminating crashes. They're obviously using the reporting mechanism there to great effect. But at the same time, Console.app has never been noisier, and failures that don't result in crashes seem to linger far too long.
They've also become, it seems, far more dependent on an "orchestra" of daemon processes to perform tasks that in the past would have been implemented in passive frameworks used separately by each app. That adds complexity of coordination, and meanwhile a single failure can affect every "client" app on the system.
function restart-discoveryd() {
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.discoveryd.plist
}
Then simply run `restart-discoveryd` when you can't seem to ping google.com. I always struggle to remember how to start/stop things with launchd, so this is my little shortcut. sudo discoveryutil udnsrestartquestions
instead. The one time I had DNS issues (only once!), I ran that command and all of my DNS issues immediately resolved themselves.> Identify your organization's DNS owner and determine what registered DNS names you have available on the network that will host Active Directory.
> If you do not have a registered domain name, you should register a name with an Internet DNS registration authority.
https://technet.microsoft.com/en-us/library/bb727085.aspx
>
http://en.wikipedia.org/wiki/.local#Microsoft_recommendation...
That may be the official standard, but .local is a very common, de facto standard. Products need to be compatible with reality.
Just glancing at the RFC, is my impression correct that in February 2013, with .local already widely used for private domains, someone published an RFC appropriating the name for something else? (Could they have used a different name?) They expect the world to change their internal domains in order to accommodate their new idea?
Is there a standard for private second-level domain names? I've never seen one.
# /usr/local/etc/dnsmasq.conf
address=/.foobar/127.0.0.1
and # /etc/resolver/foobar
nameserver 127.0.0.1# cat /usr/local/etc/dnsmasq.conf address=/dev/127.0.0.1
# cat /etc/resolver/dev nameserver 127.0.0.1
Instead of your choice of foobar.
Doesn't work offline. Your conf looks like the standard dnsmasq conf anyway, so maybe there's one other flag or configuration that you figured out?
Well, I found it — quite a few entries in /etc/hosts, made at 02:30 AM, together with unflattering comments about the parents of those responsible for Yosemites new DNS subsystem...
So sorry for getting your hopes up! I have no idea how I could have misremembered all that so badly.
I don't know how to configure dnsmasq at all, so that may not be a problem.
Yeah, but the rewrite is buggy as rewrites often are. If it worked as intended, I doubt so many people would have so many problems.
This is blatantly wrong. Any device on my network (which uses .lan as a suffix) that sleeps (including Apple TVs) gets the dreaded "(2)" (or 3, 4, 7), before I started disabling "Wake for Network Access".
Yes, things are different. But don't pretend that we're just "doing/holding it wrong". There are things that are -very- broken.
I have no bad experiences with resolving regular domains on Yosemite, but others in this tread have suggested bouncing discoveryd can help.
Not what I really wanted (checked quite a bit around for a solution without finding any), but at least I don't have this happening multiple times a day.