Last active
          June 22, 2017 05:53 
        
      - 
      
- 
        Save arc279/00cf5ef7cc66ebfd3f863492d1ca82f7 to your computer and use it in GitHub Desktop. 
    /etc/hosts の切り替え cf. http://blog.keshi.org/hogememo/2015/09/06/hostaliases
  
        
  
    
      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
    
  
  
    
  | g google.com | 
  
    
      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
    
  
  
    
  | export HOSTALIASES=.hostaliases | |
| getent hosts g | |
| # http Host ヘッダも g になっちゃうので書き換え | |
| curl -v -L g -H "Host: google.com" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment