From owner-freebsd-questions@freebsd.org Sat Jun 10 17:28:22 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97970BF28B5 for ; Sat, 10 Jun 2017 17:28:22 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 281E6808D5 for ; Sat, 10 Jun 2017 17:28:22 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: by mail-wr0-x22f.google.com with SMTP id v111so59613481wrc.3 for ; Sat, 10 Jun 2017 10:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KG0ib1sYHX+b8ZIMquCQ4moVFT9uictcrDXLh9L4ssc=; b=NCHSWM7OyUeyLNWFZXCFeQoGraxb1wh3aw4fbPGZKEkgJDdcyuS8Dw5zfOILHAcy3s h3CfShNBEkVKU6T1txUVY5tWkDS1mXO8sIbLeEABMZyvWcbmwaZGDMrJE56FjDoZ9SQ3 y98LL+GjbWs5OEn24vraVQfDPYnn76F1CeYZykFfK4c2UzjdWwtci+WlmZaxdURoZs/l +53T4CQ1LlGsX5UyJHqh/qjISHhykdifsA/oSuMLTBSMW/OWthGY5oAOVRBzdLErUYck wlpehn0UOIAjXLLw+7vMLKNwR7M2btRuWZPROHJzZs1nZx6YbwkUHWKQbnGYbNzIzhZx D1TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KG0ib1sYHX+b8ZIMquCQ4moVFT9uictcrDXLh9L4ssc=; b=mghi58j9Lc9VW37YUxuKjkk25FwpVCEqKA7AwsGbjAhvjwucF3UhRNrGB5DMPDkIzg Os0/uc7lWZ3SmiqG6YTRffdC94V+VAaFPyNyQwUX141YFAecI2rV8ZnfsDUmQq3Gi188 qsTIMwQzLr8j1Sm2E7HAKTzcw4+t4qwCEbSsCxYoQcjSUts44y7ZhqjeUXPwztT7ii7M auRAz8Mr1J0FlJXPgUDVKJwFLaSoyvt0o2P2lXpmqcpy4uFe+9O2VjKlTXC/cJ8gUdlm xeBCLbaMdsfHJW9pZ1HYhjDwngCC7bln5JitOzTfzgqpLYwkIkjC2/CZF+w74wEp17PY Vwfg== X-Gm-Message-State: AODbwcAyhZ+xALxFnXcJmwsu/jF+9GCF9QcHNZ8Y/wYn7kOTR87vLd33 cWxnZkR6sNUU6dVllxs26zmWGJ/mVQ== X-Received: by 10.80.174.69 with SMTP id c63mr3308266edd.43.1497115700519; Sat, 10 Jun 2017 10:28:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.149.246 with HTTP; Sat, 10 Jun 2017 10:28:19 -0700 (PDT) Received: by 10.80.149.246 with HTTP; Sat, 10 Jun 2017 10:28:19 -0700 (PDT) In-Reply-To: References: <80AB0139-6BF5-4B8D-9CCF-1FE445AA26CF@bellsouth.net> <1495679620.341619.987871464.4177A961@webmail.messagingengine.com> <20170610201735.GB3141@HP> <20170610225450.GD12437@HP> <593C0A3C.2010307@gmail.com> From: Shamim Shahriar Date: Sat, 10 Jun 2017 18:28:19 +0100 Message-ID: Subject: Re: how to know what DNS server is being used To: Ernie Luzar Cc: Yubin Ruan , "freebsd-questions@FreeBSD.org" , Baho Utot Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2017 17:28:22 -0000 On 10 Jun 2017 4:04 pm, "Ernie Luzar" wrote: Yubin Ruan wrote: > On Sat, Jun 10, 2017 at 09:46:11AM -0400, Baho Utot wrote: > >> >> On 06/10/17 16:17, Yubin Ruan wrote: >> >>> On Wed, May 24, 2017 at 11:33:40PM -0300, Fernando Milovich wrote: >>> >>>> cat /etc/resolv.conf >>>> >>> Is this the standard? I mean, can a system use some other files to >>> specify >>> their DNS server? >>> >>> -- >>> Yubin >>> >> It is working correctly. Why would you want to use another file to manage >> name servers? >> >> This is not windows >> > > For example, dnsmasq do not use /etc/resolv.conf > > /Yubin > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe > @freebsd.org" > > The system uses /etc/resolv.conf and it gets populated at boot time if your using DCHP on the interface facing the pubic internet as defined in /etc/rc.conf. dnsmasq is a port commonly used for DNS on a LAN. This is totally different than what the system does with DNS. Do not confuse the two as they perform different functions. Further to Earnie's point, dnsmasq does use /etc/resolve.conf, please check the documentation. Thanks