<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;"><span class="" style="font-variant-ligatures: normal; background-color: rgb(252, 252, 252);">Hi,</span></span></div>
<div class=""><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;"><span class="" style="font-variant-ligatures: normal; background-color: rgb(252, 252, 252);"><br class="">
</span></span></div>
<div class=""><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;"><span class="" style="font-variant-ligatures: normal; background-color: rgb(252, 252, 252);">My
 OS is Centos7. I add a bash script dns.sh in /etc/dhcp/dhclient-exit-hooks.d . The script content is</span></span></div>
<div class=""><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;"><span class="" style="font-variant-ligatures: normal; background-color: rgb(252, 252, 252);"><br class="">
</span></span></div>
<div class=""><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;"><span class="" style="font-variant-ligatures: normal; background-color: rgb(252, 252, 252);">#!/bin/bash</span></span></div>
<span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">echo</span><span class="crayon-h" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(0, 111, 224) !important;">
</span><span class="" style="font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(250, 250, 250);">“</span><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">nameserver</span><span class="crayon-h" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(0, 111, 224) !important;">
</span><span class="crayon-cn" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">2400:da00::6666</span><span class="" style="font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(250, 250, 250);">”</span><span class="crayon-h" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(0, 111, 224) !important;">
</span><span class="crayon-o" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">>></span><span class="crayon-h" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(0, 111, 224) !important;">
</span><span class="crayon-o" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">/</span><span class="crayon-v" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">etc</span><span class="crayon-o" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">/</span><span class="crayon-v" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">resolv</span><span class="crayon-sy" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(51, 51, 51) !important;">.</span><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">conf</span>
<div class=""><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;"><br class="">
</span></div>
<div class=""><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">I
 want to append a Ipv6 nameserver in /etc/resolv.conf.</span></div>
<div class=""><span class="crayon-i" style="box-sizing: border-box; vertical-align: baseline; font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; outline: 0px; padding: 0px; margin: 0px; border: 0px; height: inherit; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; line-height: inherit !important; color: rgb(34, 34, 34) !important;">However,
 when I restart network. </span><span class="" style="caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; orphans: 2; white-space: pre-wrap; widows: 2;">/etc/resove.conf not changed.</span></div>
<div class=""><span class="" style="caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; orphans: 2; white-space: pre-wrap; widows: 2;">/etc/resolv.conf.save append this line. </span></div>
<div class=""><span class="" style="orphans: 2; widows: 2;"><font color="#222222" face="Monaco, MonacoRegular, Courier New, monospace" class=""><span class="" style="font-size: 14px; white-space: pre-wrap;">Why happens that? How can I append
</span></font></span><span class="" style="caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; orphans: 2; white-space: pre-wrap; widows: 2;">a nameserver in /etc/resove.conf?</span></div>
<div class=""><span class="" style="caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; orphans: 2; white-space: pre-wrap; widows: 2;"><br class="">
</span></div>
<div class=""><span class="" style="caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; orphans: 2; white-space: pre-wrap; widows: 2;">Zhengyu</span></div>
<div class=""><span class="" style="caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: Monaco, MonacoRegular, "Courier New", monospace; font-size: 14px; orphans: 2; white-space: pre-wrap; widows: 2;">Best Wishes</span></div>
如果您错误接收了该邮件,请通过电子邮件立即通知我们。请回复邮件到 hqs-spmc@chinaunicom.cn,即可以退订此邮件。我们将立即将您的信息从我们的发送目录中删除。 If you have received this email in error please notify us immediately by e-mail. Please reply to hqs-spmc@chinaunicom.cn ,you can unsubscribe from this mail. We will immediately
 remove your information from send catalogue of our.
</body>
</html>