From owner-freebsd-questions Sat Apr 20 0:41: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dns.perimeter.co.za (dns.perimeter.co.za [196.25.164.254]) by hub.freebsd.org (Postfix) with ESMTP id 87B2B37B405 for ; Sat, 20 Apr 2002 00:40:51 -0700 (PDT) Received: from there (ndf-dial-196-30-223-145.mweb.co.za [196.30.223.145]) by dns.perimeter.co.za (8.11.1/8.11.1) with SMTP id g3K7eUL32428; Sat, 20 Apr 2002 09:40:31 +0200 (SAST) (envelope-from bsd@perimeter.co.za) Content-Type: text/plain; charset="iso-8859-1" From: "Patrick O'Reilly" Organization: Perimeter Networks CC Message-Id: <200204200938.22612@.perimeter.co.za> To: "M. L. Dodson" , freebsd-questions@FreeBSD.ORG Subject: Re: resolver library and changes in /etc/resolv.conf Date: Sat, 20 Apr 2002 09:46:22 +0200 X-Mailer: KMail [version 1.3.2] References: <200204190033.g3J0XTW00916@siegfried.utmb.edu> In-Reply-To: <200204190033.g3J0XTW00916@siegfried.utmb.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri 19 Apr 02 02:33, M. L. Dodson wrote: > I had the occasion to change the name server > entries in /etc/resolv.conf. I thought (wrongly it turns out) > that I could just make the changes, and they would be picked up > automatically. Bud, That has always worked for me! You aren't running named on the box are you? Remember that resolv.conf is used for client processes to find nameservers, but the named process uses the "forwarders" entry in named.conf to find other (upstream) nameservers. But if you are not using named at all then this should not be your problem. > Is this sendmail remembering the name server list it > got when it was started? Can I just send it a HUP and have it pick up > the changes? I know that going down to single user and back to > multiuser is sufficient, but is there a less intrusive way to force > the changes to be recognized? I would like a procedure that worked > globally for all processes, not just sendmail, if possible. here's my favorite "One size fits all" solution: # kill -HUP `head -1 /var/run/sendmail.pid` You can substitute most other daemon names where "sendmail" appears, and it will work. For a full list, try: # ls -al /var/run/*.pid > TIA, > > Bud Dodson -- Regards, Patrick O'Reilly.     ___        _            __    / _ )__ __ (_)_ __ ___ _/ /____ __   / __/ -_) _) /  ~  ) -_), ,-/ -_) _)  /_/  \__/_//_/_/~/_/\__/ \__/\__/_/     http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message