Jump to content
Not connected, Your IP: 3.238.95.208
Guest

how to accept DNS push requests for dummies

Recommended Posts

Guest

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 2
up /etc/openvpn/update-resolv-conf
down
/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

 

Share this post


Link to post

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

Share this post


Link to post

...

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.

Share this post


Link to post

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 2

up /etc/openvpn/update-resolv-conf

down /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.  

Share this post


Link to post

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

Share this post


Link to post

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?
 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...