Created
          June 13, 2021 05:22 
        
      - 
      
- 
        Save bytemain/44cfb6bfecbc5dcbabe6b07e634a65f2 to your computer and use it in GitHub Desktop. 
    MacOS X DNS related
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| echo "restart dnscrypt-proxy..." | |
| sudo brew services restart dnscrypt-proxy | |
| echo "restart dnsmasq..." | |
| sudo brew services restart dnsmasq | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| echo "start dnscrypt-proxy..." | |
| sudo brew services start dnscrypt-proxy | |
| echo "start dnsmasq..." | |
| sudo brew services start dnsmasq | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sudo brew services list | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | networksetup -setdnsservers Wi-Fi empty | |
| networksetup -getdnsservers Wi-Fi | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | networksetup -setdnsservers Wi-Fi 127.0.0.1 | |
| networksetup -getdnsservers Wi-Fi | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment