|
|
Hi all, I have successfully setup openvpn for users on the road to connect to the office network. However, I run into problem with remote dns. in the config file, i have setup the openvpn connection to set the remote dns entry. since i am running routing instead of bridge, I have also set it to route all the remote connection thru the openvpn. Here's my problem: after the certificate has been verified, it starts the route command. however, there's about 15-30 secs delay after the connection started but before the route command take effect. in this time period, if i initiate any domain name resolution on the remote subnet, it returns nothing as the route has not taken place. for some reason, the client system (windows) somehow mark that dns to be unavailable. so even after the route has been initiated, domain name resolution on the remote subnect will still appear to be unavailable. I have tried running ipconfig /flushdns. it does not help. The only command that I found which can solve the problem is ipconfig /registerdns. I don't know why it works, but domain name resolution works right after running it. anyone knows the best way to solve this? I tried to run the ipconfig /registerdns command with the --up option. however, i am not sure why my script (batch file) does not work on windows. anyone know how it works? will it fix the problem? cuz according to what I read from the man page, the up option will be run before the other commands. does it means it will be executed before the route option? thanks! Lester __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users |