Problem with unbound resolving host

Jerry jerry at seibercom.net
Wed Jul 15 18:01:11 UTC 2020


On Tue, 14 Jul 2020 12:34:59 -0400, Lowell Gilbert stated:
>> FreeBSD 11.4-RELEASE-p1
>>
>> I have: local_unbound_enable="YES" in my /etc/rc.conf file. The
>> problem is with some utility programs like "curl" or "wget"
>>
>> When using either program to assess "https://www.spamhaus.org" a
>> failure message is emitted similar to the following:
>>
>> curl https://www.spamhaus.org
>> curl: (6) Could not resolve host: www.spamhaus.org
>>
>> The "nameserver" is set to "127.0.0.1" when that occurs. If I modify
>> it as shown below to "192.168.1.1" everything works fine.
>>
>> nameserver 192.168.1.1
>> options edns0  
>
>I'm sure that is in resolv.conf, but you should mention things like
>that.
>
>I'm also assuming that the machine you're trying this on actually has
>the address 192.168.1.1. Otherwise, um, yes, that's what should happen.
>
>Check if you're specifying "interface:" in your unbound.conf file. If
>you do, you want to include 127.0.0.1 in the set you specify.  However,
>unless you have a good reason, don't override it at all.
>
>Be well.

The router's address is "192.168.1.1". The machine's address is
"192.168.1.101". After every reboot, the address in the resolv.conf
file is reset to 127.0.0.1, which usually works, but not always.

This problem only started after updating from FreeBSD 11.4-RELEASE-p0
to "p1". I have no idea what that could have done though.

-- 
Jerry


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200714/59b8520a/attachment.sig>


More information about the freebsd-questions mailing list