Forum Moderators: coopster

Message Too Old, No Replies

Php dns tcp/ip packets

         

morfeas

8:06 pm on Mar 24, 2009 (gmt 0)

10+ Year Member



hello i am not a experienced php programmer i only
know some php for web forms and databases
i wonder if i can program a php to accept dns requests
make some changes and then send back a dns responce
also i d like to know if i can manage tcp/ip packets

eeek

10:54 pm on Mar 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i wonder if i can program a php to accept dns requests

You want to write a DNS server in php?

morfeas

6:19 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



Not exacly but yes is it possible to write
a dns server in php ?

eelixduppy

7:53 pm on Mar 25, 2009 (gmt 0)



Even if it were possible using sockets [us.php.net] I wouldn't recommend doing it. For anything like that I would personally use C/C++.

morfeas

8:05 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



thanks for your answer but if i write a c / c++
program a c++ variable have to be passed to
a php variable
is that possible?

eelixduppy

8:16 pm on Mar 25, 2009 (gmt 0)



There are Program Execuiton Functions [us.php.net]. You should be able to grab the output from a executable into your PHP app.

eeek

12:29 am on Mar 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



it possible to write a dns server in php ?

Well, yeah. But there are a lot of gotchas you'd have to worry about. Perhaps if you just stated the problem you are trying to solve, we could come up with a better solution.