I'm looking for help on using register-dns to force OpenVPN clients to recognize new DNS settings pushed from the server using either:
push “dhcp-option DNS xx.xx.xx.xx″
push “redirect-gateway def1″
The
man page says:
--register-dns
Run net stop dnscache, net start dnscache, ipconfig /flushdns and ipconfig /registerdns on connection initiation. This is known to kick Windows into recognizing pushed DNS servers.
My OpenVPN clients run under (Apple) OSX and iOS.
My questions:
- Does register-dns have any effect on non-Windows clients?
- What commands for OSX and iOS are analogous to these Windows commands?
- Can anyone point me to up/down scripts that will do for OSX and iOS what register-dns does for Windows?
Thank you for taking the time to read this post.
- nello