View Single Post
  #1   (View Single Post)  
Old 21st August 2019
jonsec jonsec is offline
Port Guard
Join Date: Jul 2019
Posts: 29
Post [OpenBSD][PHP] Could not resolve host

hi. today i encountered a problem and solved now.

i search in google but not found any solution for this problem.

so after most research in google finally find this post.

i cant find any page in OpenBSD resources.(or my mistake )

what is problem.

my problem is start from curl function in php. curl return curl Could not resolve host. ooops, OpenBSD Config is Ok, so problem is exists.

so after most research, i understand is relation between curl and gethostbyname php function. so when run gethostbyname in php , output is not currect.

finally, i solved this problem by copy /etc/resolv.conf and /etc/services to /var/www/etc/.

good luck.
Reply With Quote