Guest Posted ... hi, i'm unable to use eddie so connect to airvpn using the terminal. however, this means that my system uses my ISP's dns servers and not airvpn dns servers. the guide on how to accept push requests mentions that I need to add the following to my openvpn configuration file: Add to your OpenVPN configuration file(s), either in field "Custom Directives" of the Configuration Generator or by editing the configuration directly, the following lines:script-security 2up /etc/openvpn/update-resolv-confdown /etc/openvpn/update-resolv-conf now please know that I am a dummy. i have tried putting this script into different openvpn files but have had no luck. could someone tell me exactly in which file this goes and exactly where in the specified file? i've also looked at the config generator but cannot find the "customs directives" field. thanks for any help Quote Share this post Link to post
zhang888 1066 Posted ... Which OS are you using?By default, the OpenVPN client accepts all DHCP options from the server, which includes DNS. Quote Hide zhang888's signature Hide all signatures Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees. Share this post Link to post
Staff 9971 Posted ... Which OS are you using?By default, the OpenVPN client accepts all DHCP options from the server, which includes DNS. Warning: OpenVPN on GNU/Linux and *BSD does not take into account DNS push. It needs manual scripting to do so, update-resolv-conf script is included in several OpenVPN packages and can be used on every system that has resolvconf package available and installed. Kind regards Quote Share this post Link to post
Staff 9971 Posted ... now please know that I am a dummy. i have tried putting this script into different openvpn files but have had no luck. could someone tell me exactly in which file this goes and exactly where in the specified file? Hello, please see here: https://airvpn.org/topic/9608-how-to-accept-dns-push-on-linux-systems-with-resolvconf/ Kind regards Quote Share this post Link to post
NaDre 157 Posted ... ...now please know that I am a dummy. i have tried putting this script into different openvpn files but have had no luck. could someone tell me exactly in which file this goes and exactly where in the specified file?... It goes in ALL of them. ...i've also looked at the config generator but cannot find the "customs directives" field.... In the section "3. Connection Modes", near the end of the page, check the "Advanced Mode" box. The "Custom directives" text entry box will now be down and to the right of there. Quote Share this post Link to post
k83mIbgZ 0 Posted ... hi, i'm unable to use eddie so connect to airvpn using the terminal. however, this means that my system uses my ISP's dns servers and not airvpn dns servers. the guide on how to accept push requests mentions that I need to add the following to my openvpn configuration file: Add to your OpenVPN configuration file(s), either in field "Custom Directives" of the Configuration Generator or by editing the configuration directly, the following lines:script-security 2up /etc/openvpn/update-resolv-confdown /etc/openvpn/update-resolv-conf now please know that I am a dummy. i have tried putting this script into different openvpn files but have had no luck. could someone tell me exactly in which file this goes and exactly where in the specified file? i've also looked at the config generator but cannot find the "customs directives" field. thanks for any help If you are on Linux. then you need to download and install the resolvconf script package from your distro's resository/package management program. The up/down resolvconf script options need to be added to every AirVPN*.ovpn you use. A work-around is to get resolved server ips in your .ovpn files from the configurator - it is an option. Then connect to AirVPN and manually input AirVPN nameserver 10.4.0.1 and/or nameserver 10.5.0.1 in resolv.conf. Quote Share this post Link to post
Staff 9971 Posted ... If you are on Linux. then you need to download and install the resolvconf script package from your distro's resository/package management program. The up/down resolvconf script options need to be added to every AirVPN*.ovpn you use. A work-around is to get resolved server ips in your .ovpn files from the configurator - it is an option. Then connect to AirVPN and manually input AirVPN nameserver 10.4.0.1 and/or nameserver 10.5.0.1 in resolv.conf. Note for clarifications to the readers: resolvconf is not a script, it is a program.https://en.wikipedia.org/wiki/Resolvconf The OpenVPN script which uses resolvconf program to handle DNS according to OpenVPN server DNS push is update-resolv-conf and it is usually included in OpenVPN package (if not, you can find it online). Kind regards Quote Share this post Link to post
Firas22 1 Posted ... Good day I also had a simeler problem with windows 10 And DNS not returning anything It is working but I still get many disconnecting problemsThank u Sent from my SM-G925F using Tapatalk Quote Hide Firas22's signature Hide all signatures Share this post Link to post
BKK20 0 Posted ... Everything works fine (no DNS leak) when I add this in my .ovpn file: script-security 2 up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf But after I am connected with AirVPN. I get a problem with my local dns resolver. Everytime when I use "sudo" I get following message: sudo: unable to resolve host "xxx!: Name or service not known I presume that the local dns is notworking when I am connected to AirVPN using the update-resolv-conf. Does someone know how to change the update-resolv-conf that also the local dns resolution is working? Quote Share this post Link to post