永久修改resolv解析

  
  
  
  
  1. cat resolv.conf 
  2. # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) 
  3. #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN 
  4. nameserver 127.0.0.1 

We see that DO NOT EDIT THIS FILE BU HAND,so if we change this file will be overwritten.we can edit this file

 

  
  
  
  
  1. cat /etc/resolvconf/resolv.conf.d/head
  2. nameserver 8.8.8.8 

 

 

 

你可能感兴趣的:(resolv)