The officially official Devuan Forum!

You are not logged in.

#1 2017-04-21 06:02:48

xunilog
Member
Registered: 2016-12-05
Posts: 26  

asking howto config nameserver(s) w/ connman static eth0

I've not been successful in achieving DNS reoslution.

I've never previously used "connman" (connmand).
No manpage AFAICT, and all the online tutorials I found cover only dhcp (vs static).
After hand-editing the eth0 config to specify "dns-nameservers xx.xx.xx.xx" line in /etc/network/interfaces, I also tried

`connman -n --nodnsproxy`

and eventually found my way to editing /lib/...connman/eth_looooong_idstring/settings

I've stopped/restarted the network service
I tried clearing the settings via `ip route del default`

don't know what else to try. Can I buy a clue?

Offline

#2 2017-07-05 08:34:39

PeteGozz
Member
From: Woodside South Australia
Registered: 2017-06-21
Posts: 72  

Re: asking howto config nameserver(s) w/ connman static eth0

%% I have never used connman : %%
You probably have a working solution.
its probably /etc/resolv.conf you need to set ?
If NOT stop here :>

So Other
than seeing what :
ip r     says
and say ask the end point for a dns resolution

when it connects ($?)  and then set that address  into /etc/resolv.conf
approx...

domain yours
search yours.

nameserver ::1
nameserver yourproviders NS in dotted decimal here
nameserver 8.8.8.8

OR
exploit the up down calls  or manual types in /etc/interfaces
and fire up a script that does it for you.
UMmmm
Roughly

auto nicName22
iface nicName22 inet static
        address 10.1.1.32
        broadcast 10.1.1.127
        netmask 255.255.255.128
        network 10.1.1.0
        up /etc/network/localscripts/Resolver.bash up
        down /etc/network/localscripts/Resolver.bash down

So yeah these are non standard and could be some place else smile
These would write what YOU want in that file and maybe restore something else on interface down.
The options are optional and from my memory set in the calling environment in any case.

You could do similar when ever the connman daemon is restarted.

Whatever is easier or actually a sane solution for you.

Eventually, I guess you will need to tell routing where to go.

ip r add default via NICname

OR try dhclient yourInterface and hope smile

I have a rather over featured examples of that localscript "breakage"  here I can sanitise and post if needs be.

Use your own NIC names and addressing of course smile

Last edited by PeteGozz (2017-07-05 08:55:51)

Offline

Board footer