用resolvconf配置resolv.conf:

  1. 编辑文件temp

    nameserver 8.8.8.8 nameserver 8.8.4.4

  2. 执行

    cat temp resolvconf -a eth0