So when I'm connected to the corporate VPN, the VPN client modifies my system's /etc/resolv.conf file to add the corporate DNS servers to the top of the list. this prevents DNS lookups for my internal servers (like arm64-01.ip6.home.lan) from succeeding (because NXDOMAIN is returned by corporate's DNS servers.) is there a way to tell the #OpenSSH client to use specific DNS servers to look up specific hosts? I'm not seeing anything in the ssh_config(5) manpage.

The only thing I can think of would be to write a little script to use with the ProxyCommand option.

Before I hack up such a script, does anyone have any other ideas/suggestions (or even better: an already implemented solution?)

#SSH #sysadmin

Follow

@lattera You can use host-alias. like 'Host foo' will set all of the options to connect to 'foo'. Not dns, not scalable, but if you only need to be able to connect to a few hosts it will work.

It can also be setup to do things like port forwarding and jumphosts if you need it to.

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Cross Family's Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!