!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

866 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` use systemd-networkd and NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org248 Servers

Load older messages


SenderMessageTime
7 Sep 2025
@kraem:ne.bul.aekraem
passwd:    files systemd
group:     files [success=merge] systemd
shadow:    files systemd
sudoers:   files

hosts:     mymachines files myhostname dns
networks:  files

ethers:    files
services:  files
protocols: files
rpc:       files
08:01:37
@sleepymonad:matrix.orgsleepymonad changed their profile picture.09:12:54
@kraem:ne.bul.aekraem ok so i think i solved it:
  1. sudo ip netns exec wg strace -e trace=network python3 -c "import socket; socket.getaddrinfo('dn.se', 80)" -> connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) -> it was using my hosts nscd

- temporarliy moved the nscd/socket file (long term i should mask it in the service netns)
  1. spun up a dnsmasq in the netns which uses the upstream resolver i want

  2. bindmounted /etc/resolv.conf with nameserver 127.0.0.1 (where dnsmasq is listening in the netns)

09:24:46
@kraem:ne.bul.aekraem ok so i think i solved it:
  1. sudo ip netns exec wg strace -e trace=network python3 -c "import socket; socket.getaddrinfo('dn.se', 80)" -> connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) -> it was using my hosts nscd

- temporarliy moved the nscd/socket file (long term i should mask it in the service netns)
  1. spun up a dnsmasq in the netns which uses the upstream resolver i want

  2. bindmounted /etc/resolv.conf with nameserver 127.0.0.1 (where dnsmasq is listening in the netns)

09:25:04
8 Sep 2025
@inayet:matrix.orginayet set a profile picture.02:15:51
9 Sep 2025
@aciceri:nixos.devaciceri changed their display name from zrsk to aciceri.15:02:08
@albertlarsan68:albertlarsan.frAlbert Larsan joined the room.19:55:37
10 Sep 2025
@ss:someonex.netSomeoneSerge (back on matrix) changed their display name from SomeoneSerge (@nixcon & back on matrix) to SomeoneSerge (back on matrix).00:35:26
@nerves:bark.lgbt@nerves:bark.lgbt left the room.12:31:25
@frederic:scs.ems.hostFrédéric Christ changed their display name from Frédéric Christ to Frédéric Christ (🚄 15.09. - 29.09.).13:46:19
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan @ nixcon to matthewcroughan.15:04:27
11 Sep 2025
@adam:robins.wtfadamcstephens systemctl service-log-level systemd-networkd.service debug . TIL 02:19:53
@ghostbuster91:matrix.orgghostbuster91hi folks, I am using mesh vpn with headscale, adguard DNS and avahi mDNS. How do I now make mDNS addresses available to the vpn network? GPT told me that I need to propagate have something that will answer DNS queries and respond with mDNS entries. Can I do this with adguard or do I need something else? What would you recommend in this case?15:31:02
@k900:0upti.meK900Uhhh what15:31:16
@k900:0upti.meK900Do you want to do mDNS over Tailscale?15:31:23
@k900:0upti.meK900Or do you want to do a subnet router thing that forwards mDNS?15:31:34
@ghostbuster91:matrix.orgghostbuster91Currently when I am on the lan network I am able to resolve mDNS addresses, but if I turn on the VPN I lose that ability. I want to fix this as not all devices can run vpn client 15:35:26
@saiko:knifepoint.net@saiko:knifepoint.netis tailscale a tap interface (mac layer)? otherwise, bad news I think unless you can fake mdns somehow15:35:43
@saiko:knifepoint.net@saiko:knifepoint.netmdns needs broadcast support and pretty sure you only get that with a layer 2 tunnel15:37:08
@ghostbuster91:matrix.orgghostbuster91yes, but gpt told me that I could have sth that would answer dns queries by translating them to mDNS15:38:31
@saiko:knifepoint.net@saiko:knifepoint.netat that point I would set up a normal dns server with a non-local. zone and use normal dns. I’m just making a somewhat educated guess here so I might be wrong but for this to work with mdns names I assume you need a modified mdns resolver on the client, or serve the local. zone via dns which is forbidden15:43:22
@ghostbuster91:matrix.orgghostbuster91ok let me take a step back and explain my use-case. Maybe I did something wrong earlier. I have headscale that has global dns configured that point to my adguard instance. 15:45:06
@ghostbuster91:matrix.orgghostbuster91There I have manual entries xyz.mydomain that points to my serwer (by the vpn ip adderss)15:45:39
@ghostbuster91:matrix.orgghostbuster91one of them is esphome.mydomain15:45:46
@ghostbuster91:matrix.orgghostbuster91this works great until I want to explore one of the devices listed in esphome dashboard15:46:07
@ghostbuster91:matrix.orgghostbuster91this devices advertise themselves by mDNS 15:46:20
@ghostbuster91:matrix.orgghostbuster91once I am on the vpn I can see the esphome dashboard by I cannot enter into any device 15:46:43
@ghostbuster91:matrix.orgghostbuster91* once I am on the vpn I can see the esphome dashboard by I cannot enter into any device's details15:46:51
@ghostbuster91:matrix.orgghostbuster91* these devices advertise themselves by mDNS 15:47:16
@saiko:knifepoint.net@saiko:knifepoint.netcan you make the dashboard proxy the info instead of requiring the client to access the devices directly, or set non-mdns names for the devices?15:48:04

Show newer messages


Back to Room ListRoom Version: 6