Wols Lists wrote:
> On 06/03/2023 08:08, Neil Bothwick wrote:
>> On Mon, 6 Mar 2023 07:54:51 +0000, Wols Lists wrote:
>>
>>> There's another file - can't remember its name - that tells your
>>> resolver what to try in what order - the hosts file, dns, what dhcp
>>> told you, etc etc, so your resolver might not be using dns the way you
>>> think.
>>
>> Do you mean /etc/nsswitch.conf?
>>
>>
> Ah yes. Any idea why Firefox seems to ignore it? Whenever I try to
> browse to local machines in /etc/hosts, firefox gives me a google
> search page which is a bloody nuisance. If I type a VALID ADDRESS in
> the ADDRESS BAR, that's where I expect to go! Not some damn random
> search page!
>
> Cheers,
> Wol
>
>


I found where someone posted about Firefox, it seems you can change that
in preferences.  You just uncheck a box.  Anyway.

I looked at the nsswitch file.  I'm not 100% sure what it says but it
looks like others I've found.  Basically, it points to /etc and that's
it, for network stuff anyway.  So, I dug around some more.  I found a
command that shows what it is seeing and should be using.  This is the info:


root@fireball / # resolvconf -l
# resolv.conf from tun0
# Generated by openvpn for interface tun0
nameserver 162.252.172.57
nameserver 149.154.159.92

# resolv.conf from tun0.inet
nameserver 162.252.172.57
nameserver 149.154.159.92

# resolv.conf from enp3s0
# Generated by netifrc for interface enp3s0
nameserver 8.8.8.8
nameserver 8.8.4.4

# resolv.conf from enp3s0.dhcp
# Generated by dhcpcd from enp3s0.dhcp
nameserver 10.0.0.1

root@fireball / #


I left the IPs Surfshark gave me in this one.  As you can see tho, for
my VPN it should be using the ones I'm telling it to use, manually. 
Thing is, it isn't.  This is a link to the website Surfshark sent me and
the info it says it is using for DNS lookup. 

https://surfshark.com/check

DNS addresses:
107.179.20.190 / United States of America, Los Angeles / LayerHost

As one can tell, I don't have the IP for DNS listed anywhere up there. 
So, it seems one part is seeing the changes I want to make but the rest
is just plain ignoring me.  Do I need to do something for those to take
effect or do they just work?  I restarted both the VPN and my regular
network.  What am I missing here? 

Thanks.

Dale

:-)  :-) 


Reply via email to