Skip to content

Docs on DNS config #1380

Answered by drbyte
Synchro asked this question in Q&A
Mar 16, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Here's what Valet does for DNS:

  1. Upon installation it configures dnsmasq to support placing custom dnsmasq configs into ~/.config/valet/dnsmasq.d
    and then internally runs valet tld test to configure the .test TLD as default, as described below:

  2. When the valet tld [TLD] command is run, a generic TLD config is created in the dnsmasq configuration:
    eg, for valet tld test which configures .test as the default TLD for all valet-controlled domains:

  • creates ~/.config/valet/dnsmasq.d/tld-test.conf, containing two directives that allow dnsmasq to know how to handle .test lookups:
    address=/.test/127.0.0.1
    listen-address=127.0.0.1
  • adds a MacOS /etc/resolver/test text file which spec…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Synchro
Comment options

Answer selected by Synchro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants