Page 1 of 1

how-to-fix-unable-to-lookup-server_external_ip

PostPosted: Mon Mar 17, 2025 7:55 am
by carpenox
here you go for those who have been asking me about this

easy fix - https://dialer.one/index.php/how-to-fix ... ternal_ip/


Chris

Re: how-to-fix-unable-to-lookup-server_external_ip

PostPosted: Wed Mar 26, 2025 3:50 pm
by williamconley
Is Use of this is limited to a flaw in the system that tries to look up an IP rather than a domain, and the IP in question happens to be the external IP?

Would it make more sense to convert this to "localhost" or 127.0.0.1 if the IP is that of the server in question?

Also (if you want traffic on this post) you should consider using the text of the actual error. "resolve_first: Unable to lookup ..." and "Name or service not known".

This error also occurs when the FQDN supplied by a carrier or co-company is deleted, thus making it impossible to look up. And then the best resolution is to delete that hostname entry from the carrier (and/or deactive/delete the carrier, of course).

Re: how-to-fix-unable-to-lookup-server_external_ip

PostPosted: Thu Mar 27, 2025 1:22 pm
by carpenox
its in relation to pjsip which no one is really using yet anyways, its to set the servers IP like external ip feature in sip.conf

Re: how-to-fix-unable-to-lookup-server_external_ip

PostPosted: Thu Mar 27, 2025 1:34 pm
by williamconley
does the actual error contain EXTERNAL_SERVER_IP or is it an IP address?

Re: how-to-fix-unable-to-lookup-server_external_ip

PostPosted: Thu Mar 27, 2025 11:54 pm
by carpenox
it contains the actual words

Re: how-to-fix-unable-to-lookup-server_external_ip

PostPosted: Fri Mar 28, 2025 1:25 pm
by williamconley
carpenox wrote:it contains the actual words


You may want to edit your original post to contain the string it will contain. For Google Search purposes. Much more useful if people find it. I'm opposed to the "help" being off this forum, but if it's helpful then it's better to have it findable on this system even if you bounce to your site for the final fix.

Re: how-to-fix-unable-to-lookup-server_external_ip

PostPosted: Sat Mar 29, 2025 11:32 am
by carpenox
sudo sed -i 's/SERVER_EXTERNAL_IP/0.0.0.0/' /etc/asterisk/pjsip.conf

Re: how-to-fix-unable-to-lookup-server_external_ip

PostPosted: Mon Mar 31, 2025 10:07 am
by williamconley
carpenox wrote:sudo sed -i 's/SERVER_EXTERNAL_IP/0.0.0.0/' /etc/asterisk/pjsip.conf


sorry: I meant the error string(s). verbatim. That's what end users will see and search for.