how to know what DNS server is being used

Shamim Shahriar shamim.shahriar at gmail.com
Sat Jun 10 17:28:22 UTC 2017


On 10 Jun 2017 4:04 pm, "Ernie Luzar" <luzar722 at gmail.com> 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 at 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


More information about the freebsd-questions mailing list