You are not logged in.

#1 2015-01-20 07:38:50

Moviuro
Member
Registered: 2012-06-03
Posts: 74

systemd-resolved,networkd resolv.conf and "search" line

Hi all!

I'm using systemd-networkd and -resolved for networking. So far so good, except that I can't seem to add a 'search' line to my resolv.conf. Here are the things I'd like:

  • Auto DHCP on ethernet & WiFi when plugged, OK with systemd-networkd and DHCP=both

  • Auto-connect WiFi, OK with wpa_supplicant

  • Auto address assignment on a tap interface, OK with systemd-networkd and Address=10.3.16.201/24

  • Auto routes on tap interface, OK with systemd-networkd and the [Route] sections

  • Use unbound on 127.0.0.1 that will forward queries for "ginfo." to 10.3.14.15 and other queries to the root DNS hints (this file), OK with systemd-resolved and DNS=127.0.0.1

  • Auto search "ginfo" when the tap interface is up with an address Not OK

Here are the config files:

% cat /etc/systemd/network/10-ethernet.network                                        
[Match]
MACAddress=f0:1f:af:06:90:0c

[Network]
DHCP=both

[DHCP]
UseDomains=true
UseDNS=false
% cat /etc/systemd/network/10-wireless.network                                        
[Match]
MACAddress=3c:a9:f4:12:d8:2c

[Network]
DHCP=both

[DHCP]
UseDomains=true
UseDNS=false
% cat /etc/systemd/network/20-tap-ginfo.network                                       
[Match]
#MACAddress=00:16:19:25:03:08
Name=tx001619250308

[Network]
Domains=ginfo

[Address]
Address=10.3.16.201/24

[Route]
Gateway=10.3.16.1
Destination=10.3.14.0/24

[Route]
Gateway=10.3.16.1
Destination=10.3.15.0/24

[Route]
Gateway=10.3.16.1
Destination=10.42.0.0/24
% cat /etc/systemd/resolved.conf.d/00-dns.conf                                        
[Resolve]
DNS=127.0.0.1
% cat /etc/systemd/resolved.conf.d/00-llmnr.conf                                      
[Resolve]
LLMNR=yes
% cat /etc/unbound/unbound.conf                                                       
server:
        verbosity: 1
        root-hints: "/etc/unbound/root.hints"
        local-zone: "10.in-addr.arpa." nodefault
python:
remote-control:
forward-zone:
        name: "ginfo"
        forward-addr: 10.3.14.15

The issue is strange because I added the Domains= option to the tap network file.

Any input is appreciated,
Cheers wink


bspwm, BTRFS over LUKS
Archlinux a lot, FreeBSD more and more...
Murphy's rule: The day you need a backup, you tell yourself you should have created some.

Offline

Board footer

Powered by FluxBB