Summary of the invention
The present invention provides a kind of internet access method, Apparatus and system, in order to solve the defective that the access internet process is loaded down with trivial details and fail safe is low in the prior art, realizes quick, safe internet access process.
The present invention provides a kind of internet access method, comprising:
The inquiry of the domain name request that step 1, receiving terminal send comprises the domain name of user through the browser address bar input at said terminal in the domain name query requests, domain name is a network address
,Chinese and English character
Or The arbitrary string that browser address bar is accepted
The domain name query requests that step 2, basis receive judges whether domain name is effective; When domain name is effective, execution in step 4, when domain name is invalid, execution in step 3;
Step 3, carry out dns search operation obtaining effective Internet protocol address, and execution in step 4;
Step 4, return Internet protocol address to said terminal;
Step 5, receive the website visiting request that send at said terminal, and said website visiting request is sent to the corresponding website server;
Step 6, receive the access response that said Website server returns, and said access response is sent to said terminal.
The present invention provides a kind of network access equipment, comprising:
Receiver module is used for the inquiry of the domain name request that receiving terminal sends, and comprises the domain name of user through the browser address bar input at said terminal in the domain name query requests, and domain name is a network address
,Chinese and English character
Or the arbitrary string of browser address bar acceptance
Judge module is used for the domain name query requests that receives according to receiver module, judges whether domain name is effective;
The dns search module is used for when said judge module judges that domain name is invalid, carries out the dns search operation to obtain effective Internet protocol address;
Sending module is used for when said judge module judges that domain name is effective, perhaps when the domain name search module gets access to effective Internet protocol address, returning Internet protocol address to said terminal;
Forwarding module is used to receive the website visiting request of sending at said terminal, and said website visiting request is sent to the corresponding website server; Be used to receive the access response that said Website server returns simultaneously, and said access response is sent to said terminal.
The present invention provides a kind of internent access system, comprises above-mentioned network access equipment, also comprises:
The terminal is used for sending the inquiry of the domain name request to said network access equipment, comprises the domain name of user through the browser address bar input at said terminal in the domain name query requests, and domain name is a network address
,Chinese and English character
Or the arbitrary string of browser address bar acceptanceBe used to receive the Internet protocol address that said network access equipment returns, and send the website visiting request, and receive the access response that said network access equipment sends to said network access equipment;
Domain name system server; Be used to receive the inquiry of the domain name request that said network access equipment sends, comprise domain name in the domain name query requests, return query requests to said network access equipment; When domain name is effective; Comprise the Internet protocol address corresponding in the said inquiry response, when domain name is invalid, do not comprise the Internet protocol address corresponding in the said inquiry response with domain name with domain name;
Search server; Be used to receive the dns search request that said network access equipment sends; Comprise domain name in the domain name searching request, obtain the effective Internet protocol address relevant, and said effective Internet protocol address is sent to said networking access device with domain name.
Internet access method of the present invention, Apparatus and system are judged through the validity to domain name, and no matter the domain name of user's input is effectively or invalid, and also no matter this domain name is a network address
,Chinese and English character arbitrarily
, or the arbitrary string of browser address bar acceptance, can both return valid ip address to the terminal, for the user provides experience and the service of more optimizing, can prevent the potential safety hazard that fishing website brings simultaneously, avoid the loss of user's property.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 is the flow chart of internet access method one embodiment of the present invention.As shown in Figure 1, the embodiment of the invention provides a kind of internet access method, comprising:
The inquiry of the domain name request that step 101, receiving terminal send comprises the domain name of user through the browser address bar input at terminal in this inquiry of the domain name request, this domain name can be network address
,Chinese and English character
Or it is clear The arbitrary string that the device address field of looking at is accepted
The inquiry of the domain name request that step 102, basis receive judges whether domain name is effective; When domain name is effective, execution in step 104, when domain name is invalid, execution in step 103;
Step 103, carry out dns search operation obtaining the effective I P address, and execution in step 104;
Step 104, return the IP address to the terminal;
The website visiting request that step 105, receiving terminal send, and this website visiting request is sent to the corresponding website server;
Step 106, receive the access response that Website server returns, and access response is sent to the terminal.
The executive agent of the embodiment of the invention is a network access equipment, can be switch, router
,WAP (Access Point; Hereinafter to be referred as: AP)
Or gateway serverWhen the user imports a domain name through the browser address bar of terminal (can be any terminals with browser and function of surfing the Net such as computer, mobile phone or panel computer); The inquiry of the domain name request that the terminal will comprise this domain name is sent to network access equipment; Network access equipment judges whether this domain name is effective, and returns the IP address according to judged result to the terminal, carries out follow-up web site requests flow process then; Make the terminal obtain correct website data, displaying contents.
The embodiment of the invention will be placed on the analysis process of domain name on network access equipment and the remote computer, and to user transparent, the user need not install any additional insert or client on the terminal.
The internet access method that the embodiment of the invention provides is judged through the validity to domain name, and no matter the domain name of user's input is effectively or invalid, and also no matter this domain name is a network address
,Chinese and English character arbitrarily
, or the arbitrary string of browser address bar acceptance, can both return valid ip address to the terminal, for the user provides experience and the service of more optimizing, can prevent the potential safety hazard that fishing website brings simultaneously, avoid the loss of user's property.
Fig. 2 is the flow chart of another embodiment of internet access method of the present invention.As shown in Figure 2, on the basis of the foregoing description, step 102 can comprise:
Step 201, judge whether this domain name meets the domain name standard; When domain name does not meet the domain name standard, judge that domain name is invalid; When domain name meets the domain name standard, execution in step 202;
Step 202, the inquiry of the domain name request is sent to dns server, comprises domain name in this inquiry of the domain name request;
The inquiry response that step 203, reception dns server return;
Step 204, judge whether comprise the IP address corresponding in the inquiry response with domain name; When comprising the IP address corresponding in the inquiry response, judge that this domain name is effective with domain name; When not comprising the IP address corresponding in the inquiry response, judge that domain name is invalid with domain name.
The domain name standard of the embodiment of the invention is meant the unified standard that adopts of Internet technical field, that is, and and net
The domain name of standing must (be a hyphen by the specific character collection of various countries' literal, English alphabet, numeral and "-"
Or minus sign) combination in any forms, and the beginning and the ending all can not be "-"; Alphabetical case insensitive in the domain name;
The length of domain name can reach 67 bytes (comprising suffix " .com ", " .net ", " .org " etc.).Correct territory
Name also need be at ICANN (Internet Corporation for
Assigned Name Numbers; Hereinafter to be referred as: ICANN) register.
Further, the step 103 in the foregoing description can also comprise:
Step 205, send the dns search request, comprise this domain name in this dns search request to search server;
The effective I P address relevant that step 206, reception search server send with this domain name.
The internet access method that the embodiment of the invention provides is judged through the validity to domain name, and no matter the domain name of user's input is effectively or invalid, and also no matter this domain name is a network address
,Chinese and English character arbitrarily
, or the arbitrary string of browser address bar acceptance, can both return valid ip address to the terminal, for the user provides experience and the service of more optimizing, can prevent the potential safety hazard that fishing website brings simultaneously, avoid the loss of user's property.
Fig. 3 is the flow chart of internet access method one specific embodiment of the present invention.As shown in Figure 3, the embodiment of the invention is described domain name and is met the domain name standard, but does not have the situation of the IP address corresponding with this domain name, specifically comprises:
Step 301, user import domain name through the browser address bar at terminal, and the inquiry of the domain name request is initiated to network access equipment in the terminal;
Step 302, when this domain name meets the domain name standard, network access equipment sends to the inquiry of the domain name request in the dns server and inquires about;
Step 303, dns server return inquiry response according to request;
Step 304, when not comprising the IP address in this inquiry response, explain that this domain name does not exist, promptly invalid, network access equipment gets into wrong domain name handling process, returns the IP address response to the terminal, this response comprises the IP address of search server.
The website visiting request is initiated at step 305, terminal, through network access equipment access search server, with nslookup;
Step 306, search server carry out computing, return the effective I P address relevant with this domain name, redirect effective website and give the terminal;
After step 307, terminal receive new IP address, initiate the website visiting request to the corresponding website server through network access equipment;
Step 308, Website server respond to the terminal backward reference through network access equipment;
Step 309, terminal browser obtain correct website data, displaying contents.
The internet access method that the embodiment of the invention provides; Validity through to domain name is judged; When the domain name of user input meets the domain name standard but does not have the IP address corresponding with this domain name; Obtain the effective I P address relevant through the access search server, experience and the service of more optimizing is provided for the user with this domain name.
Fig. 4 is the flow chart of another specific embodiment of internet access method of the present invention.As shown in Figure 4, the embodiment of the invention is described the situation that domain name does not meet the domain name standard, specifically comprises:
Step 401, user import domain name through the browser address bar at terminal, and the inquiry of the domain name request is initiated to network access equipment in the terminal;
Step 402, when this domain name does not meet the domain name standard, network access equipment gets into wrong domain name handling process, returns the IP address response to the terminal, this response comprises the IP address of search server.
The website visiting request is initiated at step 403, terminal, through network access equipment access search server, with nslookup;
Step 404, search server carry out computing, return the effective I P address relevant with this domain name, redirect effective website and give the terminal;
After step 405, terminal receive new IP address, initiate the website visiting request to the corresponding website server through network access equipment;
Step 406, Website server respond to the terminal backward reference through network access equipment;
Step 407, terminal browser obtain correct website data, displaying contents.
Illustrate, if the domain name that the user imports through the browser address bar at terminal is " Sina website ", " xinlang ", " new lang net " or " sina ", clearly these all do not meet the domain name standard.The network access equipment that link to each other with this user terminal this moment will get into wrong domain name handling process; Send the dns search request to search server; " Sina website " that do not meet the domain name standard, " xinlang ", " the new lang net " or " sina " that comprise above-mentioned user's input in this dns search request; Search server then returns the effective I P address relevant with these characters, so the browser of user terminal then directly jumps to http://www.sina.com.cn.
The internet access method of utilizing the embodiment of the invention to provide; The user can computer browser, mobile phone browser or panel computer browser address bar directly import characterize want the word of the content that browser appears; By enter key or point " affirmation ", " going to ", then content corresponding will directly be presented in the browser then.This method has overcome present network address domain name and has been difficult to memory through the expansion to existing network protocol, the problem of resource lookup inconvenience.
Further; If the user is in TV play of browser address bar input or movie name; The internet access method that then provides according to the embodiment of the invention, browser can automatically jump to the webpage corresponding with keyword that certain TV play or film provider are provided.
Perhaps, if the user imports stock or fund title in browser address bar, the internet access method that then provides according to the embodiment of the invention, browser will directly jump to certain financial web site corresponding stock or the fund page.
Perhaps, if the user is name of browser address bar input, particularly well-known famous person; The internet access method that then provides according to the embodiment of the invention, browser will show this people's some essential informations and navigation data, for example this people's personal homepage; BLOG, microblogging address etc.
Perhaps, behind logging in system by user, the browser of different user can show different contents.For example two different login user inputs " Zhang San ", because the people of " Zhang San " by name that they were familiar with possibly not be same individual, then browser can preferentially show the information with this customer relationship nearest " Zhang San ".
The internet access method that the embodiment of the invention provides; Validity through to domain name is judged; When the domain name of user's input does not meet the domain name standard, obtain the effective I P address relevant through the access search server with this domain name, experience and the service of more optimizing is provided for the user.
Fig. 5 is the structural representation of network access equipment one embodiment of the present invention.As shown in Figure 5, the embodiment of the invention provides a kind of network access equipment, comprising: receiver module 51, judge module 52, dns search module 53, sending module 54 and forwarding module 55.Wherein, receiver module 51 is used for the inquiry of the domain name request that receiving terminal sends, and comprises the domain name of user through the browser address bar input at terminal in this inquiry of the domain name request, and this domain name is a network address
,Chinese and English character
Or the arbitrary string of browser address bar acceptanceJudge module 52 is used for the inquiry of the domain name request that receives according to receiver module 51, judges whether domain name is effective; Dns search module 53 is used for when judge module 52 judges that this domain name is invalid, carrying out the dns search operation to obtain effective Internet protocol address; Sending module 54 is used for when judge module 52 judges that this domain name is effective, perhaps when dns search module 53 gets access to effective Internet protocol address, returning Internet protocol address to the terminal; Forwarding module 55 is used for the website visiting request that receiving terminal sends, and this website visiting request is sent to the corresponding website server; Be used to receive the access response that Website server returns simultaneously, and this access response is sent to said terminal.
The network access equipment that the embodiment of the invention provides can be switch, router
,Wireless aps
Or net Close serverWhen the user imports a domain name through the browser address bar of terminal (can be any terminals with browser and function of surfing the Net such as computer, mobile phone or panel computer); The inquiry of the domain name request that the terminal will comprise this domain name is sent to the receiver module 51 of network access equipment, and judge module 52 judges whether this domain name is effective.Sending module 54 returns the IP address according to judged result to the terminal, carries out follow-up web site requests flow process then, makes the terminal obtain correct website data, displaying contents.
The embodiment of the invention will be placed on the analysis process of domain name on network access equipment and the remote computer, and to user transparent, the user need not install any additional insert or client on the terminal.
The network access equipment that the embodiment of the invention provides is judged through the validity to domain name, and no matter the domain name of user's input is effectively or invalid, and also no matter this domain name is a network address
,Chinese and English character arbitrarily
, or the arbitrary string of browser address bar acceptance, can both return valid ip address to the terminal, for the user provides experience and the service of more optimizing, can prevent the potential safety hazard that fishing website brings simultaneously, avoid the loss of user's property.
Fig. 6 is the structural representation of another embodiment of network access equipment of the present invention.As shown in Figure 6, on above-mentioned basis embodiment illustrated in fig. 5, the judge module 52 in this network access equipment can comprise: first judging unit 61 and second judging unit 62.Wherein, first judging unit 61 is used to judge whether domain name meets the domain name standard, when domain name does not meet the domain name standard, judges that this domain name is invalid; Second judging unit 62 is used for when first judging unit 61 is judged domain name compliant domain name standard, the inquiry of the domain name request being sent to dns server, comprises this domain name in the inquiry of the domain name request; Receive the inquiry response that dns server returns, when comprising the IP address corresponding in the inquiry response, judge that this domain name is effective, when not comprising the IP address corresponding in the inquiry response, judge that this domain name is invalid with this domain name with this domain name.
The domain name standard of the embodiment of the invention is meant the unified standard that adopts of Internet technical field, that is, and and net
The domain name of standing must (be a hyphen by the specific character collection of various countries' literal, English alphabet, numeral and "-"
Or minus sign) combination in any forms, and the beginning and the ending all can not be "-"; Alphabetical case insensitive in the domain name;
The length of domain name can reach 67 bytes (comprising suffix " .com ", " .net ", " .org " etc.).Correct territory
Name also need be at ICANN (Internet Corporation for
Assigned Name Numbers; Hereinafter to be referred as: ICANN) register.
Further, above-mentioned dns search module 53 in embodiment illustrated in fig. 5 can comprise: transmitting element 63 and receiving element 64.Wherein, transmitting element 63 is used for sending the dns search request to search server, comprises this domain name in the dns search request; Receiving element 64 is used to receive the effective I P address relevant with this domain name that search server sends.
The network access equipment that the embodiment of the invention provides is judged through the validity to domain name, and no matter the domain name of user's input is effectively or invalid, and also no matter this domain name is a network address
,Chinese and English character arbitrarily
, or the arbitrary string of browser address bar acceptance, can both return valid ip address to the terminal, for the user provides experience and the service of more optimizing, can prevent the potential safety hazard that fishing website brings simultaneously, avoid the loss of user's property.
Fig. 7 is the system block diagram of internent access system embodiment of the present invention.As shown in Figure 7, the embodiment of the invention provides a kind of internent access system, comprises above-mentioned Fig. 5 or network access equipment 71 shown in Figure 6, also comprises: terminal 72, dns server 73 and search server 74.Wherein, terminal 72 is used for sending the inquiry of the domain name request to network access equipment 71, comprises the domain name of user through the browser address bar input at terminal 72 in this inquiry of the domain name request, and this domain name is a network address
,Chinese and English character
Or browser address The arbitrary string that the hurdle is acceptedBe used to receive the Internet protocol address that network access equipment 71 returns, and send the website visiting request, and receive the access response that network access equipment 71 sends to network access equipment 71; Dns server 73 is used to receive the inquiry of the domain name request that network access equipment 71 sends; Comprise this domain name in this inquiry of the domain name request; Return query requests to network access equipment 71, when this domain name is effective, comprise the IP address corresponding in the inquiry response with this domain name; When this domain name is invalid, do not comprise the IP address corresponding in the inquiry response with this domain name; Search server 74 is used to receive the dns search request that network access equipment 71 sends, and comprises this domain name in the dns search request, obtains the effective I P address relevant with this domain name, and this effective I P address is sent to networking access device 71.
In embodiments of the present invention, search server 74 can independently be provided with, and also can be arranged in the network access equipment 71.
Among the native system embodiment function of network access equipment 71 such as above-mentioned Fig. 5 or embodiment illustrated in fig. 6 in specific descriptions, repeat no more at this.
The internent access system that the embodiment of the invention provides is judged through the validity to domain name, and no matter the domain name of user's input is effectively or invalid, and also no matter this domain name is a network address
,Chinese and English character arbitrarily
, or the arbitrary string of browser address bar acceptance, can both return valid ip address to the terminal, for the user provides experience and the service of more optimizing, can prevent the potential safety hazard that fishing website brings simultaneously, avoid the loss of user's property.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.