• Welcome to SAIL Community Supported PBX . Please login or sign up.
 

v6 - Ubuntu 18.04.2 - dnsmasq

Started by efga, April 09, 2019, 03:44:22 PM

Previous topic - Next topic

efga

I installed v6 on a fresh Ubuntu 18.04.2 minimal by doing the following:

apt get update
wget http://www.sailpbx.com/sail/sail-6.0/debs/noarch/sail_6.0.1-44+ubuntu18_all.deb
wget http://www.sailpbx.com/sail/sail-6.0/debs/amd64/sailhpe_6.0.0-2_amd64.deb
wget http://www.sailpbx.com/sail/sail-6.0/debs/repo/pool/main/a/ast-en-gb-gpl-gsm-sounds/ast-en-gb-gpl-gsm-sounds_4.0.0-5_all.deb
sudo apt install ssmtp
sudo apt install ntp
sudo apt install asterisk
sudo apt install ./sailhpe_6.0.0-2_amd64.deb
sudo apt install ./sail_6.0.1-44+ubuntu18_all.deb
sudo apt install ./ast-en-gb-gpl-gsm-sounds_4.0.0-5_all.deb


But whenever sail is installed DNS resolution fails after the system is restarted; error given during the installation:

Setting up dnsmasq (2.79-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service → /lib/systemd/system/dnsmasq.service.
Job for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
invoke-rc.d: initscript dnsmasq, action "start" failed.
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
   Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-04-08 09:26:55 GMT; 11ms ago
  Process: 14755 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2)
  Process: 14754 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)

Apr  8 09:26:55 pbx02 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Apr  8 09:26:55 pbx02 dnsmasq[14754]: dnsmasq: syntax check OK.
Apr  8 09:26:55 pbx02 dnsmasq[14755]: dnsmasq: failed to create listening socket for port 53: Address already in use
Apr  8 09:26:55 pbx02 dnsmasq[14755]: failed to create listening socket for port 53: Address already in use
Apr  8 09:26:55 pbx02 dnsmasq[14755]: FAILED to start up
Apr  8 09:26:55 pbx02 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
Apr  8 09:26:55 pbx02 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
Apr  8 09:26:55 pbx02 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.


To address this I have done the following:

sudo mkdir /run/systemd/resolve/
sudo nano /run/systemd/resolve/stub-resolv.conf


Finally, I added the following to the stub-resolv.conf

search example.local
nameserver 192.168.0.1


Are you able to ensure that the installer doesn't cause this issue going forward on Ubuntu 18.04.2?

sysadmin

Hi

Ubuntu18 is still very much an alpha install and it has not had major testing yet.  That's not an excuse it's just the way we have to allocate our scarce resources.   Most go into Debian and in particular Debian 9.   I have logged your issue and we will look at it as soon as we can.

Thank you for your input it is very valuable.   Please continue to give us input on Ubuntu18 if you are able.

Kind Regards