all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: znavko@disroot.org
Cc: help-guix@gnu.org
Subject: Re: Which dns server my system is using?
Date: Mon, 23 Nov 2020 19:19:15 +0100	[thread overview]
Message-ID: <87mtz87x7g.fsf@nckx> (raw)
In-Reply-To: <fd5cf2078e3f2d8043bbd6fa401c19f6@disroot.org>

[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]

znavko@disroot.org 写道:
> Yes, Tobias, I thought that 192.168.1.1 is just my modem 
> and as far as my modem is not a DNS server I still
> keep digging.

Are you sure?  Most home routers do include their own DNS server.

It's already running (GNU/)Linux, a DHCP server, and probably a 
tonne of vulnerable outdated software, after all.  They might as 
well add a low-performance caching DNS server to completely 
overload its slow CPU.  It could even be dnsmasq.

This built-in DNS server (or recursive resolver, to give it its 
Latin name) is advertised by the modem through the DHCP response. 
Your PC's DHCP client then wrote it to /etc/resolv.conf.

> Does this mean I use those DNS servers my Internet provider 
> uses?

In effect.  When your PC asks your modem's stub DNS resolver for a 
DNS record, your modem will either return a cached response or it 
will reach out to whichever resolver(s) are configured in the 
modem firmware.  Some modems let you change these from the ISP 
defaults, or even disable the function completely, others don't.

> But DNSmask runs quickly and easy only with NetworkManager that 
> I cannot stand for.

Yeah, this is how I use it (I quite like NM).  I've never set it 
up on its own with Guix.

> Can I use another DNS server? and may be I will be able to 
> access those sites RKN banned,
> for example realmusic.ru

I can't give you exact advice/commands but you absolutely can.

On a fully manual system, you'd edit /etc/resolv.conf and be done. 
Writing, e.g., ‘nameserver 9.9.9.9’ (not an endorsement) will send 
all DNS queries there instead of to your modem.

If you run any kind of daemon (even dhcp-client), it will probably 
want to manage /etc/resolv.conf for you.  You'll have to ask it 
not to, or to write your preffered DNS server there instead of the 
autodiscovered one.  The Guix manual doesn't seem to document how.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

  reply	other threads:[~2020-11-23 18:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-23 16:40 Which dns server my system is using? znavko--- via
2020-11-23 17:19 ` Tobias Geerinckx-Rice
2020-11-23 17:41 ` znavko
2020-11-23 18:19   ` Tobias Geerinckx-Rice [this message]
2020-11-23 18:00 ` Julien Lepiller
2020-11-23 21:48   ` aviva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtz87x7g.fsf@nckx \
    --to=me@tobias.gr \
    --cc=help-guix@gnu.org \
    --cc=znavko@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.