I'm using the /etc/resolver technique for a dev domain as explained in some blog posts around the web (like this one).

I used this technique previously on 10.9, but on my new Yosemite there seems to be one small problem: the TLD itself, i.e dev, does not seem to be resolved by the custom DNS. In other words on 10.9 both dev and *.dev would be passed to dnsmasq and resolved correctly, but on Yosemite this only happens for *.dev. dev is resolved by something else to an address other than the one configured in dnsmasq.

I know dnsmasq works properly:

# host dev localhost
Using domain server:
Name: localhost

dev has address


# ping -c 1 dev
PING dev ( 56 data bytes
--- dev ping statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss
# ping -c 1 a.dev
PING a.dev ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.035 ms

--- a.dev ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.035/0.035/0.035/0.000 ms

My /etc/resolver/dev is:


I know I can just add dev itself to /etc/hosts, since it's the only one that doesn't work it not a big deal. However I'd like to know if I did something wrong and if I can achieve the same behaviour I had previously on 10.9.

1 is a special address, indicating a possible name collision. What's happened is Google has registered .dev as a new TLD, and dnsmasq is trying to inform you that your use of .dev could collide with the new official use of .dev.

Though it's strange you can get *.dev to resolve correctly, I can't, I just made Apache listen on because I'm lazy like that.

Here's ICANN's explanation of

| improve this answer | |
  • I guess we're going to have to find a new TLD for our local fiddlings... – Amir Abiri Jan 10 '16 at 11:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .