I have running Asterisk and FreePBX on a Raspberry Pi. It’s using raspbian which is based on Debian.
In my Asterisk logfiles I have multiple errors like this:
ERROR netsock2.c: getaddrinfo(“domain.com”, “(null)”, …): Temporary failure in name resolution
NOTICE chan_sip.c: Warning: Re-lookup of ‘domain.com’ failed!
I replaced the real domain name by “domain.com”. The real domain name in there is the DynDNS name which refers to my public ip address.
The weird thing is that I can ping the DNS name from raspbian directly without any problems. The output of “host domain.com” also correctly gives me the ip address. Why Asterisk/FreePBX can’t resolve this properly?