Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-14-2004, 12:42 AM   #1
LQ Newbie
Registered: Apr 2003
Posts: 6

Rep: Reputation: 0
why fsockopen() use root dns info?? - about php

I have poor english.. sorry..

my office is using private ip(192.168.x.x) and setting dns server.
i hope use web mail at office, i am programming..
$fp = fsockopen("", 110, $errno, $errstr, 30);
echo "$errstr ($errno)";
echo "result : ".$fp;

result : connection refused (61)
i checked system.
and found problem..
problem is that fsockopen() used root dns info.(connect real domain,
not used office dns info.

office dns server------------ -
dns server checking..(freebsd)

# telnet localhost 110
Connected to localhost.
Escape character is '^]'.
+OK <>

# telnet 110
Connected to
Escape character is '^]'.
+OK <>

client computer checking..(win xp)

Pinging [] with 32 bytes of data:

Reply from bytes=32 time<10ms TTL=64
Reply from bytes=32 time<10ms TTL=64
Reply from bytes=32 time<10ms TTL=64
Reply from bytes=32 time<10ms TTL=64

Ping statistics for
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>telnet 110
+OK <>

i think no problem at office dns server setting
fsockopen why use root dns server information ??

Any help will be appreciated.

p.s) office ip is dynamic ip and can't setting domain..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php Fsockopen jinksys Programming 0 02-08-2004 07:04 AM
My linux can't get right info from DNS hvoorbra Linux - Networking 8 12-20-2003 09:18 AM
PHP - fsockopen() + Redhat8 aspr Linux - Networking 0 06-03-2003 04:15 PM
looking for DNS info Ryan_Sutton Linux - General 2 07-11-2002 07:24 PM
php - fsockopen cbe Programming 1 07-16-2001 06:30 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration