Solved SBC on Raspberry Pi not find correct DNS server *SOLVED*

Hello,
I am trying to get SBC running on a Raspberry Pi. I enter in the FQDN and I could not get connected. If i changed it over to the static IP address it connects and worked. I enabled the logging and I found this little interesting tidbit.

This would explain its inability to resolve the FQDN. I looked and both the resolv.conf and dhcpd.conf have name servers specified. I am at a lost of where else I can look or how to fix this or am I just going with static IP instead.

Staff Member3CX Support

I believe that 127.0.0.1 is the actual nameserver because probably your Raspberry has installed a DNS server.
Try " sudo netstat -tlnp | grep '\:53' ", That will tell you if there's any DNS server running on your Raspberry, if yes uninstall it.

To help you fix your issue i will need more info:

1. what version of Raspberry are you using.
2. Do you have Static IP or Dynamic?
3. Run this " cat /etc/resolv.conf " and paste here.

The issue was the 3cxsbc service was starting before the network is ready. So the trick is to go into the pi configuration using sudo raspi-config or the gui and select boot options and then choose wait for network at boot.