Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Add localhost as a resolver #9

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions files/dnsmasq.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ keep-in-foreground
no-resolv

address=/dev/127.0.0.1
address=/localhost/127.0.0.1
address=/localhost.com/127.0.0.1
listen-address=127.0.0.1
8 changes: 8 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
notify => Service['dev.dnsmasq'],
}

file { '/etc/resolver/localhost':
content => 'nameserver 127.0.0.1',
group => 'wheel',
owner => 'root',
require => File['/etc/resolver'],
notify => Service['dev.dnsmasq'],
}

homebrew::formula { 'dnsmasq':
before => Package['boxen/brews/dnsmasq'],
}
Expand Down