Wednesday, 12 March 2025

Set search domain when VPN connected using Network Manager in Ubuntu 24.04



I recently assembled a Framework Laptop 13 and installed Ubuntu Desktop 24.04 on it. I have been working through numerous little things to make life easier for myself. One I found a solution to recently was setting a specific DNS resolver search domain when connected to a VPN.


nmcli c modify <vpn-settings-name> ipv4.dns-search '<domain>'


You should specify <vpn-settings-name> that corresponds to a VPN setting name in GUI. And <domain> is the domain name you want to search via DNS in the remote network.

No comments:

Post a Comment

Clearing out DHCP leases on (K)Ubuntu with dhcpd on OpenBSD.

 I have a lab of iMac computers at work. Recently I have been Installing Kubuntu on them  and during the setup I decided to assign them spec...