Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. dhclient hook not overwritten /etc/resolv.conf 
      (Zhengyu Pan (???????????????))
   2. Re: dhclient hook not overwritten /etc/resolv.conf (Pavel Zhukov)
   3. Re: dhclient hook not overwritten /etc/resolv.conf
      (Zhengyu Pan (???????????????))


----------------------------------------------------------------------

Message: 1
Date: Thu, 19 Dec 2019 12:36:26 +0000
From: Zhengyu Pan(???????????????) <panz...@chinaunicom.cn>
To: "dhcp-users@lists.isc.org" <dhcp-users@lists.isc.org>
Subject: dhclient hook not overwritten /etc/resolv.conf 
Message-ID: <30b5a224-0101-45e6-8d24-14c0f1dc2...@chinaunicom.cn>
Content-Type: text/plain; charset="utf-8"

Hi,

My OS is Centos7. I add a bash script dns.sh in /etc/dhcp/dhclient-exit-hooks.d 
. The script content is

#!/bin/bash
echo ?nameserver 2400:da00::6666? >> /etc/resolv.conf

I want to append a Ipv6 nameserver in /etc/resolv.conf.
However, when I restart network. /etc/resove.conf not changed.
/etc/resolv.conf.save append this line.
Why happens that? How can I append a nameserver in /etc/resove.conf?

Zhengyu
Best Wishes
???????????????????????????????? 
hqs-s...@chinaunicom.cn???????????????????????????????? If you have received 
this email in error please notify us immediately by e-mail. Please reply to 
hqs-s...@chinaunicom.cn ,you can unsubscribe from this mail. We will 
immediately remove your information from send catalogue of our.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20191219/4826a381/attachment-0001.htm>

------------------------------

Message: 2
Date: Thu, 19 Dec 2019 14:49:41 +0100
From: Pavel Zhukov <pzhu...@redhat.com>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: dhclient hook not overwritten /etc/resolv.conf
Message-ID:
        <CAHPvjJ+9QxjMjqcgCbv6nu7oTyfgAGst6czC0=mvnlpz97f...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hello,

Does the hook have executable flag set?

On Thu, Dec 19, 2019 at 1:36 PM Zhengyu Pan(???????????????)
<panz...@chinaunicom.cn> wrote:
>
> Hi,
>
> My OS is Centos7. I add a bash script dns.sh in 
> /etc/dhcp/dhclient-exit-hooks.d . The script content is
>
> #!/bin/bash
> echo ?nameserver 2400:da00::6666? >> /etc/resolv.conf
>
> I want to append a Ipv6 nameserver in /etc/resolv.conf.
> However, when I restart network. /etc/resove.conf not changed.
> /etc/resolv.conf.save append this line.
> Why happens that? How can I append a nameserver in /etc/resove.conf?
>
> Zhengyu
> Best Wishes
> ???????????????????????????????? 
> hqs-s...@chinaunicom.cn???????????????????????????????? If you have received 
> this email in error please notify us immediately by e-mail. Please reply to 
> hqs-s...@chinaunicom.cn ,you can unsubscribe from this mail. We will 
> immediately remove your information from send catalogue of our.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users



-- 
Pavel Zhukov
Software Engineer
IRC: landgraf

------------------------------

Message: 3
Date: Thu, 19 Dec 2019 14:37:02 +0000
From: Zhengyu Pan(???????????????) <panz...@chinaunicom.cn>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: dhclient hook not overwritten /etc/resolv.conf
Message-ID: <9dd2e829-eb45-43df-8edc-9a0d56a6d...@chinaunicom.cn>
Content-Type: text/plain; charset="utf-8"

Yes, the hook has executable flag set.  But it written to /etc/resolv.conf.save.

Zhengyu
Thanks.

> 2019?12?19? ??9:49?Pavel Zhukov <pzhu...@redhat.com> ???
>
> Hello,
>
> Does the hook have executable flag set?
>
> On Thu, Dec 19, 2019 at 1:36 PM Zhengyu Pan(???????????????)
> <panz...@chinaunicom.cn> wrote:
>>
>> Hi,
>>
>> My OS is Centos7. I add a bash script dns.sh in 
>> /etc/dhcp/dhclient-exit-hooks.d . The script content is
>>
>> #!/bin/bash
>> echo ?nameserver 2400:da00::6666? >> /etc/resolv.conf
>>
>> I want to append a Ipv6 nameserver in /etc/resolv.conf.
>> However, when I restart network. /etc/resove.conf not changed.
>> /etc/resolv.conf.save append this line.
>> Why happens that? How can I append a nameserver in /etc/resove.conf?
>>
>> Zhengyu
>> Best Wishes
>> ???????????????????????????????? 
>> hqs-s...@chinaunicom.cn???????????????????????????????? If you have received 
>> this email in error please notify us immediately by e-mail. Please reply to 
>> hqs-s...@chinaunicom.cn ,you can unsubscribe from this mail. We will 
>> immediately remove your information from send catalogue of our.
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
>
> --
> Pavel Zhukov
> Software Engineer
> IRC: landgraf
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

???????????????????????????????? 
hqs-s...@chinaunicom.cn???????????????????????????????? If you have received 
this email in error please notify us immediately by e-mail. Please reply to 
hqs-s...@chinaunicom.cn ,you can unsubscribe from this mail. We will 
immediately remove your information from send catalogue of our.

------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 134, Issue 7
******************************************

Reply via email to