# Ask about IP request from router

**URL:** <https://forum.gl-inet.com/t/ask-about-ip-request-from-router/4673>\
**Category:** Router\
**Created:** [October 3, 2018, 2:42pm UTC](https://forum.gl-inet.com/t/ask-about-ip-request-from-router/4673 "2018-10-03T14:42:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Johnex](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/johnex/32/300_2.png) [@Johnex](https://forum.gl-inet.com/u/Johnex)\
**Post date:** [October 4, 2018, 7:01pm UTC](https://forum.gl-inet.com/t/ask-about-ip-request-from-router/4673/7 "2018-10-04T19:01:56Z")

</div>

Actually no. We talked about this in a thread a few months back. Unless you specifically tell openvpn to use your VPN’s DNS using scripts or set the DNS manually, the default OpenVPN action is to only tunnel the data.

When you request a URL, say [google.com](http://google.com), the domain name is looked up at the DNS to get an IP, and a connection is made via the VPN, hiding the data but, not the request. If you are using the default, which is your ISP’s, then they can see you have gone into [google.com](http://google.com), but can’t see what you did there.

So DNS leaking protection happens when you either use the scripts, or set your DNS to either Cloudflare, Google, or DNS over TLS.

Here are the scripts to set the DNS from the VPN provider:

> [@AR750 as OpenVPN client, no DNS for far network](https://forum.gl-inet.com/t/ar750-as-openvpn-client-no-dns-for-far-network/3342/13):
>
> Here is a copy and paste solution, just change the name of your client config file, paste into the ssh connection and it will do the rest: cat\<\<'EOF' \>\> /etc/openvpn/\<YOUR\_CLIENT\_FILE\_NAME\>.ovpn script-security 2 up /etc/openvpn/updns down /etc/openvpn/downdns EOF cat\<\<'EOF' \> /etc/openvpn/updns #!/bin/sh mv /tmp/resolv.conf.auto /tmp/resolv.conf.auto.hold echo $foreign\_option\_1 | sed -e 's/dhcp-option DOMAIN/domain/g' -e 's/dhcp-option DNS/nameserver/g' \> /tmp/resolv.conf.auto echo $foreign\_o…

---

_[View the full topic](https://forum.gl-inet.com/t/ask-about-ip-request-from-router/4673)._
