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

learn more… | top users | synonyms

57
votes
12answers
109k views

DNS not resolving on Mac OS

Some of my coworkers are having troubles on their Macs - DNS resolution does not work under Mac OS. They're running Snow Leopard 10.6.8. They can use DNS in a Windows 7 virtual machine (VMware Fusion ...
22
votes
6answers
27k 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 ...
21
votes
4answers
20k 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 ...
17
votes
10answers
25k 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 ...
16
votes
4answers
11k views

What does the dynamic global hostname option in sharing settings do?

Can anyone explain what this option does?
16
votes
1answer
21k 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]: ...
15
votes
4answers
16k 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 ...
15
votes
6answers
25k 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 ...
15
votes
1answer
14k 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 ...
15
votes
2answers
5k views

How to set custom DNS entry for a particular wifi connection

Is there a way to set custom DNS settings for a single wifi connection without affecting other connections? I use my laptop at home and work. When at work I need to type in an IP address of a local ...
12
votes
4answers
27k 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 ...
11
votes
2answers
6k views

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 ...
10
votes
2answers
5k views

How to fix DNS resolving issues on Mountain Lion after waking from sleep?

After I installed Mountain Lion the other day I've noticed something very annoying. Almost every time I wake my iMac (27", mid-2010, CI7) from sleep: it seems that something DNS-related is broken. ...
9
votes
2answers
9k 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?
9
votes
1answer
8k views

Is it possible to configure OS X to use the domain-name supplied by DHCP option 15?

I run a small home network, and have configured my DHCP server to provide a domain name with all responses. My MacBook Air (running 10.7.3) places the provided domain in the DNS search path, but does ...
8
votes
2answers
7k 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 ...
8
votes
4answers
10k views

List DNS servers in Mavericks

How to check which DNS server was used to resolve particular hostname within VPN network? I am using company-provided proprietary VPN client and want to see DNS server's IP address, but ...
8
votes
2answers
6k views

How do I add custom DNS server and preserving default DNS of ISP in OS X Mountain Lion

I'm using OS X Mountain Lion. I'm using dnsmasq to set up wildcard localhost domain names, such as http://local.dev, to point to localhost. But I have to add 127.0.0.1 in my system preference -> ...
8
votes
1answer
3k views

User specific hosts file in Mac OS X

I'm working on an OS X 10.6.8 machine, for which I do not have superuser privileges. I'd like to imitate the effect of adding an entry to the hosts file, i.e. have a certain domain resolve to a ...
7
votes
3answers
19k views

Cannot access localhost after upgrade to Mavericks but can access 127.0.0.1

I ran across this question, but it wasn't resolved (and it hasn't been touched in a while). I'm not sure if my issue is the same, but I don't have enough reputation here to comment on that question. ...
7
votes
3answers
66k 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 ...
6
votes
1answer
169 views

Automatically assign DNS

How do I ensure that the DNS is being set by the network? On Windows I would check here and make sure that Obtain DNS server address automatically was selected:
6
votes
3answers
5k 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 ...
6
votes
3answers
5k 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
3answers
2k views

/etc/hosts gets over written

What is the correct way of editing /etc/hosts? I want to add some IP addresses and host names to it. It works for a while (a few hours) and then it gets reverted back to the original version. Is there ...
5
votes
4answers
25k views

Can't access specific websites with Macbook Air (10.7.5 Lion)

This has really baffled me: While my internet connection works, I can't access specific websites with Safari (or any other browser for that matter). I don't get a 404 page; Just an error message that ...
5
votes
2answers
7k views

Can I set up domain filtering on an Airport Extreme?

I'm wondering if it is possible to set up domain filtering on an Airport Extreme based home network. Specifically, I'd like to block just rad.msn.com, and I need to do that at the network level.
5
votes
2answers
1k views

On OS X is it possible to override DHCP assigned DNS servers but still keeping them for fallback?

By default I would like to use the google public DNS servers and to fallback to intranet ones when these are failing. Is this possible? ... I am looking for a setup that would not break when I move ...
5
votes
1answer
353 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 ...
5
votes
2answers
1k views

Lion Server DHCP randomly loses settings and reverts to defaults

I’ve been trying to set up Lion Server on a Mac Pro with it acting as the router/gateway/firewall/DNS/NAT and DHCP. I’ve been trying to setup an internal-only network named mycompany.something. After ...
4
votes
4answers
7k views

Dig not returning authority section?

Digging wikipedia.com, on my Macbook Pro, returns: $ dig wikipedia.com ; <<>> DiG 9.8.3-P1 <<>> wikipedia.com ;; global options: +cmd ;; Got answer: ;; ...
4
votes
1answer
8k views

How to I display the current DNS servers from the command line under OS X?

I want to display the DNS serververs that are used by the current network setup on OS X, from the command line.
4
votes
1answer
3k 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 ...
4
votes
1answer
114 views

How can I force default DNS query to work in TCP mode?

In China, the so-called GFW often contaminates DNS results like $ dig @8.8.8.8 archive.org ;; QUESTION SECTION: ;archive.org. IN A ;; ANSWER SECTION: archive.org. 2662 IN A ...
4
votes
2answers
900 views

Shared Internet apply /etc/hosts

How do I make those who connect to me via a shared internet connection use my /etc/hosts file? I was thinking something along the lines of creating a DNS server, but I was hoping maybe there is a ...
4
votes
2answers
901 views

How would I prepend 127.0.0.1 as a nameserver all the time

I do web development and I would like to have dnsmasq running and handing my local dns requests. However I work in a lot of different networking scenarios and I need to DHCP updating my networking ...
4
votes
4answers
16k views

How to fix hanging Server Admin, log shows servermgrd error in getAndLockContext: flock(servermgr_info) FATAL time out

On a 10.7.4 Lion Server installation the Server Admin.app fails to start correctly. The window is drawn and the last known server and its services are displayed, but a spinning wheel keeps spinning on ...
4
votes
1answer
529 views

DNS: Search Domains not working correctly?

I am running OSX Lion. I've looked all over the web for solutions to the issue I'm having and can't find a fix. I've found several entries where uses are trying to resolve custom_hostname.dev (etc, ...
4
votes
1answer
292 views

Loopback in Yosemite not working

I'm on Yosemite (10.10.2). Since upgrading I got some DNS issues, it seems my loopback isn't working any more. When I'm talking to my app locally via http://localhost:port, localhost in some cases ...
3
votes
2answers
782 views

iPad and iPod virus?

Every now and then my iPad or iPod touch will redirect my to a particular site in Safari. Could this be malware of sorts that has crept on to my iMac and then my iOS devices? I don't think it's a ...
3
votes
7answers
6k views

Can't access apple.com webservers, App Store, nor Software Update

I have a MacBook Pro Early 2011 running Lion 10.7.4 (11E53) I have installed an SSD instead of the optical drive, and encrypted both hard drives with FileVault2. For some time now I noticed I can't ...
3
votes
2answers
257 views

when is the /etc/hosts file loaded?

I'm trying to configure some virtual hosts and I'm quite confused as to when this file is loaded. At what point is /private/etc/hosts loaded? When logging in? At every DNS call? When Mac OS restarts? ...
3
votes
2answers
822 views

Adding “local” to the DNS Search Domains has no effect

I have a Mac Mini (Yosemite) on my local network and it's not running a DNS server at all. When I want to access it over SSH from a Terminal on my Macbook Air (Yosemite), I can type: $ ssh ...
3
votes
2answers
768 views

How can I make the up arrow work in Terminal's nslookup command?

When I open terminal, I'd like the up arrow go to the last command I typed within nslookup. Instead, I get a strange escape sequence. What must be done to allow me to up arrow in nslookup?
3
votes
1answer
4k views

Map certain ports to URLs via hosts file or DNS resolver

I use SSH tunnelling extensively to gain access to remote machines that are behind a firewall. So to access a development server I use something like http://localhost:8888 which is forwarded to port ...
3
votes
1answer
580 views

What is OS X's equivalent of Linux's NSS?

Anyone familiar with the internals of Linux knows about NSS; it's the subsystem that services, like gethostname() and such, delegate to. The code that actually makes DNS queries or reads /etc/passwd, ...
3
votes
2answers
1k views

How do I configure dynamic DNS when my router does not support it?

I have a MacBook which is connected to the net via an ancient DSL router (NAT enabled). I want to SSH into the server from elsewhere, but my ISP assigns new IP address every once in a while. I would ...
3
votes
4answers
11k 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
3answers
1k views

Mavericks - ssh to host under search domain

I am VPNed in to a network which has its own search domain, and it mostly works - I don't have to type the domain in the browser, and the host command resolves to the correct IPs. However, when I try ...
3
votes
2answers
10k views

How does the iPad expose its host name over the network?

When I connect my iPad to the wifi network at work, I can ping it by name: ping my-ipad. Clearly the router is somehow exposing it via DNS, or something like that. But when I connect my iPad to the ...