/etc/resolvconf/resolv.conf.d/base に public dns サーバを書き込む。
# cat <<EOT>> /etc/resolvconf/resolv.conf.d/base nameserver 129.250.35.250 nameserver 8.8.8.8 nameserver 129.250.35.251 nameserver 8.8.4.4 EOT # cat /etc/resolvconf/resolv.conf.d/base nameserver 129.250.35.250 nameserver 8.8.8.8 nameserver 129.250.35.251 nameserver 8.8.4.4
変更の反映前後の差。んーXXX.XXX.XXX.XXXを使わない方法はないものだろうか。。。
# cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver XXX.XXX.XXX.XXX search ************ # resolvconf -u # cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver XXX.XXX.XXX.XXX nameserver 129.250.35.250 nameserver 8.8.8.8 search ************