Re: systemd and search domains.

2020-01-09 Thread Mark E. Mallett
On Wed, Jan 08, 2020 at 05:58:24PM -0500, Joshua Judson Rosen wrote: > Ha! An inotify monitor actually seems like a pretty elegant solution to me! > (though maybe I should point out that I got some of my aesthetic sense > from growing up watching The Red Green Show...). But you can change. If yo

Re: inotify (was: systemd and search domains.)

2020-01-09 Thread Joshua Judson Rosen
On 1/9/20 12:56 PM, Ed Robbins wrote: > > There are some things in Linux that I absolutely gush over because of how > handy they are, > inotify is just such a creature.  I use it in some of the most unlikely places > to solve some of my most baffling problems. Any thoughts on using inotify direc

Re: systemd and search domains.

2020-01-09 Thread Ed Robbins
On 1/8/20 6:26 PM, Ken D'Ambrosio wrote: On 2020-01-08 17:58, Joshua Judson Rosen wrote: Nutshell: clearly, it's time for a self-written inotify daemon and call it a day. Because it's stupid easy to prepend a line with my domain name every time the file changes, whereas I'm gettin' old trying t

Re: systemd and search domains.

2020-01-08 Thread Ken D'Ambrosio
On 2020-01-08 17:58, Joshua Judson Rosen wrote: >> Nutshell: clearly, it's time for >> a self-written inotify daemon and call it a day. >> Because it's stupid easy to prepend a line with my domain name every >> time the file changes, >> whereas I'm gettin' old trying to figure this out through a m

Re: systemd and search domains.

2020-01-08 Thread Joshua Judson Rosen
So, I don't know anything about GlobalProtect per se (this is the first I've even heard of it...); but...: On 1/8/20 5:24 PM, Ken D'Ambrosio wrote: > > * I used to do the dnsmasq thing, and it works really well, but it's kind of > a pain to set up all the DNS servers and stuff for internal use,

Re: systemd and search domains.

2020-01-08 Thread Ken D'Ambrosio
On 2020-01-08 16:22, Dennis Straffin wrote: Newer Ubuntu systems use systemd-resolved which doesn't seem to support split-horizon dns (at least last time I looked). One solution is to go back to using dnsmasq. Wups. Meant to reply with this to all, earlier. Going to add verbiage for dnsmas

Re: systemd and search domains.

2020-01-08 Thread Dennis Straffin
Newer Ubuntu systems use systemd-resolved which doesn't seem to support split-horizon dns (at least last time I looked). One solution is to go back to using dnsmasq. * Install dnsmasq: apt get install dnsmasq * Update /etc/NetworkManager/NetworkManager.conf: [main] ... dns=dnsmasq * Add a

Re: systemd and search domains.

2020-01-08 Thread Joshua Judson Rosen
What sort of VPN is it? e.g.: OpenVPN, Wireguard, IPSec...? And have you installed either resolvconf (which is Suggested by the openvpn package, but not required) or openresolv (which is supposed to be a better, generally compatible, replacement for resolvconf)? On 1/8/20 2:37 PM, Ken D'Ambrosi

systemd and search domains.

2020-01-08 Thread Ken D'Ambrosio
Hey, all. When I fire up my VPN, it re-writes my /etc/resolv.conf. Shocker. But I *want* it to, because then all my DNS stuff is good for my company. But it's NOT good for my personal domain. I'd like to have that added to the search domains. I'm in Ubuntu; not sure if that matters. From