From owner-freebsd-questions@FreeBSD.ORG Tue Jun 4 03:24:15 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0FC7F62D for ; Tue, 4 Jun 2013 03:24:15 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from zoom.lafn.org (zoom.lafn.org [108.92.93.123]) by mx1.freebsd.org (Postfix) with ESMTP id E20B017CC for ; Tue, 4 Jun 2013 03:24:14 +0000 (UTC) Received: from mbook.westell.com ([50.123.213.115]) (authenticated bits=0) by zoom.lafn.org (8.14.3/8.14.2) with ESMTP id r542vF5n052246 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 3 Jun 2013 19:57:17 -0700 (PDT) (envelope-from bc979@lafn.org) From: Doug Hardie Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: System Calls that do DNS Message-Id: Date: Mon, 3 Jun 2013 19:57:07 -0700 To: freebsd-questions Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-Virus-Scanned: clamav-milter 0.97 at zoom.lafn.org X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2013 03:24:15 -0000 I have an unusual situation. A program is doing a DNS lookup and often = the IP address has no reverse DNS entries. As a result the program = hangs for several timeouts. The call is not being made directly in its = code, but is occurring in a system call. There are no specific calls to = DNS, its something else doing it. I have been trying to track down = which system call is doing it, but without success so far. I have tried = syslog calls around each of the system calls I thought might be the = culprit, but my guessing is not very good. How can I identify the = system call that is calling DNS? If I can find it, I hopefully can find = another way to do whatever it does that does not involve a reverse DNS = lookup.