We have moved to a new Sailfish OS Forum. Please start new discussions there.
11

Change DNS settings

asked 2015-03-27 11:43:17 +0300

jona8000 gravatar image

updated 2018-02-18 13:58:03 +0300

JoHe gravatar image

Hi,

How can I see the DNS server on jolla ?

How can I change the DNS server without it changes after the reboot ?

Thanks

edit retag flag offensive close delete

Comments

Just changing the nameserver in /etc/resolv.conf doesn't work for me anymore with SFOS 3.3.0.16 Rokua. Is anyone experiencing this same problem (or not)?

Sebix ( 2020-05-23 20:23:36 +0300 )edit

3 Answers

Sort by » oldest newest most voted
7

answered 2018-02-03 22:31:39 +0300

talisker gravatar image

hi, I want to re-launch this topic because I think important for net neutrality to be able to set our own DNS Resolver. So far, I remove the symbolic link of /etc/resolv.conf, create a real file resolv.conf with my DNS entries, and protect it with chattr +i. This settings survive to a reboot. I'm sure it's enough to resist to dhcp setting when you open your mobile data. Help appreciated, Regards

edit flag offensive delete publish link more
4

answered 2017-09-19 18:13:19 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2017-09-19 18:13:19 +0300

maidis gravatar image

This can now be done via GUI. Every Sailfish user probably already knows, but let me write briefly (for new users coming from other mobil operating systems):

  • Open Settings app from application list
  • Select WLAN in the Connectivity section
  • Press and hold the connection that you want to change its DNS, select Edit option from pop-up menu that appears
  • Disable auto-retrieve IP address option
  • Set primary and secondary DNS address according to the desired DNS service.

image description

A related request: Add the ability to change DNS settings for 3G

edit flag offensive delete publish link more

Comments

Can one change the nameserver but still "auto-retrieve" the IP address?

Federico ( 2017-09-19 18:37:41 +0300 )edit

Auto-retrieve IP address option re-enables after the change while preserving the new settings.

maidis ( 2017-09-19 18:58:57 +0300 )edit
3

answered 2015-03-27 18:14:41 +0300

ced117 gravatar image

You can do that by editing the /etc/resolv.conf file. Make sure you have the developer mode enabled before trying to edit it.

edit flag offensive delete publish link more

Comments

It will chance after reboot.

lasse ( 2015-04-01 12:57:30 +0300 )edit

@lasse Did you try to change the permissions of the file to read-only after editing ? (chmod 0444 /etc/resolv.conf)

ced117 ( 2015-04-06 22:32:13 +0300 )edit

Yes I did, but it don't help.

lasse ( 2015-04-07 11:14:35 +0300 )edit

chattr +i /etc/resolv.conf

daywalker ( 2017-09-20 09:17:19 +0300 )edit
Login/Signup to Answer

Question tools

Follow
7 followers

Stats

Asked: 2015-03-27 11:43:17 +0300

Seen: 2,011 times

Last updated: Feb 03 '18