You are not logged in.

#1 2022-05-27 13:05:11

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,223
Website

Laptop with unbound as local DNS resolver: how to query LAN DNS server

With the latest install of Archlinux on my new laptop, I opted to go for a pure IWD + openresolv + unbound local DNS caching resolver (connecting only to DNSSEC-capable DNS servers on the WAN).

Apparently (and thinking about it, it makes perfect sense smile), this also causes my laptop to ignore the LAN DNS server, although it's address is broadcasted by local DHCP. The local LAN however has a few devices that I would like to access by their name.

So,

dig devicename.localdomain

results in a failure, whereas

dig @192.168.215.1 devicename.localdomain

is a success.

I would like my laptop to query the LAN DNS on my home network. Theoretically, I believe I would have two options:
1. Setup openresolv to select from DHCP the addresses of the DNS servers for my hard-coded domain
2. Hardcode via unbound a stub-zone + domain-insecure

However, I don't seem to get it to work without manually editing /etc/resolv.conf and either select the local DNS resolver (127.0.0.1) or the LAN DNS resolver (192.168.215.1).

Offline

#2 2022-05-28 10:47:06

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,275

Re: Laptop with unbound as local DNS resolver: how to query LAN DNS server

Since your lan appears to be using private ip-addresses, option 1 seems the best and should require very little hardcoding (if any) .

You have checked https://wiki.archlinux.org/title/Unboun … openresolv ?

If yes, post /etc/resolvconf.conf & /etc/unbound/unbound.conf contents .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB