LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2021, 07:15 AM   #1
walker
Member
 
Registered: Nov 2003
Distribution: antiX-17.4.1_x64 base Custom
Posts: 193

Rep: Reputation: 38
[SOLVED] Unbound + Connman sysV init


Testing the just released Devuan Chimera (more an Alpha considering the hours spent to tune it IMHO) I crashed against the error "Unbound can't connect to port 53 - port already in use".

I discovered that connman was the only tool able to connect using a Nokia 2 phone as hotspot and a D-Link 131 E1 as usb wireless dongle (neither ceni nor the supplied OOTB Gnome network manager were able to establish a connection) trying JWK-Kit iso https://dev1galaxy.org/viewtopic.php?id=4473 (I like JWM but I'm a little lazy a stroke is always a stroke also for someone certified as net admin).

The trouble came when I tried to install unbound on Chimera after I installed connman in chroot to have the connection.

First the above mentioned error, don't care about it as in windows it's enough to shutdown and reboot to have unbound starting before connman (why it listen on port 53 is anyway a mystery to me) and connman-ui-gtk (no need of full connman) already connected on login.

The second trouble was that connman-ui-gtk was always changing the /etc/resolv.conf and dns supplied by ISP doesn't work (connman get the gateway IP as DNS server) as hotspot from pc that's why unbound.

Never give up!

After a little search I discovered a few hints https://community.toradex.com/t/how-...l-v1-0a/4382/3 enough to solve the issue from cli.

To set the DNS you want without that it would be changed every time by connman is enough to get the name of the connection issuing

connmanctl services (as root)

which gives all the connection available with on top marked with AR the connection up
*AR xxxxx wifi_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxx_managed_psk

then it's enough to issue

connmanctl config wifi_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxx_managed_psk --nameservers 127.0.0.1

to have always unbound running on your machine set as DNS resolver.

Hope this helps, for systemd I've no experience nor hints, I'm an old fart loving plain vanilla old GNU/Linux still POSIX compliant.

Last edited by walker; 11-28-2021 at 07:19 AM. Reason: Typo
 
  


Reply

Tags
connman, sysv, unbound



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there an easy way to convert sysV to systemd scripts? Or add dependencies to a sysV script? irey Linux - Software 2 10-19-2016 06:51 AM
SysV-Init scripts...change order during bootstrapping? tsw Mandriva 2 07-02-2004 08:39 AM
sysV-init editor issue with kde 3.2.1 jsmarshall85 Slackware 3 04-18-2004 10:21 PM
SysV-Init Editor Questions odin123 Slackware 3 11-16-2003 08:21 AM
Non-SysV INIT Distros Artimus Linux - Distributions 3 04-28-2003 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration