Skip to content

Instantly share code, notes, and snippets.

@pugson
Created April 4, 2019 15:11
Show Gist options
  • Save pugson/91c5e3ed473e03164bfe438cc83e483e to your computer and use it in GitHub Desktop.
Save pugson/91c5e3ed473e03164bfe438cc83e483e to your computer and use it in GitHub Desktop.
How to fix unknown host on .dev TLD after using puma-dev

How to fix unknown host on .dev TLD after using puma-dev

  1. Run scutil --dns
  2. Check if you have something like this in your output:
resolver #8
  domain   : dev
  nameserver[0] : 127.0.0.1
  port     : 9253
  flags    : Request A records, Request AAAA records
  reach    : 0x00030002 (Reachable,Local Address,Directly Reachable Address)
  1. If you do, go ahead and run sudo rm -rf /etc/resolver/dev
  2. Congrats, sites on .dev will work again. You can test with stripe.dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment