DNS resolution is unreliable

Pinging and hence browsing domains over the internet using a local DNS server results in very unreliable/spotty resolution, While pinging a domain continuously or trying to load a website it takes upwards of 10-15 seconds for the request to even hit the DNS server which was deduced by actively monitoring the query log on my local AGH server. Other clients are able to instantly resolve domains and hence most likely not a issue with my AGH server.

Requests are being expanded to .lan domains when hitting AGH which points to some misconfiguration on my device’s end.

Due to the .lan suffix the requests are being handed over to the local domain resolver on my router which obviously is unable to resolve said domain.

/etc/nsswitch.conf

# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files systemd
group: files [SUCCESS=merge] systemd
shadow: files systemd
gshadow: files systemd

publickey: files

hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files
System:
  Kernel: 6.13.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=0f293667-6ba2-4617-b351-21cdbb1f9ccd rw rootflags=subvol=@
    quiet rd.luks.uuid=5dc4e883-7d4f-4a0c-9a7c-b9772d952214 loglevel=3
    ibt=off
  Desktop: KDE Plasma v: 6.2.5 tk: Qt v: N/A info: frameworks v: 6.10.0
    wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X421FAY_K413FA
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: X421FAY v: 1.0 serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends v: X421FAY.304
    date: 01/04/2021
Battery:
  ID-1: BAT0 charge: 22.2 Wh (84.7%) condition: 26.2/42.1 Wh (62.3%)
    power: 11.2 W volts: 11.8 min: 11.8 model: ASUSTeK ASUS Battery type: Li-ion
    serial: N/A status: charging cycles: 611
CPU:
  Info: model: Intel Core i3-10110U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check gen: core 10 level: v3 note: check
    built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xFC
  Topology: cpus: 1x dies: 1 clusters: 2 cores: 2 threads: 4 tpc: 2
    smt: enabled cache: L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB
    desc: 2x256 KiB L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 900 min/max: 400/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 900 2: 900 3: 900 4: 900 bogomips: 20799
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: ASUSTeK driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:9b41
    class-ID: 0300
  Device-2: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:2 chip-ID: 13d3:56a2
    class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.5
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x14e5 built: 2018 res:
    mode: 1920x1080 hz: 60 scale: 125% (1.25) to: 1536x864 dpi: 158 gamma: 1.2
    size: 309x173mm (12.17x6.81") diag: 354mm (13.9") ratio: 16:9
    modes: 1920x1080
  API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
    device: 1 drv: swrast gbm: drv: iris surfaceless: drv: iris wayland:
    drv: iris x11: drv: iris
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.3.4-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (CML GT2)
    device-ID: 8086:9b41 memory: 1.77 GiB unified: yes display-ID: :1.0
  API: Vulkan v: 1.4.303 layers: 4 device: 0 type: integrated-gpu name: Intel
    UHD Graphics (CML GT2) driver: N/A device-ID: 8086:9b41
    surfaces: xcb,xlib,wayland device: 1 type: cpu name: llvmpipe (LLVM
    19.1.7 256 bits) driver: N/A device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_soc_avs,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:02c8 class-ID: 0403
  API: ALSA v: k6.13.2-zen1-1-zen status: kernel-api tools: N/A
  Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:02f0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:4 chip-ID: 8087:0026
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.2
    lmp-v: 11 status: discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 476.94 GiB used: 19.97 GiB (4.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKNW512G8
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 005C temp: 40.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 69.67 GiB size: 69.67 GiB (100.00%)
    used: 19.78 GiB (28.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-5dc4e883-7d4f-4a0c-9a7c-b9772d952214
  ID-2: /boot/efi raw-size: 954 MiB size: 952.1 MiB (99.80%)
    used: 188.2 MiB (19.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 69.67 GiB size: 69.67 GiB (100.00%)
    used: 19.78 GiB (28.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-5dc4e883-7d4f-4a0c-9a7c-b9772d952214
  ID-4: /var/log raw-size: 69.67 GiB size: 69.67 GiB (100.00%)
    used: 19.78 GiB (28.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-5dc4e883-7d4f-4a0c-9a7c-b9772d952214
  ID-5: /var/tmp raw-size: 69.67 GiB size: 69.67 GiB (100.00%)
    used: 19.78 GiB (28.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-5dc4e883-7d4f-4a0c-9a7c-b9772d952214
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 3.63 GiB used: 1.87 GiB (51.6%)
    priority: 100 comp: zstd avail: lzo-rle,lzo,lz4,lz4hc,deflate,842
    max-streams: 4 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 58.0 C pch: 47.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 2900
Info:
  Memory: total: 4 GiB available: 3.63 GiB used: 2.66 GiB (73.3%)
  Processes: 255 Power: uptime: 11m states: freeze,mem,disk suspend: s2idle
    avail: deep wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 1.44 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 257 default: graphical
    tool: systemctl
  Packages: pm: pacman pkgs: 1408 libs: 412 tools: octopi,paru Compilers:
    gcc: 14.2.1 Shell: garuda-inxi default: Zsh v: 5.9 running-in: code
    inxi: 3.3.37
Garuda (2.6.26-1.1):
  System install date:     2025-02-12
  Last full system update: 2025-02-13
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            nmb.service 

Have you tested the connection w/o AdGuard Home Server?

Does it work under Windows?

2 Likes

Did you read this, perhaps you are not alone with this problem.

Garuda Assistent → Settings DNS = ?
Also “systemwide adblocking via hosts”
!! hblock =no !! (if you enabled DNS=adguard)
Is your /etc/resolv.conf file correct ?
Your /etc/nsswitch.conf is a default config file.(no intervention necessary)

!!Your Router!!
Are the AdGuard Home Server-Adresses set up there (DNS-DHCP settings) ?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.