NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/50191: /etc/rc.d/ntpd should also copy resolv.conf to chroot dir

>Number:         50191
>Category:       bin
>Synopsis:       /etc/rc.d/ntpd should also copy resolv.conf to chroot dir
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 02 07:55:00 +0000 2015
>Originator:     Takahiro Kambe
>Release:        NetBSD 6.1_STABLE
K. I. S. U. Inc.
NetBSD 6.1_STABLE NetBSD 6.1_STABLE (VMWARE-F7) #13: Tue Jul 14 17:24:53 JST 2015 amd64
Architecture: x86_64
Machine: amd64
/etc/rc.d/ntpd should also copy resolv.conf to chroot directory.
1. Run host without locally running DNS name server but specify
   name server(s) on other hosts in /etc/resolv.conf.
2. Prepare ntpd to start; configure /etc/ntp.conf properly
   refering NTP server using *hostname*.
3. In /etc/rc.conf, add these lines:


4. Start ntpd:

	# sh /etc/rc.d/ntpd start

Then, ntpd process dose not solve hostnames in ntp.conf trying to
resolve with local name server (which dose not exist).
Copy /etc/resolv.conf as /etc/services in /etc/rc.d/ntpd.

Home | Main Index | Thread Index | Old Index