LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-14-2021, 04:09 PM   #1
chomwitt
Member
 
Registered: Jul 2020
Location: Hellas
Distribution: Devuan+XFCE
Posts: 53

Rep: Reputation: Disabled
Why Firefox wont respect my dns settings but dns utilities (dig, nslookup ) will ?


In my home lan i've installed a pizero with pihole with
static ip 192.168.1.201

From another host 192.168.1.200 i try:

$ dig youtube.com

Quote:
; <<>> DiG 9.11.3-1ubuntu1.13-Ubuntu <<>> youtube.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52737
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;youtube.com. IN A

;; ANSWER SECTION:
youtube.com. 2 IN A 0.0.0.0

;; Query time: 5 msec
;; SERVER: 192.168.1.201#53(192.168.1.201)
;; WHEN: Fri Jan 15 00:02:34 EET 2021
;; MSG SIZE rcvd: 45
But firefox can visit youtube.

How could an application use a different dns resolution procedure?

I have cleared firefox dns cache :
about:networking#dns
 
Old 01-14-2021, 04:18 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
What are you asking?

192.168.1.201 is doing NAT? And it has it's own DNS config?

What is in resolv.conf for 192.168.1.200, are you using 192.168.1.201 as your DNS? Looks like it.
 
Old 01-14-2021, 04:33 PM   #3
chomwitt
Member
 
Registered: Jul 2020
Location: Hellas
Distribution: Devuan+XFCE
Posts: 53

Original Poster
Rep: Reputation: Disabled
192.168.1.201 is a pizero where i installed pihole. I dont know anything else about its config.
And its attached by cable to the home gateway.


That /etc/resolv.conf in the host 192.168.1.200 from where i try the tests.
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 192.168.1.201
nameserver 192.168.1.201
nameserver 192.168.1.1
nameserver fe80::1%wlxc025e91a0bef


And:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

....
#hosts: files dns mdns4_minimal [NOTFOUND=return]
#hosts: files mdns4_minimal [NOTFOUND=return] dns
hosts: files
....

yep hosts is only to files!! but firefox has no problem! but ping does!


systemd services running:
resolvconf.service
dhcpcd.service
NetworkManager.service
---------------------------------------------------
I have disabled systemd-resolved service.
I cant disable resolvconf.service

I dont now who wrote to /etc/resolv.conf . I had only one entry in :
/etc/resolvconf/resolv.conf.d/head
nameserver 192.168.1.201

Last edited by chomwitt; 01-14-2021 at 04:48 PM.
 
Old 01-14-2021, 08:11 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,381
Blog Entries: 28

Rep: Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163
I'm not certain, but this might be relevant: https://blog.mozilla.org/blog/2020/0...-for-us-users/
 
2 members found this post helpful.
Old 01-16-2021, 02:42 AM   #5
chomwitt
Member
 
Registered: Jul 2020
Location: Hellas
Distribution: Devuan+XFCE
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
I'm not certain, but this might be relevant: https://blog.mozilla.org/blog/2020/0...-for-us-users/
Thanks. Indeed. Firefox seems to do its own dns resolution. In a host
of my homelan with a headless pizero + pihole wired to the gateway ,
epiphany , falcon and chromium use the /etc/resolv.conf which point to
my pihole. Only firefox 84.0.2 do it owns dns resolution.
Could other forum members please fact-check that?

So its weird the firefox says it tried to do something good , like securing the dns resolution , but it in my case it took two nights of troubleshooting , messing with :

/etc/network/interfaces

/etc/hosts

/etc/nsswitch.conf

systemd-resolved

resolvconf.service

networkmanager (and it gui+text utilities nmcli ..)

dhcpcd (thats a dhcp server that i dont know why
it was installed. i removed it eventually)

dhcp client

and netplan!...

and all the above x 4 (as the hosts of my homelan)

just to find out that firefox does dns resolution on its own.

Now i have uninstalled it on that host.


So sidetracking a little i am wondering can a linux distro or a homelan ''admin'' enforce a single dns resolution policy?

And sidetracking a little more.. Do a little home-host needs all that dns-network services, caches , middlewares etc ?

I wrote a question weeks ago in LQ on seeing containers as overprovisioned guests.
Now do we have also have home host distros with overprovisioned lan configuration ?

Last edited by chomwitt; 01-16-2021 at 03:01 AM.
 
Old 01-16-2021, 03:51 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by chomwitt View Post
Firefox seems to do its own dns resolution.
Not necessarily. Mine doesn't, and doesn't default to it either.
Have you checked
Preferences => General => Network Settings => Settings => Enable DNS over HTTPS
???
 
Old 01-16-2021, 04:57 AM   #7
chomwitt
Member
 
Registered: Jul 2020
Location: Hellas
Distribution: Devuan+XFCE
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Not necessarily. Mine doesn't, and doesn't default to it either.
Have you checked
Preferences => General => Network Settings => Settings => Enable DNS over HTTPS
???
Thanks. I checked it. It's not enabled.
Still if that was the case , wouldn't that qualify as 'firefox does it's own dns resolution'
since it ignores /etc/resolv.conf ?

Anyway still firefox does sth different. I see in my pihole that it tries mozilla-cloudfare.com .

Last edited by chomwitt; 01-16-2021 at 05:04 AM.
 
Old 01-16-2021, 01:22 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ Yes, I was hoping you'd have to UNcheck it.
 
Old 01-16-2021, 02:27 PM   #9
chomwitt
Member
 
Registered: Jul 2020
Location: Hellas
Distribution: Devuan+XFCE
Posts: 53

Original Poster
Rep: Reputation: Disabled
Interersting. NSA has made a public announcement on DoH.

Without being a spy , my recent experience with the pihole , makes me also sceptical of the shortcomings of allowing
each application in a system to has its own dns resolution process, creating issues with any effort for central
control of dns traffic in a network.

Last edited by chomwitt; 01-16-2021 at 02:29 PM.
 
Old 01-17-2021, 12:16 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
FF defaults to using cloudflare for DNS over HTTPS; personally, I don't see how this is an improvement to unencrypted DNS reequests.
 
1 members found this post helpful.
Old 01-18-2021, 12:24 PM   #11
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Devuan Beowulf
Posts: 514
Blog Entries: 1

Rep: Reputation: 37
I don't think its aimed at security. It's more aimed at being inclusive. Cloudflare probably doesn't censor who is in its dns list. So by forcibly using those DNS servers, you can bypass any censorship being implemented at the local and ISP level.

It was probably implemented as a feature to defeat China and Russian internet censorship, amongst the many other countries. It isn't about security.

@OP. Try Seamonkey latest version if you need a FF type browser that has less crap in it. It uses latest ESR code but doesnt come with the DNS bypass as far as I know, not yet anyway. Alternatively, you could compile from source and get rid of those features maybe at the compile level. I honestly dont see FF being usable by corporate or business clients very soon. The amount of bloat that gets added is making it less of a good choice.
 
1 members found this post helpful.
  


Reply

Tags
dns, firefox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dig/NSLookup works ... ping doesn't ... but, it used to sundialsvcs Linux - Networking 7 06-15-2016 06:21 AM
Dig, host, nslookup? gsibble Arch 2 01-25-2015 03:36 AM
nslookup/dig command not found Axion Slackware 8 02-11-2010 06:23 PM
dig, nslookup rpm ashley7 Linux - Software 0 04-05-2004 08:27 AM
DIG / NSLOOKUP message? matrx88 Linux - Networking 1 08-20-2003 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration