P
P
PO6OT2015-10-10 17:11:53
PHP
PO6OT, 2015-10-10 17:11:53

How to make ns server in php to create hosting?

Do not think that I am going to do hosting. Not at all, it's just easier to explain what I need.
Let's say there is a site ns.example.com, on port 80 there is a php script that performs the function of an NS server. The site does not have its own IP, it is hosted by itself, and the domain is linked by NS.

If it's not possible on port 80 or without IP - just say so, but I need a NS server script in PHP

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Ruslan Fedoseev, 2015-10-10
@martin74ua

Formulate the task in a human way and do not try to extract your tonsils through the neighbor's anus ...

I
index0h, 2015-10-10
@index0h

How to make ns server in php to create hosting?

Only 3 steps:
1. Read the specifications:
2. Realize that it was a stupid idea.
3. Read the BIND setup howto

V
Vlad Zhivotnev, 2015-10-10
@inkvizitor68sl

What? O_o
Well, okay. First, figure out how to make php accept udp requests and respond to them via udp (however, you also need to use tcp if the client could not come via udp). Then come back for the RFC list.

V
Vladimir, 2015-10-10
@MechanID

To begin with, you need to basicly understand how an autoritative DNS usually works (what tasks it performs) and, in general, the DNS system and why it is needed.
Judging by your question, you do not understand this. And to write a program without understanding what tasks it will perform, to put it mildly, is ridiculous.
PS Yes, the IP is needed and the port is not 80 but 53

A
Andrey Kroshkin, 2016-10-14
@andrium

https://github.com/yswery/PHP-DNS-SERVER

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question