Skip to content
Merged
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.2.3

- Updated mDNSResponder restart to avoid System Integrity Protections

## 1.2.2

- Removed the $HOME volume mount for the Dashboard
Expand Down
5 changes: 2 additions & 3 deletions cli/commands/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ func (cmd *Dns) ConfigureRoutes(machine Machine) {
util.StreamCommand(exec.Command("sudo", "launchctl", "unload", "-w", "/System/Library/LaunchDaemons/com.apple.discoveryd.plist"))
util.StreamCommand(exec.Command("sudo", "launchctl", "load", "-w", "/System/Library/LaunchDaemons/com.apple.discoveryd.plist"))
} else {
// Reset DNS. We have seen this suddenly make /etc/resolver/vm work.
// Reset DNS cache. We have seen this suddenly make /etc/resolver/vm work.
cmd.out.Verbose.Println("Restarting mDNSResponder to flush DNS caches")
util.StreamCommand(exec.Command("sudo", "launchctl", "unload", "-w", "/System/Library/LaunchDaemons/com.apple.mDNSResponder.plist"))
util.StreamCommand(exec.Command("sudo", "launchctl", "load", "-w", "/System/Library/LaunchDaemons/com.apple.mDNSResponder.plist"))
util.StreamCommand(exec.Command("sudo", "killall", "-HUP", "mDNSResponder"))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/urfave/cli"
)

const VERSION = "1.2.2"
const VERSION = "1.2.3"

// It all starts here
func main() {
Expand Down