maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   resolv.conf does not save nameservers (https://talk.maemo.org/showthread.php?t=68434)

xuggs 2011-01-16 10:51

resolv.conf does not save nameservers
 
So I saved 2 nameservers (DNS) from my router and then OpenVPN connects and i can use it just fine but the next time I connect again, it just won't. I opened resolv.conf and the nameservers were gone. Is this meant to be this way?

thanks!

Wikiwide 2011-01-16 11:06

Re: resolv.conf does not save nameservers
 
Quote:

Originally Posted by xuggs (Post 921438)
So I saved 2 nameservers (DNS) from my router and then OpenVPN connects and i can use it just fine but the next time I connect again, it just won't. I opened resolv.conf and the nameservers were gone. Is this meant to be this way?

thanks!

I don't think so...
For me, name-servers were gone only after re-flash. They worked reliably before re-flash through several reboots.
But I use only two Internet connections: WiFi and USB.

Rob1n 2011-01-16 11:17

Re: resolv.conf does not save nameservers
 
Quote:

Originally Posted by xuggs (Post 921438)
So I saved 2 nameservers (DNS) from my router and then OpenVPN connects and i can use it just fine but the next time I connect again, it just won't. I opened resolv.conf and the nameservers were gone. Is this meant to be this way?

On the N900, /etc/resolv.conf should only contain 127.0.0.1 as the nameserver. It then uses dnsmasq to reference the appropriate DNS servers for each connection (see /var/run/resolv.conf.*). If you set the DNS servers via the UI then they should be persistent though.

eti1 2011-01-16 12:46

Re: resolv.conf does not save nameservers
 
I've solved this issue by using opendns,
just add this lines to /etc/resolv.conf :
nameserver 208.67.222.222
nameserver 208.67.220.220

xuggs 2011-01-16 19:26

Re: resolv.conf does not save nameservers
 
Thanks for the replies.

hmm well I added 127.0.0.1 in resolv.conf and also removed the default ISP DNS entries that get populated in /var/run/resolv.conf.wlan0 (they don't work with OpenVPN) or rather my vpn provider. I tried the opendns too and 2 provided by my vpn provider still for some odd reason it doesn't store them in resolv.conf, they just vanish :S and the file stays blank.

Thx Rob1n, I set static DNS for the AP and resolv.conf now stores them fine so works both when connected and not connected to OpenVPN..

Now I just need to get SIP working with OpenVPN :) i saw a script somewhere.

thanks again!


All times are GMT. The time now is 18:59.

vBulletin® Version 3.8.8