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

Change Data default DNS?

asked 2018-04-16 23:05:09 +0300

DarkTuring gravatar image

Please provide instruction how to force SFOS X to use custom IP DNS service providers of the users choice. Already works in the UI for WIFI but not Mobile Data SIM?

edit retag flag offensive close delete




coderus ( 2018-04-16 23:48:39 +0300 )edit

@coderus thank you filetug was able to open edit the file in txt. I added a DNS, restarted network connections and DNS is still routed through Phone SIM provider, ill restart the phone and try again.

DarkTuring ( 2018-04-17 02:00:21 +0300 )edit

I also have used this method on Xperia x compact, but found that resolv.conf was symlink, so deleted symlink, and made actual file, with preferred nameservers, and worked.

Levone1 ( 2018-04-17 15:38:31 +0300 )edit

@Levone1 please mark your as a solution. it worked!

  1. Delete Symlink
  2. Copy resolv.conf from /var/run/connman/ and paste in /etc/ folder

Quick question, whats the syntax for defining multiple DNS servers primary and secondsry?

DarkTuring ( 2018-04-17 19:37:51 +0300 )edit

added to 1st answer...

Levone1 ( 2018-04-17 19:59:10 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2018-04-17 00:45:16 +0300

Levone1 gravatar image

updated 2018-04-17 19:58:12 +0300

One way - Connmanctl. Explained here - https://together.jolla.com/question/17806/add-the-ability-to-change-dns-settings-for-3g/ - with a prebuilt connmanctl file linked in comments. Tested and working well...

Another way - 1. Delete Symlink /etc/resolv.conf 2. Copy resolv.conf from /var/run/connman/ and paste in /etc/ folder, modifying nameservers as you like.

edit flag offensive delete publish link more


First method is too complicated sorry!

DarkTuring ( 2018-04-17 19:35:44 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2018-04-16 23:05:09 +0300

Seen: 465 times

Last updated: Apr 17 '18