Hello all.
I just installed FreePBX 17 using the distribution ISO.
PBX Version: 17.0.19.32
PBX Distro: 12.7.8-2408-1.sng12
Asterisk Version: 22.5.2
I noticed that resolv.conf contains 127.0.0.1 as the first entry. Also in System Admin APP the
DNS card says “Normally, your first DNS server should be 127.0.0.1. Add any additional servers after that.”
But there is no DNS server listening on the machine on port 53 and all connection are slowed down for every DNS query asked first to localhost. Removing the 127.0.0.1 entry from /etc/resolv.conf seems to put things in order.
I’m missing something? Why this (default) setting?
Normally FreePBX saying why you should have 1st DNS 127.0.0.1 This implies that system has a local DNS service.
This is a common source of confusion with **FreePBX Distro / Sangoma 12/13/14 series especially with version 17 and Asterisk 22. Let me break it down carefully.
- The System Admin module in FreePBXexpects the server to run a local caching DNS resolver on 127.0.0.1:53.
FreePBX is designed to cache DNS queries locally for faster repeated lookups and for services/ - System Admin module mentions:
Normally, your first DNS server should be 127.0.0.1. Add any additional servers after that.
So the assumption is that **a DNS server is already listening locally
Why you’re seeing slow DNS and no port 53 listener
Fresh installation does not automatically start a local DNS resolver unless certain options are installed or enabled.
I hope this will help you, Thanks
Correct me if I am wrong but I believe the script just installs the systemd-resolved package to cache DNS locally. It’s not something Freepbx needs to be “designed” to do as far as I know.
You can check the servers, scope, mode, and protocols used by typing resolvectl status
You can do a manual query to see what it is doing by typing resolvectl query somedomain.com
You can see cache hits and other stats by typing resolvectl statistics.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
