Jump to content
Not connected, Your IP: 3.236.122.9
rohko

ANSWERED Resolve the IP address of the best AirVPN server using bash when leak protection is enabled

Recommended Posts

Hi

I use a custom bash script in Linux to enable leak protection using iptables. That is, the firewall blocks all the outgoing internet connections whose destination is a non-AirVPN IP address. I would like to keep the protection enabled always and automatically connect to the best current server in the Netherlands, for instance. This requires resolving the IP address of nl.vpn.airdns.org. However, if the leak protection is enabled and I have not connected to any AirVPN server, I cannot resolve the IP address. Neither I would like to enable temporarily access to some other DNS service, like Cloudflare's 1.1.1.1 or Google's 8.8.8.8 nor temporarily connecting to a random AirVPN server to just find out the best current server.

I have not yet tested the AirVPN's Linux suite, which would likely do this automatically. I wonder, if there is a way to accomplish this DNS name resolution in a simple manner using just bash? What I know AirVPN does not have public DNS servers.

 

Share this post


Link to post

You could use your router's DNS to resolve it, and only it.


» I am not an AirVPN team member. All opinions are my own and are not to be considered official. Only the AirVPN Staff account should be viewed as such.

» The forums is a place where you can ask questions to the community. You are not entitled to guaranteed answer times. Answer quality may vary, too. If you need professional support, please create tickets.

» If you're new, take some time to read LZ1's New User Guide to AirVPN. On questions, use the search function first. On errors, search for the error message instead.

» If you choose to create a new thread, keep in mind that we don't know your setup. Give info about it. Never forget the OpenVPN logs or, for Eddie, the support file (Logs > lifebelt icon).

» The community kindly asks you to not set up Tor exit relays when connected to AirVPN. Their IP addresses are subject to restrictions and these are relayed to all users of the affected servers.

 

» Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, chances are you will be unique amond the mass again.

Share this post


Link to post
43 minutes ago, OpenSourcerer said:

You could use your router's DNS to resolve it, and only it.

That is a good idea, but I usually connect to internet using mobile broadband and a LTE dongle. The dongle gets a public DNS address directly from an ISP, but I normally set it manually to 1.1.1.1. Therefore I have no possibility to request the IP from a router's DNS server.

I guess there is no simple solution to this. Perhaps it makes sense to use 1.1.1.1 for a while to allow the resolution. But the best option would be if AirVPN could setup a public DNS for everybody.

Share this post


Link to post
1 hour ago, rohko said:

I guess there is no simple solution to this.


To be more precise, absolutely no solution without you punching holes in your setup.
 
1 hour ago, rohko said:

But the best option would be if AirVPN could setup a public DNS for everybody.


If you need public DNS servers you can trust more than a company like Cloudflare, use services like OpenNIC.

People are quick to suggest AirVPN implement public DNS, a proxy, email, Wireguard and whatnot, but think about it: Do you really want to consolidate all your information in one place, just like Google urges you to do? AirVPN offers VPN access, it's not a groupware.

» I am not an AirVPN team member. All opinions are my own and are not to be considered official. Only the AirVPN Staff account should be viewed as such.

» The forums is a place where you can ask questions to the community. You are not entitled to guaranteed answer times. Answer quality may vary, too. If you need professional support, please create tickets.

» If you're new, take some time to read LZ1's New User Guide to AirVPN. On questions, use the search function first. On errors, search for the error message instead.

» If you choose to create a new thread, keep in mind that we don't know your setup. Give info about it. Never forget the OpenVPN logs or, for Eddie, the support file (Logs > lifebelt icon).

» The community kindly asks you to not set up Tor exit relays when connected to AirVPN. Their IP addresses are subject to restrictions and these are relayed to all users of the affected servers.

 

» Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, chances are you will be unique amond the mass again.

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...