DNS resolution after a long periode

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Capitaine Kirk
OpenVpn Newbie
Posts: 5
Joined: Mon Feb 23, 2015 3:06 pm

DNS resolution after a long periode

Post by Capitaine Kirk » Tue Feb 24, 2015 10:12 am

ello everybody,

I'm a (almost) happy user of OpenVPN. It works like a charm with my Iphone and my linux box (gentoo).

But, after a periode (20/24h), The Iphone losts the DNS resolution. I can ping a address (on my internal network, or on internet), but I can't ping a name.

If I switch off OpenVpn on my Iphone, the problem continues. I can't ping (or surf with a browser) a name, just an adress.

I use an application on my Iphone to show me the current DNS and I can see the DNS change with or without OpenVPN (I push my ISP DNS with OpenVPN and my company pushes anothers DNS).

The only solution I have is to reboot my Iphone.

I have search on this forum but I didn't find some efficient stuff.

My server's config is :

Code: Select all

port 443
proto tcp
dev tun

ca /etc/openvpn/certs/ca.crt
cert /etc/openvpn/certs/Terminator.crt
key /etc/openvpn/certs/Terminator.key
dh /etc/openvpn/certs/dh2048.pem

server 192.168.2.0 255.255.255.0
ifconfig-pool-persist ipp.txt
topology subnet
push "redirect-gateway def1"
push "route 192.168.0.0 255.255.255.0"
push "dhcp-option DNS 212.27.40.240"
push "dhcp-option DNS 212.27.40.241"

client-to-client

comp-lzo

max-clients 10

user nobody
group nobody

persist-key
persist-tun

verb 5
mute 20
and my iphone's config is

Code: Select all

tls-client
remote 82.228.X.X 443 tcp
ca ca.crt
cert IphoneChristian.crt
key IphoneChristian.key
comp-lzo
topology subnet
If somebody can help me (excuse me for my english).

Thank you

Capitaine Kirk

Post Reply