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
>Organization:
K. I. S. U. Inc.
>Environment:
NetBSD nora.i.kisu.co.jp 6.1_STABLE NetBSD 6.1_STABLE (VMWARE-F7) #13: Tue Jul 14 17:24:53 JST 2015 sisbic-info%kisu.co.jp@localhost:/data/NetBSD-6/amd64.obj/sys/arch/amd64/compile/VMWARE-F7 amd64
Architecture: x86_64
Machine: amd64
>Description:
/etc/rc.d/ntpd should also copy resolv.conf to chroot directory.
>How-To-Repeat:
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:

	ntpd=YES
	ntpd_chrootdir="/var/chroot/ntpd"

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).
>Fix:
Copy /etc/resolv.conf as /etc/services in /etc/rc.d/ntpd.



Home | Main Index | Thread Index | Old Index