LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-13-2004, 11:42 PM   #1
chtla
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("off.com", 110, $errno, $errstr, 30);
if(!$fp){
echo "$errstr ($errno)";
else{
echo "result : ".$fp;
}

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

office dns server------------
off.com - 192.168.123.107
---------------------------------
----------------------------------------------------------------------
dns server checking..(freebsd)

# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <759a094ace3177203a8c63d9aca14700@bsd.off.com>

# telnet off.com 110
Trying 192.168.123.107...
Connected to off.com.
Escape character is '^]'.
+OK <042ee5976a121afae2c0f93f9da2c869@bsd.off.com>

client computer checking..(win xp)

C:\>ping off.com
Pinging off.com [192.168.123.107] with 32 bytes of data:

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

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

C:\>telnet off.com 110
+OK <3caf8d16b7dd05cbcb8bd120a7dde09b@bsd.off.com>
-------------------------------------------------------------------------

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

Any help will be appreciated.
Thanks

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


Reply


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 06:04 AM
My linux can't get right info from DNS hvoorbra Linux - Networking 8 12-20-2003 08:18 AM
PHP - fsockopen() + Redhat8 aspr Linux - Networking 0 06-03-2003 03:15 PM
looking for DNS info Ryan_Sutton Linux - General 2 07-11-2002 06:24 PM
php - fsockopen cbe Programming 1 07-16-2001 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 AM.

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