How to get information about "dhcp-option DNS" from client script?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
User avatar
ogogon
OpenVpn Newbie
Posts: 7
Joined: Fri Jul 17, 2015 11:36 am

How to get information about "dhcp-option DNS" from client script?

Post by ogogon » Thu Jul 13, 2023 3:32 am

Colleagues, tell me, please, how can I get information about "dhcp-option DNS" from a script on the client?

The client runs on a small router, and when connecting and disconnecting OpenVPN, I need to switch the direction of DNS requests to a server in a private network or a server at the provider.
How can I get this information from a shell script?

Thanks in advance,
Ogogon.

Post Reply