Questions tagged [dns]

Domain Name Service, a method of converting a textual doman name to an IP address

Filter by
Sorted by
Tagged with
100
votes
22answers
202k 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 ...
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
87k 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
3k 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) ...
29
votes
1answer
33k 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 ...
34
votes
10answers
39k 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 ...
22
votes
9answers
39k 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
2answers
3k 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 ...
23
votes
4answers
21k 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 ...
37
votes
9answers
71k 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 ...
9
votes
3answers
9k 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
13k 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?
6
votes
3answers
7k 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....
3
votes
1answer
9k 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?
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 ...
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]: ...
23
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
1answer
11k 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 ...
12
votes
5answers
8k 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 ...
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 ...
8
votes
1answer
8k 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. /...
3
votes
3answers
2k 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 ...
6
votes
3answers
15k 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
1answer
383 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 ...
6
votes
3answers
8k 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
0answers
706 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 ...
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
731 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
599 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 ...
7
votes
8answers
45k views

Why will my Mac only load Google and Facebook?

I'm running into this really strange problem on my 2013 iMac at home (running Mavericks): the internet will work for a while, then at some point it will stop being able to load any websites except for ...
3
votes
0answers
155 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
2answers
147 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 ...
2
votes
0answers
441 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
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
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.. ...
1
vote
0answers
66 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
236 views

Only HTTPS websites working otherwise I receive ERR_CONNECTION_REFUSED [duplicate]

I am facing annoying problem of only HTTPS websites working on my Mac (in all browsers). I can only visit Google, YouTube, Facebook, Yahoo etc. So far, I tried following: Websites shows error of: ...
1
vote
0answers
1k views

yosemite DNS resolution woes over IPSec tunnels / VPN

I am connecting to a Cisco IPSec tunnel from MacOS to a hosted pfsense box that is running a number of other IPSec site-to-sites happily, and the DNS resolution is not working. I also am in full ...
1
vote
1answer
6k views

What are the domains of the iTunes & Software Update CDNs?

Background info: the various iTunes stores (and I think Software Update) use the a CDN to deliver all those jigabits of data. Google DNS can mess with the speed of these CDNs. I like using Google ...
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
2answers
802 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 ...
0
votes
2answers
145 views

DNS - Cannot connect to the internet

I think I have some sort of dns/proxy issues with my wifi settings. Many apps cannot connect to the internet: Firefox, Team viewer, Steam (works after 2 minutes). Chrome does connect but "Establishing ...
0
votes
1answer
6k views

DNS resolves servers external IP instead of internal IP

I'd like to access a web server from both inside and outside my home network. I then have my firewall (pfSense) named as example.com. From within my network, I can access every machine by it's fully ...
0
votes
1answer
522 views

Wifi, DNS problem on MacBook Pro retina

On a Macbook Pro retina 13 2014 with El Capitan 10.11.5 I can't access websites through their domain name (google.com, bing.com, etc). I can access the internet with Google Chrome, but with others ...
0
votes
1answer
644 views

Force DNS server ip while connected to VPN

I'm using Fortclient VPN to connect to a customer network and the client enforces the use of their DNS (since the customer is in Turkey I get false DNS responses on wikipedia and other websites while ...
0
votes
2answers
5k views

How to add a wildcard host entry to Mac OS X Server's DNS

I have set up a Mavericks Mac OS X Server machine for my lab, and I am using the DNS service for my own domain. Without getting into too many complicated details, I need to populate this local DNS ...