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.

Filter by
Sorted by
Tagged with
105
votes
24answers
227k views

DNS not resolving on Mac OS X

Some of my coworkers are having troubles on their Macs - DNS resolution does not work under Mac OS X. They're running Snow Leopard 10.6.8. They can use DNS in a Windows 7 virtual machine (VMware ...
24
votes
3answers
20k views

Can I use Back To My Mac's mDNS address and for ssh and other routing of traffic?

On Lion and iCloud, the old MobileMe and Snow Leopard mDNS naming has changed and no longer works. I'm wondering how to use command line tools to find out the DNS name that Apple has assigned to my ...
13
votes
4answers
30k views

Discoveryd Alternative to Replace mDNSResponder Argument?

This is a direct follow-on to this question. Before Yosemite, I'd add the "-AlwaysAppendSearchDomains" argument to the mDNSResponder plist file so that all local resolver lookups added the search ...
14
votes
3answers
89k views

How can I change the cellular DNS server on iOS?

Is there a way to set a global DNS server that will be used for all connections (both Wi-Fi + cellular data)? If there isn't a uniform manner to specify DNS, can I just change the DNS used by the ...
4
votes
1answer
4k views

Using Server 5.0.15 to share internet WITHOUT internet sharing

I am running a mid 2010 MacMini as a server. OS X 10.11.3 and Server 5.0.15. I am connecting to the internet on the built in Ethernet (Ethernet) and have a USB to GigaBit Ethernet adapter (Ethernet 2) ...
9
votes
3answers
4k views

Device name on router is different than OS X hostname

There are tons of questions about changing a Mac hostname, and while I went through most of them, I could never find this nuanced answer: Why do routers always seems to receive the first hostname ...
31
votes
2answers
36k views

Do /etc/resolver/ files work in Mountain Lion for DNS resolution?

Can anyone tell me if adding a file under /etc/resolver will work for DNS resolution using a DNS server other than what is handed out via DHCP ? My issue is that I want to use OpenDNS for a clients ...
35
votes
10answers
40k views

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 ...
23
votes
8answers
43k views

Mac OS X Mountain Lion - DNS resolving uses wrong order on VPN via dial-up connection

I am using a MacBook with Mac OS X 10.8.2 and connect to my company's network via VPN. Everything works great when establishing the VPN connection via LAN or WLAN. However, when I use a dial-up ...
8
votes
5answers
4k views

Is it possible to use Back To My Mac DNS or routing information from the command line?

I often want to ssh to a Mac and would love to make use of of iCloud to look up IP/DNS routing information. Can this be done without signing up for a dynamic DNS service and configuring it on each Mac ...
43
votes
9answers
79k views

OS X 10.10.1 /etc/hosts & /private/etc/hosts file is being ignored and not resolving

Like the title says, running os x 10.10.1. if i have an entry in my hosts file and do a dig or nslookup it still shows a different IP than what is in my hosts file even after trying to flush various ...
24
votes
4answers
22k views

How can I quickly change DNS server

I often like to use a non-network specific DNS server (like Google's public DNS 8.8.8.8). However, many public wi-fi locations won't load their "terms of service, click here" page during the ...
14
votes
1answer
12k views

Flush cache of DNS on macOS Sierra & High Sierra

How to flush the cache of the DNS system on a macOS Sierra or High Sierra Mac? I have seen discussion of the following, but am not sure if this is the modern approach. And I am not sure what each ...
10
votes
3answers
12k views

DNS Resolution Fails for ping and curl, but not dig

I'm running DNSMasq as a local DNS server, so I can resolve *.local.pcfdev.io (as discussed here Using PCF Dev Offline with Mac OS X). Everything worked when I first set things up. A couple of days ...
8
votes
1answer
14k views

Make `hostname -f` return fully qualified hostname

How can i make hostname (i.e. the unix commandline tool hostname, invoked in terminal) return a hostname including the domain information? At the moment, hostname, hostname -f and hostname -s return ...
11
votes
2answers
12k views

How do I flush the DNS cache on a OS X 10.6 machine?

Trying to flush the local DNS cache. How is this done on Snow Leopard? Using System Preferences and using the terminal?
4
votes
2answers
1k views

MacBook Air briefly wakes from sleep after 3 hours

My MacBook Air (a few months old) randomly wakes from sleep roughly 3 hours after the lid is closed. The wake reason is given as EC.LidOpen, but in fact, the lid remains closed. The mac appears to go ...
3
votes
1answer
10k views

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?
4
votes
2answers
888 views

After using `networksetup -setdnsservers Wi-Fi “8.8.8.8” “8.8.4.4”` how do I clear them?

I'm looking to script a temporary DNS server change to override the DHCP response I get from the network. I've figured out I can use networksetup but once we're done testing. Before I push to ...
2
votes
1answer
2k views

Mac Mavericks 10.9 DNS problem with specific addresses

A number of network addresses appear to be unreachable from my computer (Mac Mavericks, 10.9.2). For example I do not see any images on wikipedia. Today's featured article does not show the image ...
11
votes
2answers
9k views

What is the preferred method of command line domain name lookup (DNS)?

What command line command do I use to lookup a domain address? When looking at the man pages for nslookup and dig I can see a section saying that these utilities do not use the Mac OS methods of ...
16
votes
1answer
22k views

Yosemite Cannot Resolve Domain Names

So I know Apple removed mDNSResponder in Yosemite, but it appears that a bunch of apps are still trying to interact with it and failing Oct 20 10:57:00 Nicks-MacBook-Pro.local configd[25]: ...
24
votes
4answers
28k views

How can I get OSX Mavericks to notice a DNS change in `/etc/hosts`?

A common way to "block" a website (eg, to eliminate it as a distraction) is to edit /etc/hosts and point the domain to the loopback address. Eg: # Stop goofing off 127.0.0.1 youtube.com On Mavericks,...
12
votes
5answers
10k views

How to add some additional DNS search domains without ignoring the DHCP ones?

I just want to add my own list of Search Domains but without overriding the ones returned by the DHCP? As anyone would imagine I already tried to add them to Network > Advanced > DNS but adding them ...
30
votes
3answers
113k views

What is the “wake for wifi network access” setting in energy preferences?

Can anyone explain the "wake for wifi network access" setting in energy preferences for me? I do not understand it.
5
votes
1answer
4k views

Alternative to AlwaysAppendSearchDomains on Yosemite? [duplicate]

Since Lion, I have used the AlwaysAppendSearchDomains trick on mDNSresponder to resolve names with dots in search domains. In yosemite this doesn't work any more. In fact, mDNSresponder doesn't seem ...
3
votes
2answers
5k views

DNS doesn't work properly in OS X Yosemite

There is a problem with resolving DNS in my OS X Yosemite. Safari doesn't load web sites, ping says "unknown host" to google.com. DNS servers set to 8.8.8.8 and 8.8.4.4. dig google.com Gets ...
9
votes
1answer
9k views

dnsmasq not working on Mac OS Sierra

I'm running dnsmasq on a 2016 MBP running Mac OS Sierra (10.12.1) but I'm unable to ping any .dev addresses despite having what I believe is the proper config. Running dig does return sane output. /...
8
votes
3answers
18k views

/etc/hosts will not update/refresh at all

I add to my /etc/hosts file this : 127.0.0.1 youtube.com Save the file. Flush everything with : dscacheutil -flushcache; sudo killall -HUP mDNSResponder Reboot my computer 30 times. Then I run: ...
5
votes
3answers
3k views

How to use mac as a full router with DHCP, DNS, Port Fowarding etc.?

I know I can use internet sharing in macOS to share the internet connection provided to one network interface over one or more other network interfaces on my Mac. However, the feature set is VERY ...
4
votes
2answers
1k views

macOS keeps reverting to static DNS IP addresses

I have a strange issue that only started occurring recently (within the last 2 public OS update releases). The DNS IP addresses for all interfaces (at least, the WiFi and Ethernet interfaces) are ...
5
votes
1answer
6k views

Wipe all WiFi settings from MacBook

My old MacBook has come out of retirement after about two years turned off. It connected to my WiFi but the browsers complain it's insecure and might be connected to servers pretending to be the ones ...
5
votes
1answer
388 views

Mountain Lion firewall is randomly delaying DNS requests

I recently experienced some delays during DNS host resolution on OS X 10.8. To test it I started a simple script which tries to repeatedly resolve the same hostname 20 times: #!/bin/sh for i in `seq ...
7
votes
5answers
9k views

Terminal/Safari Cannot Resolve Host But Chrome Can Connect

I have MacBook Pro (Retina, 13-inch, Early 2015) with OS X 10.11.5. Internet connection works only for Chrome. Safari and several terminal apps cannot connect to internet due to resolve host failure....
6
votes
3answers
9k views

Internet Sharing handing out wrong DNS server address

I'm using a MacBook Pro with OS X Mavericks 10.9.2. It connects to the internet via a USB 3G dongle, and I want to share that internet connection via wifi. However, on devices that connect to the ...
3
votes
4answers
4k views

nslookup & dig fail; ping, traceroute, and scutil -r work

I'm running on 10.8.2. All of a sudden, traditional nameserver lookups are failing on my machine: $ nslookup www.att.com ;; connection timed out; no servers could be reached $ dig www.att.com ; &...
3
votes
0answers
1k views

How to override DNS resolver ordering while connected to L2TP VPN

OS: macOS Mojave 10.14 (18A389) Current network setup: Local domain: home.rossipedia.com Subnet: 172.16.10.0/24 Gateway / DHCP server / DNS server: 172.16.10.1 Output of scutil --dns: DNS ...
3
votes
1answer
250 views

DNS on VPN does not work

I have an Azure Point-to-Site VPN over IKEv2 configured and it works well. The problem is with DNS. DNS adresses are filled in Advanced tab of the VPN connection but it does not resolve anything. ...
2
votes
1answer
1k views

OS X assumes hostname of other network computer: how to prevent this?

I just came across a strange quirck: I use my MacBook Pro in the office. Every computer is assigned their IP addresses by a DHCP server. It seems to be the case now, however, that my OS X changed my ...
2
votes
1answer
788 views

How do I clear Google Chrome's DNS cache entirely?

Chrome is quite aggressive about caching HTTP responses. I assume this is for speed. However, for a web developer such as myself, this can often be problematic, since pages I work on often change a ...
1
vote
1answer
613 views

Cannot ping localhost

I have setup a new MacBook Pro retina, things were going well but now I cannot access localhost. $ ping localhost ping: cannot resolve localhost: Unknown host My /etc/hosts file is fine, or at least ...
3
votes
0answers
156 views

Strange domain name appears in Sharing Preferences, source unknown

First of all before anyone asks, I have already set my DNS name in the Terminal with scutil, which is reflected on the Terminal prompt and returned by the hostname command. I also understand that this ...
2
votes
0answers
1k views

ping and browsers do not seem to use local DNS server? (or: mDNSResponder looses local dns server?)

(1) Stack Info DNS Server CentOS 5.6 64bit running dnsmasq 2.45 on IP 10.9.8.2. Serving as DNS-Only Server using it's local /etc/hosts. /etc/resolv.conf on this machine has Router Draytek Vigor ...
2
votes
0answers
454 views

Browsing to a nested subdomain resolves wrong page

Our corporate network has some web applications hosted in a nested subdomain hierarchy. A "subdomain's subdomain", as you will. For example: Root-> http://*.mydomain.com (resolves to: 192.2.2.200) ...
2
votes
2answers
1k views

DNS Suffix on two network Interfaces on MacBook Pro

I got a new MacBook Pro for my work office and have a network issue. On the MBP 13" I use the integrated Wi-Fi and an additional a Belkin USB Ethernet. Now, with those two network interfaces I ...
2
votes
2answers
4k views

Deleted com.apple.mDNSResponder.plist in Mavericks, how to get it back?

I already had trouble with DNS not resolving for all apps except Chrome, in my troubleshooting I for some reason deleted com.apple.mDNSResponder.plist Deleting this file did not help in any way.. ...
2
votes
3answers
1k views

how to add ip routes with host name instead of ip address?

I want to add IP routes for host that I do not have the IP address for. I basically want tell macOS to search for a host in a specific interface: sudo route add -host <myHostname> -iface en7 ...
1
vote
2answers
6k views

How do I get rid of browser redirect malware?

I am using Mac OS X Leopard on a MacBook Pro. I must have been very careless at some point, since I managed to let some malware install in it. While browsing I get randomly redirected to different ...
1
vote
0answers
68 views

named (bind DNS) not quitting

I am trying to quit named, but it keeps popping up. I tried removing the configuration an key files, unloading it from launchd, you name it. Yet it keeps starting. How do I kill it permanently?
1
vote
1answer
42 views

Screen Share connects to wrong device

I have a Mac mini (Mac mini 2) set up in New York which I can connect to just fine via the Share Screen... button on Finder. However, when I try to connect to my other Mac mini in Miami (Mac mini 3), ...