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

learn more… | top users | synonyms

36
votes
10answers
49k 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 ...
13
votes
5answers
11k 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 ...
11
votes
10answers
10k 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 ...
10
votes
3answers
7k 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 ...
9
votes
2answers
5k 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
4answers
9k 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 ...
9
votes
1answer
6k 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 ...
8
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. ...
7
votes
1answer
4k 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 ...
6
votes
2answers
3k 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 ...
6
votes
2answers
1k 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
1answer
1k 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 ...
6
votes
1answer
2k 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 ...
5
votes
3answers
8k 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. ...
5
votes
1answer
260 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
3answers
3k 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
943 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
3answers
360 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 ...
4
votes
1answer
145 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:
4
votes
2answers
46k 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
2answers
623 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
1answer
411 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, ...
3
votes
7answers
4k 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
435 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
2answers
171 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
3answers
3k 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 ...
3
votes
1answer
2k 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
385 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
4answers
10k 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 ...
3
votes
3answers
668 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
1answer
837 views

Can I proxy traffic / domains through my phone by tethering to carrier data?

Would it be possible for me to proxy example.com to http://google.com/example.com/, through my jailbroken iPhone? I would tether my connection to my laptop, so to my laptop it connects to Google's IP ...
3
votes
1answer
496 views

Network's DNS queries redirection to localhost

Before saying anything, I would like you to know that my experience in the field of network administration is about 3 days long, so please treat me like the newbie I am. I have also been looking ...
3
votes
2answers
3k 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.
3
votes
2answers
659 views

Unable to revert changes to hosts file in OS X Lion

I edited the hosts file and added: 10.0.0.1 devsys.crossreader.net Later I commented out the entry: #10.0.0.1 devsys.crossreader.net When I ping or browse to devsys.crossreader.net the returning ...
3
votes
2answers
210 views

Local DNS circumvented when WiFi is active

I am using Mac OS X 10.8 to connect to two networks through ethernet and wifi and I am experiencing a problem with local DNS resolution. I would really appreciate your advice. I am simultaneously ...
3
votes
1answer
336 views

Why are DNS server addresses lost after reboot?

I applied OpenDNS server addresses to Network Preference > Advanced > DNS. These were applied first under user account, then believing I needed to apply as Admin. Yet upon reboot they're replaced ...
2
votes
3answers
2k 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: ;; ...
2
votes
2answers
513 views

How do I set up DynDNS on my MacBook?

I want to create a host name that points to my MacBook dynamically, so I can have a chance to take back the control if it was stolen. I opened ssh and vnc, but I have no idea how to find my machine. ...
2
votes
1answer
98 views

Dig resolves a domain, but all other programs fail to find it

Mac OS X Mavericks, no VPN, connecting via wifi. This domain resolves to my IP address in the local network $> dig mydomain.xx ;; ANSWER SECTION: mydomain.xx. 3591 IN A 192.168.10.18 I ...
2
votes
1answer
2k views

Can I redirect to an alternative DNS Lookup server depending on domain request

Background I had a problem loading images from a particular website. ( more details of that here) Someone at work Suggested I change my DNS servers to openDNS and see if that resolves the problem. ...
2
votes
2answers
3k 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 -> ...
2
votes
1answer
156 views

How to import authoritative (primary) zone data into Lion Server DNS?

Our current authoritative DNS server suffers from random reboot issues. That is why we would like to import our DNS zones into a Lion DNS server (BIND). We could not find an option to import DNS ...
2
votes
1answer
184 views

How to prevent sending of hostname via DHCP?

I am trying to prevent OS X from sending its hostname to the DHCP server. For example, in OpenSuse systems there is DHCLIENT_HOSTNAME_OPTION="AUTO". I cannot find a similar option in OS X for this, ...
2
votes
2answers
500 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 ...
2
votes
1answer
318 views

Internet page not loading, ping not working but host www.example.com return an IP

Sorry I'm being vague because I don't even know where the problem can be. Yesterday I was using the internet just fine. Today on the same wifi router and on another 3G connection, I couldn't access ...
2
votes
1answer
739 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
462 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 ...
2
votes
1answer
75 views

Adding hosts entry to iOS in absence of DNS

I am working with an application where my iPhone needs to see my laptop on the network under its host name and not the IP address because the SSL certificate works with the name only. At the office, ...
2
votes
2answers
98 views

Specifying DNS: Router or PrefPane?

OSX Lion (10.7.5). Network preferences has an option to set up (and order) DNS adresses. My router (Bell Connection Hub - Bell Canda) also has an option for specifying DNS addresses. Which takes ...
2
votes
1answer
780 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.. ...