Skip to main content
Topic: How to set up a DNS with connman (Read 1319 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

How to set up a DNS with connman

Hi frens,

I wanted to set up a custom DNS. I have a feeling that just editing /etc/resolv.conf and write-protecting it would do the trick, but I was wondering if there's a more civil way of doing this?

I'm running runit and connman

Re: How to set up a DNS with connman

Reply #1
If a /var/run/connman directory is present before connman starts, it'll drop its resolv.conf there instead of overwriting the one in /etc.

Since you're under runit, the simplest way to ensure this folder is present is adding this line to /etc/runit/sv/connmand/conf:

Code: [Select]
mkdir -p /var/run/connman

By the way, the ArchWiki actually says this, but in a very systemd-specific way.

Re: How to set up a DNS with connman

Reply #2
If a /var/run/connman directory is present before connman starts, it'll drop its resolv.conf there instead of overwriting the one in /etc.

Since you're under runit, the simplest way to ensure this folder is present is adding this line to /etc/runit/sv/connmand/conf:

Code: [Select]
mkdir -p /var/run/connman

By the way, the ArchWiki actually says this, but in a very systemd-specific way.

sounds reasonable, but will it use the one in /etc?