Summary of the invention
The embodiment of the invention proposes a kind of access method, system and equipment of wireless router, to realize realizing the visit to the service end wireless router by note request acquisition and the corresponding IP of wireless router domain name address.
The embodiment of the invention proposes a kind of access method of wireless router, may further comprise the steps:
Receive the domain name access request of user terminal;
The service end wireless router of inquiry domain name correspondence;
Send the note request to described service end wireless router;
Receive described service end wireless router according to described note request, send the IP address of domain name corresponding server with note;
Send described IP address to described user terminal, make described user terminal according to the visit of described IP address realization to described server.
The embodiment of the invention also proposes a kind of access method of wireless router, comprising:
Receive the note request of application end wireless router nslookup corresponding server IP address;
Send domain name corresponding server IP address to described application end wireless router according to described note request.
Detect the trusted situations of described note request;
After detection is passed through as described, response is made in described note request, sent domain name corresponding server IP address to described application end wireless router.
The embodiment of the invention also proposes a kind of access system of wireless router, comprising:
User terminal is used to send the domain name access request, and realizes visit to the service end wireless router according to the IP address that the application end wireless router sends;
The application end wireless router is used to receive the domain name access request of described user terminal, and the service end wireless router of inquiry domain name correspondence sends the note request to described service end wireless router; Receive described service end wireless router according to described note request, the IP address of the domain name corresponding server that sends with note; Send described IP address to described user terminal, make described user terminal according to the visit of described IP address realization to described server;
The service end wireless router is used to receive the note request of nslookup corresponding server IP address, sends domain name corresponding server IP address according to described note request.
The embodiment of the invention also proposes a kind of wireless router, comprising:
The domain name request receiving element is used to receive the domain name access request of user terminal;
Query unit is used to inquire about the service end wireless router of domain name correspondence
First transmitting element is used for sending the note request to described service end wireless router;
First receiving element is used to receive described service end wireless router according to described note request, the IP address of the domain name corresponding server that sends with note;
The address transmitting element is used to send described IP address to described user terminal, makes described user terminal according to the visit of described IP address realization to described server.
The embodiment of the invention also proposes a kind of wireless router, comprising:
The request receiving element is used to receive the note request of nslookup corresponding server IP address;
Address transmitting element, the note request that is used for receiving according to the described request receiving element send domain name corresponding server IP address.
Compared with prior art, the embodiment of the invention has the following advantages at least:
By the embodiment of the invention, the user can obtain the IP address of the domain name correspondence of wireless router by note, realizes the visit to the service end wireless router; By the query function of note, do not have in the opposite end under the situation of online, activate the other side's online, make things convenient for user access.
Embodiment
Be elaborated below in conjunction with the drawings and specific embodiments.
The embodiment of the invention provides a kind of access method of wireless router, as shown in Figure 1, may further comprise the steps:
Step s101 receives the request of user terminal access service end wireless router domain name;
Step s102 inquires about the service end wireless router of this domain name correspondence;
Step s103 sends the note request to the service end wireless router;
Step s104 receives the service end wireless router according to the note request, sends the IP address of domain name corresponding server with note;
Step s105 sends the IP address to user terminal, makes user terminal according to the visit of above-mentioned IP address realization to the service end wireless router.
By the method that the embodiment of the invention provides, the user can obtain the IP address of the domain name correspondence of wireless router by note, realizes the visit to the service end wireless router; By the query function of note, do not have in the opposite end under the situation of online, activate the other side's online, make things convenient for user access.
Below in conjunction with concrete application scenarios the embodiment of the invention is further specified, wherein, user terminal is an example with PC PC, and the service that wireless router provides can be FTP, WEB or mail service, is example with the FTP service below.
The embodiment of the invention provides a kind of access method of wireless router, is applied to comprise in the system of PC, application end wireless router A, service end wireless router B and FTP service, as shown in Figure 2, may further comprise the steps:
Step s201, PC send domain name request to application end wireless router A;
PC is by the domain name request FTP service of ftp server under the service end wireless router B, because the IP address dynamic change of this ftp server, so do not have fixing corresponding relation between the domain name of this server and IP address.The domain name request of PC at first sends to A.
Step s202, application end wireless router A receives and handles the domain name request that above-mentioned PC sends;
A receives the domain name request that above-mentioned PC sends, if A does not also dial up on the telephone, then at first the Internet connection is set up in dialing.Comprise domain name tabulation among the A, store the domain name of server and the telephone number of the router corresponding with this server; A receives after the domain name request that PC sends, and detects this domain name whether in the domain name tabulation, if inquire about the service end wireless router corresponding with this domain name, execution in step s203; If not the request of then refusing PC.
Step s203, application end wireless router A sends the message search request to service end wireless router B;
When the domain name of the ftp server that detects PC request is in the domain name tabulation, comprise the short message receiving-transmitting device among the A, can send note to B by the telephone number of B, whether inquiry B surfs the Net.
Step s204, the query requests of service end wireless router B response application end wireless router A;
Also comprise the short message receiving-transmitting device among the B, can carry out short message interacting with A, receive the message search request that A sends, answer short message sends to A to current network state.
Step s205, application end wireless router A sends the note order to service end wireless router B;
After A received the state information of B transmission, if not online of B, A sent order to B and notifies B to connect online, and requires B to report the IP address of domain name corresponding server;
If B surfs the Net, then A directly requires B to report the IP address of server.
The domain name tabulation also is used to store the IP address corresponding with domain name among the A; After A found B according to domain name, the IP address of this domain name correspondence whether among this domain name tabulation of inquiry earlier if having, was then notified the B online and this IP address is sent to PC.If PC illustrates promptly that according to serv-fail under this IP address visit B the IP address of this domain name correspondence changes, then A requires the B online and reports current IP address.
Step s206, the note order that service end wireless router B response application end wireless router A sends;
After B receives the note that A sends, at first detect A whether in trust list.If detect A in trust list, and can carry out this order, then dial up on the telephone, simultaneously the IP address of the ftp server that B is obtained with note sends to A; If detect A not in trust list,, then refuse the requirement of A though perhaps A cannot carry out this order in trust list.
Step s207, application end wireless router A receive the note response of service end wireless router B;
After A receives the IP address information of B transmission, upgrade the corresponding relation of dynamic IP and domain name, obtain the IP address corresponding with domain name request.And after obtaining the IP address corresponding with domain name request, A sends this IP address to PC.
Step s208, PC serves according to the FTP under the corresponding IP address access services end wireless router B.
By the method that adopts the embodiment of the invention to provide, can support a router-A, B to be used as peer device fully manages, the user can manage the wireless device of far-end by note, realize peer access, do not have in the opposite end under the situation of online, activate the other side's online, the domain name system of management at any time oneself by note, do not need to apply for domain name, easy to use.
The embodiment of the invention also provides a kind of access system of wireless router, is applied to comprise in the system of user terminal, application end wireless router, service end wireless router and server, as shown in Figure 3, comprising:
User terminal 310 is used to send the domain name access request, and realizes visit to server under the service end wireless router according to the IP address that the application end wireless router sends;
Application end wireless router 320 is used to receive the domain name access request of described user terminal, and the service end router of inquiry domain name correspondence sends the note request to described service end wireless router; Receive described service end wireless router according to described note request, the IP address of the domain name corresponding server that sends with note; Send described IP address to described user terminal, make described user terminal according to the visit of described IP address realization to described server;
Service end wireless router 330 is used to receive the note request of nslookup corresponding server IP address, sends domain name corresponding server IP address according to described note request.
Server 340 is used to provide Network.
Wherein, in one embodiment of the invention, the structure of application end wireless router 320 can comprise as shown in Figure 4:
Domain name request receiving element 410 is used to receive the domain name access request of user terminal;
Query unit 420 is used to inquire about the service end router of above-mentioned domain name correspondence;
First transmitting element 430 is used for sending the note request to the service end wireless router;
First receiving element 440 is used to receive the service end wireless router according to the note request, the IP address of the domain name corresponding server that sends with note;
Address transmitting element 450 is used to send the IP address to user terminal, makes user terminal according to the visit of this IP address realization to server.
In one embodiment of the invention, the structure of application end wireless router 320 can comprise as shown in Figure 5:
Domain name request receiving element 510 is used to receive the domain name access request of user terminal;
Query unit 520 is used to inquire about the service end router of above-mentioned domain name correspondence;
First transmitting element 530 is used for sending the note request to the service end wireless router;
First receiving element 540 is used to receive the service end wireless router according to the note request, the IP address of the domain name corresponding server that sends with note;
Address transmitting element 550 is used to send the IP address to user terminal, makes user terminal according to the visit of this IP address realization to server.
Application end wireless router 320 also comprises:
First memory cell 511 is used to store the domain name tabulation, the corresponding relation of storage domain name and described service end router in the domain name tabulation;
Query unit 520 specifically is used to inquire about first memory cell 511, obtains the service end router of domain name correspondence.
Whether domain name supervising unit 512 is used for detecting domain name and tabulates in domain name;
Query unit 520 specifically is used for, and is domain name in the domain name tabulation time in the testing result of domain name supervising unit 512, inquires about first memory cell 511.
Application end wireless router 320 also comprises:
Second transmitting element 531 is used at first transmitting element 530 before the service end wireless router sends the note request, to service end wireless router transmit status query requests, the network state of inquiry service end wireless router;
Second receiving element 532 is used to receive the service end wireless router according to above-mentioned status query request, with the network state information of note transmission;
The 3rd transmitting element 533 when being used for network state information and representing that the service end wireless router is not surfed the Net, sends SMS notification service end wireless router and connects online;
First transmitting element 530 specifically is used for when network state information represents that the service end wireless router is online, or after the 533 transmission SMS notification service end wireless routers connection online of the 3rd transmitting element, sends the note request to the service end wireless router.
Application end wireless router 320 also comprises:
Domain name updating block 541 is used for after first receiving element 540 receives the IP address of domain name corresponding server, and more the IP address of new domain name correspondence is the IP address of the server of first receiving element, 540 receptions.
The structure of above-mentioned service end wireless router 330 comprises as shown in Figure 6:
Request receiving element 610 is used to receive the note request of nslookup corresponding server IP address;
Address transmitting element 620 is used for sending domain name corresponding server IP address according to the note request that request receiving element 610 receives.
The structure of above-mentioned service end wireless router 330 comprises specifically as shown in Figure 7:
Request receiving element 710 is used to receive the note request of nslookup corresponding server IP address;
Trust detecting unit 720, be used to detect the trusted situations of said short message request;
Address transmitting element 730 is used for sending domain name corresponding server IP address according to the note request that request receiving element 710 receives;
Trusting detecting unit 720 comprises:
Whether the transmit leg that detects the note request is in trust list, and whether the order that detects in the note request is the trusted order.
By system and the equipment that adopts the embodiment of the invention to provide, the user can dispose and manage the wireless device of far-end by note, realize peer access, do not have in the opposite end under the situation of online, activate the other side's online by note, the domain name system of management at any time oneself does not need to apply for domain name, the convenient use.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.