gmazoyer / looking-glass

Easy to deploy Looking Glass
GNU General Public License v3.0
444 stars 137 forks source link

Resolving of hostnames not working #192

Closed willie058 closed 5 months ago

willie058 commented 6 months ago

Hi,

I'm encountering an issue when I enter a FQDN with the ping option. I receive the message: "Error unknown host." I suspect it has something to do with permissions or another aspect of my system configuration. Could someone explain how this function works? In the utils.php file, there is a call for the function dns_get_record, but I can't locate the file where the function is defined.

Additionally, I've noticed that the system can resolve domains when I use nslookup or dig. I'm using a non-Docker installation.

Does anyone have insights into how this works?

gmazoyer commented 6 months ago

This must be an issue with your installation, maybe due to system permission as you mentioned. the dns_get_record is a built-in function of PHP.

willie058 commented 5 months ago

Thank you! Changed something and it is working now.