Skip to content

Instantly share code, notes, and snippets.

@juliangruber
Last active May 5, 2021 17:53

Revisions

  1. juliangruber revised this gist Nov 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,6 @@ $ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

    Next tell OSX to use it:

    Go to System Preferences -> Network -> Advanced -> DNS. Now remember the dns server you already have and add to entries: `127.0.0.1` and your former dns server. -> OK -> Apply.
    Go to System Preferences -> Network -> Advanced -> DNS. Now remember the dns server you already have and add two entries: `127.0.0.1` and your former dns server. -> OK -> Apply.

    And you're good to go!
  2. juliangruber revised this gist Nov 7, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -8,19 +8,19 @@ $ brew install dnsmasq
    Then create your configuration

    ```bash
    echo "address=/localhost/127.0.0.1" > /usr/local/etc/dnsmasq.conf
    $ echo "address=/localhost/127.0.0.1" > /usr/local/etc/dnsmasq.conf
    ```

    Now add it to your start up items:

    ```bash
    sudo cp -fv /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons
    $ sudo cp -fv /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons
    ```

    And launch it:

    ```bash
    sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
    $ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
    ```

    Next tell OSX to use it:
  3. juliangruber created this gist Nov 7, 2013.
    30 changes: 30 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    First, install [dnsmasq](http://www.thekelleys.org.uk/dnsmasq/doc.html) using [brew](http://brew.sh/):

    ```bash
    $ brew update
    $ brew install dnsmasq
    ```

    Then create your configuration

    ```bash
    echo "address=/localhost/127.0.0.1" > /usr/local/etc/dnsmasq.conf
    ```

    Now add it to your start up items:

    ```bash
    sudo cp -fv /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons
    ```

    And launch it:

    ```bash
    sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
    ```

    Next tell OSX to use it:

    Go to System Preferences -> Network -> Advanced -> DNS. Now remember the dns server you already have and add to entries: `127.0.0.1` and your former dns server. -> OK -> Apply.

    And you're good to go!