You are not logged in.

#1 2023-08-03 22:23:00

thisismyusernamebro
Member
Registered: 2023-08-03
Posts: 7

DNS Host Resolution Issues [SOLVED]

For some reason I'm having a lot of problems with my dns settings. I think it may be connected to my attempt at setting up protonvpn with qbittorrent yesterday. I don't have complete recollection but I probably ended up messing with my dns settings somehow. At first nothing was working, but after I edited /etc/resolv.conf to "nameserver 194.242.2.2" and /etc/systemd/resolved.conf to "DNS=194.242.2.2" (all other lines are commented out). Firefox stopped having issues. However, even with this solution Prism Launcher, a minecraft launcher, and pacman -Syu will not work. And in order for firefox to work, I have to reedit /etc/resolv.conf upon each boot (I'm aware this is intentional functionality). My firefox dns settings are set to max protection on custom, with https://doh.mullvad.net/dns-query as the custom dns (ips used for both conf files are mullvad dns). Other computers on the same network are functioning fine.

Last edited by thisismyusernamebro (2023-08-05 16:55:57)

Offline

#2 2023-08-04 06:49:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,119

Re: DNS Host Resolution Issues [SOLVED]

dig @194.242.2.2 google.com
dig @1.1.1.1 google.com

194.242.2.2 is a mullvad server and will require that service to be properly configured and you logged in there and whatnot in order to give you a DNS
https://wiki.archlinux.org/title/Mullvad

Please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Offline

#3 2023-08-04 16:42:18

thisismyusernamebro
Member
Registered: 2023-08-03
Posts: 7

Re: DNS Host Resolution Issues [SOLVED]

When I try to install bind (and any other package I'm met with this output:

$ sudo pacman -S bind
resolving dependencies...
looking for conflicting packages...

Packages (3) jemalloc-1:5.3.0-2  libmaxminddb-1.7.1-1  bind-9.18.17-1

Total Download Size:   2.34 MiB
Total Installed Size:  8.72 MiB

:: Proceed with installation? [Y/n] Y 
:: Retrieving packages...
 bind-9.18.17-1-x86_64
 Total (0/3)                                                                          0.0   B  0.00   B/s 00:00 [-------------------------------------------------------------------]   0%

Here's the output of the second command:

$ find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
bluetooth.service                        | bluetooth.target.wants
dbus-org.bluez.service                   | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.timesync1.service   | system
display-manager.service                  | system
docker.service                           | multi-user.target.wants
gcr-ssh-agent.socket                     | sockets.target.wants
getty@tty1.service                       | getty.target.wants
gnome-keyring-daemon.socket              | sockets.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire-pulse.socket                    | sockets.target.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
systemd-timesyncd.service                | sysinit.target.wants
waydroid-container.service               | multi-user.target.wants
wireplumber.service                      | pipewire.service.wants

Forgot to mention this, but when I have firefox dns settings set to "Off: Use your default DNS resolver", any attempt to connect to a site gives me a typical server not found error.

Hmm. We’re having trouble finding that site.

We can’t connect to the server at phoenixnap.com.

If you entered the right address, you can:

    Try again later
    Check your network connection
    Check that Firefox has permission to access the web (you might be connected but behind a firewall)

Last edited by thisismyusernamebro (2023-08-04 16:47:00)

Offline

#4 2023-08-04 17:53:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,119

Re: DNS Host Resolution Issues [SOLVED]

Download the bind package with another system, usb walk it to the problematic one and install it w/ "pacman -U"

You don't seem to have resolved enabled (not sure whether NM will just launch it by itself)

resolvectl status

Also post the contents of /etc/resolv.conf before editing it.

Lastly, the mullvad-daemon.service isn't enabled so I'd not expect their DNS to work for you?

Offline

#5 2023-08-04 18:39:15

thisismyusernamebro
Member
Registered: 2023-08-03
Posts: 7

Re: DNS Host Resolution Issues [SOLVED]

resolvectl status returns:

Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found.

and /etc/resolv.conf before editing looks like this:

Generated by NetworkManager
nameserver ::1

Also correct me if I'm wrong but I thought the mullvad-daemon service was only necessary to run mullvad vpn?

Haven't downloaded the bind package yet, will give update asap.

Offline

#6 2023-08-04 18:46:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,119

Re: DNS Host Resolution Issues [SOLVED]

You're not using resolved, editing /etc/systemd/resolved.conf is idempotent.
Change the NM settings and specify 1.1.1.1 as DNS server, you can also briefly manually edit etc/resolv.conf to that effect

nameserver 1.1.1.1

Should™ get you usable DNS (via cloudflares open DNS server), whether that's what you want is a different matter.

You can test

nmap -p 53 _gateway

on whether eg. your router has a DNS server (or stub) and otherwise might want to use resolved or a local dnsmasq instance.

Edit:

the mullvad-daemon service was only necessary to run mullvad vpn?

Yes, of course. But you were also trying to use their DNS…

Last edited by seth (2023-08-04 18:47:44)

Offline

#7 2023-08-04 18:47:09

thisismyusernamebro
Member
Registered: 2023-08-03
Posts: 7

Re: DNS Host Resolution Issues [SOLVED]

Was able to install bind locally by downloading from mirrors, had to grab some dependencies though.

dig @194.242.2.2 google.com returns:

; <<>> DiG 9.18.17 <<>> @194.242.2.2 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 47215
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: dad2a98c9ef46b5b0100000064cd474611ea770018a1ff08 (good)
;; QUESTION SECTION:
;google.com.			IN	A

;; Query time: 213 msec
;; SERVER: 194.242.2.2#53(194.242.2.2) (UDP)
;; WHEN: Fri Aug 04 14:45:23 EDT 2023
;; MSG SIZE  rcvd: 67

dig @1.1.1.1 google.com returns:

; <<>> DiG 9.18.17 <<>> @1.1.1.1 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16524
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		172	IN	A	74.125.136.113
google.com.		172	IN	A	74.125.136.138
google.com.		172	IN	A	74.125.136.100
google.com.		172	IN	A	74.125.136.101
google.com.		172	IN	A	74.125.136.139
google.com.		172	IN	A	74.125.136.102

;; Query time: 4 msec
;; SERVER: 1.1.1.1#53(1.1.1.1) (UDP)
;; WHEN: Fri Aug 04 14:46:25 EDT 2023
;; MSG SIZE  rcvd: 135

Offline

Board footer

Powered by FluxBB