NetBSD-Bugs archive

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

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



The following reply was made to PR bin/50191; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/50191: /etc/rc.d/ntpd should also copy resolv.conf to chroot
 dir
Date: Sun, 6 Sep 2015 00:07:32 +0000

 On Wed, Sep 02, 2015 at 07:55:00AM +0000, taca%back-street.net@localhost wrote:
  > >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.
 
 What happens if /etc/resolv.conf is being manipulated by dhcp?
 
 (Maybe we just don't care about that case...)
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index