Questions tagged [dns]

Suitable use of this tag is for all processes and protocols for doing name to address translation locally on Apple products as well as in general relating to his DNS works.

Domain Name Service, a method of converting a textual doman name to an IP address. On Apple products, this also includes multicast dns and technologies like bonjour, zero configuration and protocol and debugging toools and procedures to understand the name resolution relating to any Apple product or service.

574 questions
41
votes
10 answers

DNS lookups fail with e.g. `ping`, but work with `host`

I'm using pfSense 2.0rc3, and I've set it up as a DNS forwarder and enabled "Register DHCP leases in DNS forwarder" and what I understand are all the appropriate settings to get DNS server for local lookups. It works as expected with Linux and in…
16
votes
2 answers

discoveryutil: command not found

After connecting VPN, I often have to flush DNS to get my private hosts to be found. I would do this sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches Now, after upgrading to Yosemite 10.10.4, I get sudo: discoveryutil: command…
Kirby
  • 316
7
votes
1 answer

How long does the DNS cache last in Mac OS X?

I know I can manually flush the DNS cache, e.g. with sudo killall -HUP mDNSResponder. But how long will the cache last if I don't do this? Does it reset on a reboot?
Jack
  • 351
4
votes
0 answers

How to disable DNS cache on macOS?

I'm using my mac for software development and the app I'm working on creates new domains and use them after a few minutes. The problem is these domains not resolved in a few minutes, so I have to clean DNS cache by running: sudo dscacheutil…
chingis
  • 391
2
votes
1 answer

Custom Local DNS entry ignored

I'm using dnsmasq to route requests to .lh hosts to my vagrant server currently running on 192.168.0.5 on Mac OSX 10.6. scutil --dns returns the correct resolver info: resolver #9 domain : lh nameserver[0] : 192.168.0.5 But ping (and also the…
hollsk
  • 121
2
votes
1 answer

Fast External DNS Servers and My Intranet

The local DNS servers, where I work, stink. They're absurdly slow and often completely fail to resolve web domains during certain periods of heavy sunspot activity. In response, I've just added Google's DNS server to my Network configuration. This…
2
votes
1 answer

Why won't OS X query multiple DNS servers

I have found that in all my years of use with Macs, multiple OS versions, multiple hardware configurations, that it never queries anything but the primary DNS server. Why is this? We have spun up many different internal DNS servers and have tried…
Brian
  • 131
1
vote
2 answers

DNS Host resolver hijack on Mac Edge

I got a problem that I can't fix on my Mac's Microsoft Edge 107.0.1418.52. I asked the Microsoft Community but they were helpless. They guide me to ask on Microsoft Learn, but the forum showed "Access Denied" when I tried to post in a couple of…
pperlee
  • 11
1
vote
1 answer

Strange DNS entries on a macbook pro

I was trying to add an entry in /etc/hosts on a MacBook Pro 2018 (macOS 10.14.1) that has been installed transferring data from another MacBook Pro (2013 running macOS 10.13.6) when I found the following entries (beside the normal…
Alienpenguin
  • 131
  • 4
1
vote
1 answer

High Sierra DNS fails intermittently for LAN-local hosts

I have a local domain for my home network, which uses .loc as a TLD (not .local). Name resolution for hosts on that network always works using dig or nslookup from a terminal, but intermittently fails everywhere else. One day it will work fine and…
0
votes
0 answers

DNS resolves (sometimes) - but ping, won't

DNS is being served up by a Windows 2016 server and has no issues that I'm aware of except when trying to resolve the server's IP, using macOS, from inside the network. Dig's output is confusing to me because it seems to be able to resolve name name…
Harv
  • 6,520
0
votes
1 answer

What's the grammar of the Dynamic Store's DNS config?

This helpful answer talks about how using the dynamic store is preferred over the bsd-style /etc/resolver/* files, and includes a helpful example. I did find some docs that mention the same dns properties, but it does leave some questions. Is this…
djeikyb
  • 189
0
votes
1 answer

Custom name server removes the ability of visiting websites with 'dev' in the url

I am a web developer and in my younger years I tried setting up a custom name server on my mac without really knowing what I was doing. I wanted to be able to visit my own website on adreses like 'sam.dev'. I know that I succeeded at some point and…
0
votes
1 answer

Resolve internet address (IP) as running apps see them currently (vs. external name server)

Sometimes, I need to see the actual IPv4 address of web sites I open in Safari. Now, there are two terminal commands, host and dig, which I could use for that. But these commands are not always telling my the actual IP address that the Mac apps,…
0
votes
1 answer

OSX El Capitan, DNS issue

Yesterday everything worked fine. But tonight, I'm unable to access particularly a few particular websites on all the imacs, mbp and even iphones at home. Weirdly enough, a quick 4G access via my iphones show the sites are accessible, but when i get…