CN106302842A - A kind of domain name analytic method, Apparatus and system - Google Patents

A kind of domain name analytic method, Apparatus and system Download PDF

Info

Publication number
CN106302842A
CN106302842A CN201510262429.2A CN201510262429A CN106302842A CN 106302842 A CN106302842 A CN 106302842A CN 201510262429 A CN201510262429 A CN 201510262429A CN 106302842 A CN106302842 A CN 106302842A
Authority
CN
China
Prior art keywords
address
domain name
particular webpage
mapping
mapping relations
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510262429.2A
Other languages
Chinese (zh)
Other versions
CN106302842B (en
Inventor
谢慧琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510262429.2A priority Critical patent/CN106302842B/en
Priority to PCT/CN2016/081950 priority patent/WO2016184349A1/en
Publication of CN106302842A publication Critical patent/CN106302842A/en
Application granted granted Critical
Publication of CN106302842B publication Critical patent/CN106302842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2514Translation of Internet protocol [IP] addresses between local and global IP addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2575NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Abstract

This application discloses a kind of domain name analytic method, the method for Connection Service device, network agent method and related device, electronic equipment and system.Wherein said domain name analytic method includes: receive the domain name mapping request of the corresponding particular webpage address that client sends;Resolve domain name analysis request, obtain described particular webpage address;With described particular webpage address for retrieval foundation, the mapping relations set between default IP address and domain name is retrieved, obtains the IP address corresponding with described particular webpage address.Use the method that the application provides so that when client browser opens web page files, it is possible to the machine that different port or path under same domain name have access to specify respectively is set, thus reaches to improve the effect of Consumer's Experience.

Description

A kind of domain name analytic method, Apparatus and system
Technical field
The application relates to Internet technical field, is specifically related to a kind of domain name analytic method, device and electronics and sets Standby.The application relates to method, device and the electronic equipment of a kind of Connection Service device, and a kind of domain name simultaneously Resolution system.The application further relates to a kind of network agent method, device and electronic equipment.
Background technology
Domain name mapping is that domain name is pointed to web space IP address, and the domain name allowing people pass through registration can facilitate Have access to the service of website one.IP address is the numeric address identifying website on network, remembers for convenience, Domain name is used to replace IP address to identify site address.Domain name mapping is exactly the domain name transformation process to IP address.
Client user by a browser input web page address to given server request service time, including Two steps: 1) obtain IP address according to web page address;2) sending to given server according to IP address please Ask.Wherein, according to web page address obtain IP address common method be: when client user in a browser When inputting the network address that needs login, client operating system can be first automatically from Hosts domain name mapping file The middle IP address finding correspondence, once finds, and client operating system can send a request to this IP ground immediately Corresponding webpage is opened in location;Without finding, then web page address can be submitted to DNS by client operating system Domain name resolution server, is carried out the parsing of IP address by DNS name resolution server, when receiving DNS During the IP address that domain name resolution server returns, client operating system directly sends a request to this IP address Open corresponding webpage.
Above-mentioned domain name mapping Hosts file is a system file not having extension name, can be by works such as notepads Tool is opened, and an association " number is set up in IP address corresponding for some conventional network address domain names by its effect exactly According to storehouse ".One traditional Hosts file format is such that
127.0.0.1 localhost
10.6.1.198 www.1688.com
10.6.1.123 style.c.aliimg.com
Wherein first row is IP address, and secondary series is host name (domain name), if representing that current system has to pass through HTTP When accessing the resource that secondary series gives host name, connection request should be initiated to the IP address that first row is specified, and Need not move through dns resolution IP address.In sum, can be according to designated domain name by inquiry Hosts file Access specified machine.
In actual applications, when user browses webpage, it is often necessary to different port under same domain name is set Or path, the machine specified can be had access to respectively, it may be assumed that different port or path under same domain name need Being mapped to different servers, such as, user wishes that www.1688.com:80 has access to machine A, Www.1688.com:8080 has access to machine B, or www.1688.com/path1 has access to machine C, Www.1688.com/path2 has access to machine D.
But, there is a limitation in existing domain name mapping Hosts file format, it may be assumed that does not support port and road Footpath, such as, following literary style with being wrong for existing Hosts specification, be also cannot realize intended Target:
10.6.1.123 www.1688.com:80
10.6.1.124 www.1688.com:8080
10.6.1.125 www.1688.com/path1
10.6.1.126 www.1688.com/path2
As can be seen here, owing to domain name mapping Hosts file format does not support port and path, therefore by Hosts literary composition Part cannot realize the different port under same domain name or map paths to different servers.
Summary of the invention
The application provides a kind of domain name analytic method, device and electronic equipment, to solve what prior art existed Cannot be realized the different port under same domain name or map paths to different services by Hosts file The problem of device.The application additionally provides method, device and the electronic equipment of a kind of Connection Service device, Yi Jiyi Plant domain name analysis system.The application further relates to a kind of network agent method, device and electronic equipment.
The application provides a kind of domain name analytic method, including:
Receive the domain name mapping request of the corresponding particular webpage address that client sends;
Resolve domain name analysis request, obtain described particular webpage address;
With described particular webpage address for retrieval foundation, the mapping relations between default IP address and domain name Set is retrieved, obtains the IP address corresponding with described particular webpage address.
Optionally, domain name includes protocol name and Hostname, and serve port address and webpage road At least one in footpath.
Optionally, the mapping relations between described default IP address and domain name include that multiple IP address is corresponding same The mapping relations of one domain name, the mapping relations of a corresponding domain name in IP address, or multiple IP address pair Answer the mapping relations of multiple domain names.
Optionally, described with described particular webpage address for retrieval foundation, default IP address and domain name it Between mapping relations set in retrieve, obtain the IP address corresponding with described particular webpage address, bag Include:
Travel through each mapping relations that the mapping relations set between described IP address and domain name includes, it is judged that when Whether the domain name of front mapping relations is the substring of described particular webpage address;
If above-mentioned judged result is yes, then using the IP address of described current mapping relations as with described ad hoc networks The IP address that page address is corresponding;
If above-mentioned judged result is no, then return the mapping relations between described traversal described IP address and domain name The step of each mapping relations that set includes, it is judged that whether the domain name of next mapping relations is described ad hoc networks The substring of page address, until all in the mapping relations set traveled through between described IP address and domain name Mapping relations.
Optionally, in described current mapping relations, each component of domain name independently stores, described territory The component of name includes protocol name and Hostname, and serve port address and webpage path are at least One;Whether the described domain name judging current mapping relations is the substring of described particular webpage address, bag Include:
Each component of domain name is spliced into a character string;
Judge that whether the character string of splicing is the substring of described particular webpage address.
Optionally, also include:
The IP address corresponding with described particular webpage address obtained to described client loopback.
Optionally, described with described particular webpage address for retrieving foundation, in default IP address and domain name Between mapping relations set in retrieve, obtain the IP address corresponding with described particular webpage address it Before, also include:
Obtain the mapping relations set between described IP address and domain name.
Optionally, the mapping relations set between described acquisition described IP address and domain name, in the following way:
Read the configuration file of the mapping relations stored between described IP address and domain name, obtain described IP address And the mapping relations set between domain name.
Optionally, before the domain name mapping request in the corresponding particular webpage address that described reception client sends, Also include:
Start the domain name mapping device preset;Described default domain name mapping device, refers to a kind of for receiving The domain name mapping request of the corresponding particular webpage address that client sends, and particular webpage address is carried out IP ground The device that location resolves.
Optionally, described default domain name mapping plant running is in described client.
Optionally, before the domain name mapping request in the corresponding particular webpage address that described reception client sends, Also include:
Configure corresponding to the domain name mapping request that described client is sent by described default domain name mapping device Particular webpage address carries out IP address resolution.
Optionally, described default domain name mapping device is the ingredient of proxy server.
Optionally, the mapping relations set between described IP address and domain name is stored in mapping relations configuration file In.
Accordingly, the application also provides for a kind of domain name mapping device, including:
Receive unit, for receiving the domain name mapping request of the corresponding particular webpage address that client sends;
Resolution unit, is used for resolving domain name analysis request, obtains described particular webpage address;
Retrieval unit, for described particular webpage address for retrieving foundation, in default IP address and domain name Between mapping relations set in retrieve, obtain the IP address corresponding with described particular webpage address.
Optionally, described retrieval unit includes:
Ergodic judgement subelement, for traveling through what the mapping relations set between described IP address and domain name included Each mapping relations, it is judged that whether the domain name of current mapping relations is the substring of described particular webpage address;
Subelement is set, if being yes for above-mentioned judged result, then by the IP address of described current mapping relations As the IP address corresponding with described particular webpage address;
Returning subelement, if being no for above-mentioned judged result, then returning to described traversal described IP address and territory The step of each mapping relations that the mapping relations set between Ming includes, it is judged that the domain name of next mapping relations It is whether the substring of described particular webpage address, until having traveled through reflecting between described IP address and domain name Penetrate all mapping relations in set of relationship.
Optionally, in described current mapping relations, each component of domain name independently stores, described territory The component of name includes protocol name and Hostname, and serve port address and webpage path are at least One;Described Ergodic judgement subelement includes:
Judgment sub-unit, for judging that whether the domain name of current mapping relations is the son of described particular webpage address Character string;
Described judgment sub-unit includes:
Splicing subelement, for being spliced into a character string by each component of domain name;
First judgment sub-unit, for judging that whether the character string of splicing is the sub-word of described particular webpage address Symbol string.
Optionally, also include:
Loopback cell, for the IP corresponding with described particular webpage address obtained to described client loopback Address.
Optionally, also include:
Acquiring unit, for obtaining the mapping relations set between described IP address and domain name.
Optionally, also include:
Start unit, for starting default domain name mapping device;Described default domain name mapping device, be Refer to a kind of domain name mapping request for receiving the corresponding particular webpage address that client sends, and to ad hoc networks Page address carries out the device of IP address resolution.
Optionally, also include:
Dispensing unit, for configuring the domain name solution that described client is sent by described default domain name mapping device Particular webpage address corresponding to analysis request carries out IP address resolution.
Optionally, also include:
Unit is set, for arranging the mapping relations set between described IP address and domain name.
Accordingly, the application also provides for a kind of electronic equipment, including:
Display;
Processor;And
Memorizer, is used for storing domain name mapping device, when domain name resolver is performed by described processor, Comprise the steps: to receive the domain name mapping request of the corresponding particular webpage address that client sends;Resolve institute State domain name mapping request, obtain described particular webpage address;With described particular webpage address for retrieval foundation, Mapping relations set between default IP address and domain name is retrieved, obtains and described particular webpage The IP address that address is corresponding.
Additionally, a kind of method that the application also provides for Connection Service device, including:
Send the domain name mapping request of corresponding particular webpage address to default domain name mapping device, request is described Domain name mapping device carries out IP address resolution to described particular webpage address;
Receive the response of described default domain name mapping device loopback;
Response according to described default domain name mapping device loopback, it is judged that described default domain name mapping device Whether get the IP address corresponding with described particular webpage address;
If above-mentioned judged result is yes, then the IP address that described and described particular webpage address is corresponding is initiated Socket connects;
Wherein said default domain name mapping device, refers between IP address and the domain name that a kind of basis is preset Mapping relations, carry out the device of IP address resolution to particular webpage address;Between described IP address and domain name Domain name in mapping relations includes protocol name and Hostname, and serve port address and webpage path At least one.
Optionally, also include:
If above-mentioned judged result is no, then sends domain name to default DNS name resolution server and resolve Request, asks described default DNS name resolution server that described particular webpage address is carried out IP address solution Analysis;
Receive the response of described default DNS name resolution server loopback;
Response according to described default DNS name resolution server loopback, it is judged that described default DNS Whether domain name resolution server gets the IP address corresponding with described particular webpage address;
If above-mentioned judged result is yes, then the IP address that described and described particular webpage address is corresponding is initiated Socket connects.
Optionally, in the described domain name mapping sending corresponding particular webpage address to default domain name mapping device Before request, also include:
Start described default domain name mapping device;Described default domain name mapping device, refer to a kind of for Receive the domain name mapping request of the corresponding particular webpage address that client sends, and particular webpage address is carried out The device of IP address resolution.
Optionally, described default domain name mapping plant running is in described client.
Optionally, in the described domain name mapping sending corresponding particular webpage address to default domain name mapping device Before request, also include:
Configure corresponding to the domain name mapping request that described client is sent by described default domain name mapping device Particular webpage address carries out IP address resolution.
Optionally, described default domain name mapping device is the ingredient of proxy server.
Accordingly, the application also provides for the device of a kind of Connection Service device, including:
First transmitting element, for sending the domain name of corresponding particular webpage address to default domain name mapping device Analysis request, request domain name resolver carries out IP address resolution to described particular webpage address;
First receives unit, for receiving the response of described default domain name mapping device loopback;
First judging unit, for the response according to described default domain name mapping device loopback, it is judged that described Whether the domain name mapping device preset gets the IP address corresponding with described particular webpage address;
First connects unit, if being yes for above-mentioned judged result, then to described and described particular webpage address Corresponding IP address is initiated socket and is connected.
Optionally, also include:
Second transmitting element, if being no for above-mentioned judged result, then to default DNS name resolution service Device sends domain name analysis request, asks described default DNS name resolution server to described ad hoc networks Page address carries out IP address resolution;
Second receives unit, for receiving the response of described default DNS name resolution server loopback;
Second judging unit, for the response according to described default DNS name resolution server loopback, sentences Whether disconnected described default DNS name resolution server gets the IP corresponding with described particular webpage address Address;
Second connects unit, if being yes for above-mentioned judged result, then to described and described particular webpage address Corresponding IP address is initiated socket and is connected.
Optionally, also include:
Start unit, for starting described default domain name mapping device;Described default domain name mapping device, Refer to a kind of domain name mapping request for receiving the corresponding particular webpage address that client sends, and to specific Web page address carries out the device of IP address resolution.
Optionally, also include:
Dispensing unit, for configuring the domain name solution that described client is sent by described default domain name mapping device Particular webpage address corresponding to analysis request carries out IP address resolution.
Accordingly, the application also provides for a kind of electronic equipment, including:
Display;
Processor;And
Memorizer, is used for storing browser, when described browser is performed by described processor, including walking as follows Rapid: send the domain name mapping request of corresponding particular webpage address to default domain name mapping device, request is described Domain name mapping device carries out IP address resolution to described particular webpage address;Receive described default domain name mapping The response of device loopback;Response according to described default domain name mapping device loopback, it is judged that described default Whether domain name mapping device gets the IP address corresponding with described particular webpage address;If above-mentioned judgement is tied Fruit is yes, then the IP address that described and described particular webpage address is corresponding is initiated socket and connect;Wherein Described default domain name mapping device, refers to the mapping relations between IP address and the domain name that a kind of basis is preset, Particular webpage address is carried out the device of IP address resolution;In mapping relations between described IP address and domain name Domain name include protocol name and Hostname, and serve port address and at least one in webpage path.
Accordingly, the application also provides for a kind of domain name analysis system, including: according to any of the above-described item Domain name mapping device;And the device according to the Connection Service device described in any of the above-described item.
Additionally, the application also provides for a kind of network agent method, including:
Receive the connection request of the corresponding particular webpage address that client sends;
With the described particular webpage address in described connection request for retrieval foundation, in default IP address and territory Mapping relations set between Ming is retrieved, obtains the IP address corresponding with described particular webpage address;
Judge whether to get the IP address corresponding with described particular webpage address;
If above-mentioned judged result is yes, then the IP address that described and described particular webpage address is corresponding is initiated Socket connects.
Optionally, also include:
If above-mentioned judged result is no, then send corresponding described specific to default DNS name resolution server The domain name mapping request of web page address, asks described default DNS name resolution server to described ad hoc networks Page address carries out IP address resolution;
Receive the response of described default DNS name resolution server loopback;
Response according to described default DNS name resolution server loopback, it is judged that described default DNS Whether domain name resolution server gets the IP address corresponding with described particular webpage address;
If above-mentioned judged result is yes, then the IP address that described and described particular webpage address is corresponding is initiated Socket connects.
Optionally, before the connection request of the corresponding particular webpage address that described reception client sends, also Including:
Start the network agent device performing described network agent method;Described network agent device, refers to one Plant the connection request for receiving the corresponding particular webpage address that client sends, and to described particular webpage ground The device of the server initiation socket connection that location is corresponding.
Optionally, described network agent plant running is in described client.
Optionally, before the connection request of the corresponding particular webpage address that described reception client sends, also Including:
Configure described network agent device and act on behalf of the connection request that described client sends.
Optionally, described network agent device uses proxy server.
Optionally, before the described network agent device starting the described network agent method of execution, also include:
Mapping relations set between described IP address and domain name is set.
Optionally, domain name includes protocol name and Hostname, and serve port address and webpage road At least one in footpath.
Optionally, described with described particular webpage address for retrieval foundation, default IP address and domain name it Between mapping relations set in retrieve, obtain the IP address corresponding with described particular webpage address, bag Include:
Travel through each mapping relations that the mapping relations set between described IP address and domain name includes, it is judged that when Whether the domain name of front mapping relations is the substring of described particular webpage address;
If above-mentioned judged result is yes, then using the IP address of described current mapping relations as with described ad hoc networks The IP address that page address is corresponding;
If above-mentioned judged result is no, then return the mapping relations between described traversal described IP address and domain name The step of each mapping relations that set includes, it is judged that whether the domain name of next mapping relations is described ad hoc networks The substring of page address, until all in the mapping relations set traveled through between described IP address and domain name Mapping relations.
Optionally, described with described particular webpage address for retrieving foundation, in default IP address and domain name Between mapping relations set in retrieve, obtain the IP address corresponding with described particular webpage address it Before, also include:
Obtain the mapping relations set between described IP address and domain name.
Optionally, the mapping relations set between described IP address and domain name is stored in mapping relations configuration file In.
Accordingly, the application also provides for a kind of network agent device, including:
Receive request unit, for receiving the connection request of the corresponding particular webpage address that client sends;
First domain name mapping unit, for depending on the described particular webpage address in described connection request for retrieval According to, the mapping relations set between default IP address and domain name is retrieved, obtains specific with described The IP address that web page address is corresponding;
First judging unit, for judging whether to get the IP address corresponding with described particular webpage address;
First connects unit, if being yes for above-mentioned judged result, then to described and described particular webpage address Corresponding IP address is initiated socket and is connected.
Optionally, also include:
Transmitting element, if being no for above-mentioned judged result, then sends out to default DNS name resolution server The domain name mapping sending corresponding described particular webpage address is asked, and asks described default DNS name resolution service Device carries out IP address resolution to described particular webpage address;
Receive response unit, for receiving the response of described default DNS name resolution server loopback;
Second judging unit, for the response according to described default DNS name resolution server loopback, sentences Whether disconnected described default DNS name resolution server gets the IP corresponding with described particular webpage address Address;
Second connects unit, if being yes for above-mentioned judged result, then to described and described particular webpage address Corresponding IP address is initiated socket and is connected.
Optionally, also include:
Start unit, for starting the network agent device performing described network agent method;Described network generation Reason device, refers to a kind of for receiving the connection request of corresponding particular webpage address that client sends, and to The device of the server initiation socket connection that described particular webpage address is corresponding.
Optionally, also include:
Dispensing unit, acts on behalf of, for configuring described network agent device, the connection request that described client sends.
Optionally, also include:
Unit is set, for arranging the mapping relations set between described IP address and domain name.
Optionally, described first domain name mapping unit includes:
Judgment sub-unit, for travel through that the mapping relations set between described IP address and domain name includes each Mapping relations, it is judged that whether the domain name of current mapping relations is the substring of described particular webpage address;
Subelement is set, if being yes for above-mentioned judged result, then by the IP address of described current mapping relations As the IP address corresponding with described particular webpage address;
Returning subelement, if being no for above-mentioned judged result, then returning to described traversal described IP address and territory The step of each mapping relations that the mapping relations set between Ming includes, it is judged that the domain name of next mapping relations It is whether the substring of described particular webpage address, until having traveled through reflecting between described IP address and domain name Penetrate all mapping relations in set of relationship.
Optionally, also include:
Acquiring unit, for obtaining the mapping relations set between described IP address and domain name.
Accordingly, the application also provides for a kind of electronic equipment, including:
Display;
Processor;And
Memorizer, is used for storing network agent device, when described network agent device is performed by described processor, Comprise the steps: to receive the connection request of the corresponding particular webpage address that client sends;With described connection Described particular webpage address in request is closed for retrieval foundation, the mapping between default IP address and domain name Assembly is retrieved in closing, and obtains the IP address corresponding with described particular webpage address;Judge whether to obtain To the IP address corresponding with described particular webpage address;If above-mentioned judged result is yes, then to described and institute State corresponding IP address, particular webpage address and initiate socket connection.
Compared with prior art, the application has the advantage that
Domain name analytic method that the application provides, the method for Connection Service device, network agent method and corresponding Device, electronic equipment and system, by the territory to the corresponding particular webpage address that the client received sends Name analysis request resolves, and obtains particular webpage address, and with particular webpage address for retrieving foundation, Mapping relations set between IP address and the domain name preset is retrieved, obtains and particular webpage address phase Corresponding IP address so that when client browser opens web page files, it is possible to arrange under same domain name not Have access to the machine specified with port or path respectively, thus reach to improve the effect of Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the flow chart of the domain name analytic method embodiment of the application;
Fig. 2 is the particular flow sheet of the domain name analytic method embodiment preparatory stage of the application;
Fig. 3 is the particular flow sheet of domain name analytic method embodiment step S105 of the application;
Fig. 4 is that the domain name analytic method embodiment of the application judges whether the domain name of current mapping relations is described The particular flow sheet of the substring of particular webpage address;
Fig. 5 is the schematic diagram of the domain name mapping device embodiment of the application;
Fig. 6 is the concrete schematic diagram of the domain name mapping device embodiment retrieval unit 105 of the application;
Fig. 7 is the concrete schematic diagram of the domain name mapping device embodiment of the application;
Fig. 8 is the schematic diagram of a kind of electronic equipment embodiment of the application;
Fig. 9 is the flow chart of the embodiment of the method for the Connection Service device of the application;
Figure 10 is the particular flow sheet of the embodiment of the method for the Connection Service device of the application;
Figure 11 is the particular flow sheet of the embodiment of the method preparatory stage of the Connection Service device of the application;
Figure 12 is the schematic diagram of the device embodiment of the Connection Service device of the application;
Figure 13 is the concrete schematic diagram of the device embodiment of the Connection Service device of the application;
Figure 14 is the another concrete schematic diagram of the device embodiment of the Connection Service device of the application;
Figure 15 is the schematic diagram of the another electronic equipment embodiment of the application;
Figure 16 is the schematic diagram of the domain name analysis system embodiment of the application;
Figure 17 is the flow chart of the network agent embodiment of the method for the application;
Figure 18 is the particular flow sheet of the network agent embodiment of the method preparatory stage of the application;
Figure 19 is the particular flow sheet of the network agent embodiment of the method for the application;
Figure 20 is the schematic diagram of the network agent device embodiment of the application;
Figure 21 is the concrete schematic diagram of the network agent device embodiment of the application;
Figure 22 is the another concrete schematic diagram of the network agent device embodiment of the application;
Figure 23 is the schematic diagram of another electronic equipment embodiment of the application.
Detailed description of the invention
Elaborate a lot of detail in the following description so that fully understanding the application.But the application Can implement to be much different from alternate manner described here, those skilled in the art can without prejudice to Doing similar popularization in the case of the application intension, therefore the application is not limited by following public being embodied as.
In this application, it is provided that a kind of domain name analytic method, device and electronic equipment, a kind of Connection Service The method of device, device and electronic equipment, a kind of domain name analysis system, and a kind of network agent method, dress Put and electronic equipment.It is described in detail the most one by one.
The domain name analytic method that the application provides, its basic thought is: can be on default IP ground by one Location to the mapping relations of domain name carry out the domain name mapping device of query and search, the ad hoc networks to client input Page address carries out the parsing of IP address, thus obtains the IP address of particular webpage address.
Refer to Fig. 1, it is the flow chart of domain name analytic method embodiment of the application.Described method include as Lower step:
Step S101: receive the domain name mapping request of the corresponding particular webpage address that client sends.
Client described in the embodiment of the present application includes but not limited to mobile communication equipment, it may be assumed that usually said Mobile phone or smart mobile phone, also include the terminal unit such as PC, PAD, iPad.It is positioned at client User can be by inputting particular webpage address in the address field of browser, to default domain name mapping device Send the domain name mapping request of corresponding particular webpage address.Additionally, client user can also be by computer On operate as follows sending domain name analysis request: start--> run--> input cmd--> ping domain name--> Carriage return checks that result, display result are similar to Reply from 220.181.31.183:bytes=32time=79ms TTL=53, middle 220.181.31.183 is exactly the IP address of domain name.
Particular webpage address described in the embodiment of the present application, its technical term is referred to as URL (Uniform Resource Locator, URL).URL is to obtaining from the Internet The position of resource and a kind of succinct expression of access method, be the address of standard resource on the Internet.Mutually Each file in networking has a unique URL, and the information that it comprises points out the position of file and clear How device of looking at should process it.The reference format of URL is as follows: protocol type: // server address (needing if desired plus port numbers)/path/filename, such as, a typical URL is similar to So: http://www.1688.com:80/search/index.jsp?Title=keyword, wherein http (hypertext Host-host protocol resource) it is the protocol type asked;Www.1688.com is that server address (is also called domain name Or Hostname);80 is the network port number on server;/ search/index.jsp is road Footpath;?Title=keyword, is query argument.
The domain name analytic method that the application to be implemented provides, needs to be beforehand with some preparations.Refer to Fig. 2, It is the particular flow sheet of domain name analytic method embodiment preparatory stage of the application.Concrete, connect described Before receiving the domain name mapping request of the corresponding particular webpage address that client sends, also include:
Step S201: start the domain name mapping device preset.
The domain name analytic method that the embodiment of the present application provides is responsible for performing by a domain name mapping device. Domain name mapping device described in the embodiment of the present application, refers to that a kind of correspondence for receiving client transmission is specific The domain name mapping request of web page address, and particular webpage address is carried out the device of IP address resolution.Therefore, The domain name analytic method that the embodiment of the present application to be performed provides, first has to start domain name mapping device, works as domain name After resolver starts, the domain name mapping request that client sends will be waited.Territory described in the embodiment of the present application Name analysis device, both may operate in the client of sending domain name analysis request, it is also possible to operate in other In the terminal unit of networking, including providing the computer system of domain name resolution service or the other type of network terminal, Such as: the network terminal such as gateway or router.
In actual applications, both so that analysis result is directly returned to client by domain name mapping device, Directly initiated socket to the IP address obtained by client to connect;Device can also be translated domain names into as generation One ingredient of reason server (Proxy Server) so that domain name mapping device can directly will resolve Result returns to proxy server, proxy server initiate socket to the IP address obtained and connect.Above-mentioned Various different echo plex modes are all the change of detailed description of the invention, all without departing from the core of the application, because of This is all within the protection domain of the application.
In the present embodiment, using described default domain name mapping device as a composition portion of proxy server Point, wherein domain name mapping device is responsible for receiving the domain name solution of the corresponding particular webpage address that client sends specially Analysis request, and particular webpage address is carried out IP address resolution, and proxy server is getting domain name mapping Behind the IP address that device returns, initiate socket to the IP address got and connect.Therefore, at the present embodiment In, the operation starting the domain name mapping device preset also is the operation starting proxy server.
If it should be noted that translating domain names into a device ingredient as proxy server, then The connection request sent for client, the processing procedure of proxy server end comprises the steps: 1) agency Server receives the original connection request of the corresponding particular network address that client sends;2) proxy server This request is changed into domain name mapping request, and this domain name mapping request is sent to domain name mapping device;3) Domain name mapping device responds this domain name mapping request, obtains the IP address that particular webpage address is corresponding, and will solve Analysis result returns to proxy server;4) socket connection initiated by proxy server to the IP address obtained;5) The content of the particular webpage address received is returned to client browser by proxy server.
For making the domain name mapping device preset be able to receive that the domain name mapping request that client sends, described Before receiving the domain name mapping request of the corresponding particular webpage address that client sends, also include:
Step S203: configuring domain name mapping that described client sends by described default domain name mapping device please The particular webpage address asking corresponding carries out IP address resolution.
Generally, the domain name mapping request sent for client, the domain name resolution process of acquiescence is: client Operating system reads the Hosts domain name mapping file that client is local, whether inquiry Hosts file exists with The IP address that particular webpage address in request is corresponding, if existing, returns to the IP ground found to client Location;If not existing, then the request that translates domain names into is sent to DNS name resolution server, if DNS domain name Resolution server find with ask in corresponding IP address, particular webpage address, then return to client The IP address found.
The domain name analytic method that the embodiment of the present application to be implemented provides, needs by the domain name mapping specifically preset Device receives the domain name mapping request that client sends, and particular webpage address is carried out IP address resolution.For This, need the pre-configured domain name mapping request being responsible for receiving client transmission by domain name mapping device, and The non-Hosts domain name mapping file reading acquiescence.
In the present embodiment, using described default domain name mapping device as a composition portion of proxy server Point, therefore, the domain name mapping device that configuration is preset is responsible for resolving the operation of IP address, namely configures appointment The operation of proxy server.Concrete, include territory by arranging in the tools menu of client browser The proxy server of name analysis device.
The domain name analytic method that the embodiment of the present application provides, is built upon between IP address and the domain name preset In mapping relations collection basis.Therefore, before the domain name mapping device that described startup is preset, also include:
Step S200: the mapping relations set between described IP address and domain name is set.
The mapping relations between IP address and domain name described in the embodiment of the present application, can in wherein said domain name To include protocol name and Hostname, and serve port address and at least one in webpage path.Therefore, The domain name analytic method that the embodiment of the present application provides, it is possible to solve existing Hosts domain name mapping file format and deposit The problem not supporting port and path.
The mapping relations between IP address and domain name described in the embodiment of the present application include that multiple IP address is corresponding same The mapping relations of one domain name, the mapping relations of a corresponding domain name in IP address, or multiple IP address pair Answer the mapping relations of multiple domain names.When same domain name is corresponding with multiple IP addresses, this domain name can be tied Close serve port address or webpage path so that the different serve port addresses under same domain name or webpage path Can corresponding different IP address, thus reach the different services under same domain name with can point at different IP Location or different servers.Such as: when accessing www.1688.com:8080, be connected to IP address 10.6.1.123, it is connected to IP address 10.6.1.125 when accessing www.1688.com/path1, Www.1688.com:8080 and www.1688.com/path1 belongs to same domain name, but the two corresponding different IP Address.When multiple domain names are corresponding with multiple IP addresses, a domain name corresponding multiple IP ground can either be realized Location, additionally it is possible to realize the corresponding multiple domain names in an IP address.
In actual applications, various different storage format can be used to store according to concrete application demand Mapping relations between described IP address and domain name, such as: text formatting, database format etc..When with literary composition When this form stores the mapping relations between described IP address and domain name, then can start at domain name mapping device Time, configuration file is read internal memory, to improve the efficiency of match query;When storing institute with tables of data form When stating the mapping relations between IP address and domain name, then can be when receiving domain name mapping request, with request In web page address be retrieval foundation, retrieve in tables of data, to obtain corresponding IP address.Above-mentioned Various different storage formats are all the change of detailed description of the invention, all without departing from the core of the application, because of This is all within the protection domain of the application.
In the present embodiment, the mapping relations between described IP address and domain name are stored in the configuration of text formatting In file.This configuration file comprises two row, uses tab to separate, and first row is the IP address of server, the Two row are the domain names that can comprise host name, port and path described in the embodiment of the present application.Such as, user Desire access to during www.1688.com:8080, be connected to IP address 10.6.1.123, access Be connected to IP address 10.6.1.125 during www.1688.com/path1, then configuration file uses following literary style:
10.6.1.123 www.1688.com:8080
10.6.1.124 www.1688.com:80
10.6.1.125 www.1688.com/path1
10.6.1.126 www.1688.com/path2
When domain name mapping device starts, this configuration file is read internal memory, and forms data as shown in Table 1 Structure:
Host name Port Path IP address
www.1688.com 8080 10.6.1.123
www.1688.com 80 path1 10.6.1.124
The data structure of the mapping relations of table one, IP address and domain name
It should be noted that the mapping relations of not specified port, 80 ports will be automatically set as.
As can be seen here, the mapping relations between above-mentioned IP address and domain name can support port and path, thus Realize the different port under same domain name or map paths to different servers.
Step S103: resolve domain name analysis request, obtain described particular webpage address.
After receiving the domain name mapping request that client sends, resolve the system in this request by step S103 One URLs, obtains the information such as its protocol type, host name, port, path and query argument.Example As, client user inputs the URL of particular webpage in a browser www.1688.com/path1/subpath1?A=1&b=2, is obtained after this request analysis by step S103 Structure as shown in Table 2:
Structure after table two, HTTP request are resolved
Step S105: with described particular webpage address for retrieval foundation, between default IP address and domain name Mapping relations set in retrieve, obtain the IP address corresponding with described particular webpage address.
After step S101 and step S103, enter into step S105, the spy in asking with domain name mapping Determining web page address is retrieval foundation, examines in the mapping relations set between default IP address and domain name Rope, obtains the IP address corresponding with particular webpage address.Step S105 to be implemented, it is necessary first to obtain institute State the mapping relations set between IP address and domain name.
In actual applications, mode and the mapping of mapping relations set between described IP address and domain name are obtained The storage mode of relation is correlated with, and different storage modes obtains the mode of mapping relations and also differs.When with literary composition When this form stores the mapping relations between described IP address and domain name, then can start at domain name mapping device Time, read configuration file, mapping relations are read in internal memory so that step S105 match query is used;When with When tables of data form stores the mapping relations between described IP address and domain name, then to ask in step S105 Web page address in asking is retrieval foundation, retrieves in real time in tables of data, to obtain corresponding IP ground Location.
In the present embodiment, the mapping relations set between described IP address and domain name is stored in text formatting In configuration file, the mapping relations set between described acquisition described IP address and domain name, in the following way: Read the configuration file of the mapping relations stored between described IP address and domain name, obtain described IP address and territory Mapping relations set between Ming.
Refer to Fig. 3, it is the particular flow sheet of domain name analytic method embodiment step S105 of the application. Concrete, described with described particular webpage address for retrieving foundation, between default IP address and domain name Mapping relations set is retrieved, obtains the IP address corresponding with described particular webpage address, including:
Step S1051: travel through each mapping that the mapping relations set between described IP address and domain name includes Relation, it is judged that whether the domain name of current mapping relations is the substring of described particular webpage address.
By step S103 analysis request and after getting particular webpage address, by particular webpage address and IP Each mapping relations that mapping relations set between address with domain name includes are mated one by one, in order to search To the IP address corresponding with particular webpage address.In actual applications, particular webpage address is a unified money Source location accords with, in addition to including protocol type and host name, it is also possible to include port, path, filename Or query argument.And the domain name in the mapping relations between IP address and domain name generally includes protocol type and master Machine name, and port and/or path, therefore when carrying out matching inquiry, be not simply to judge mapping relations In domain name the most identical with particular webpage address, but judge whether the domain name of mapping relations is particular webpage The substring of address.
Refer to Fig. 4, it is that the domain name analytic method embodiment of the application judges that the domain name of current mapping relations is The particular flow sheet of the no substring for described particular webpage address.Concrete, described judgement currently maps Whether the domain name of relation is the substring of described particular webpage address, including:
Step S401: each component of domain name is spliced into a character string.
Step S403: judge that whether the character string of splicing is the substring of described particular webpage address.
In the present embodiment, the mapping relations between IP address and domain name are stored in configuration file.Configuration literary composition The mapping relations between each IP address and domain name in part are read and stored in internal memory in advance, and by it The various components of middle domain name independently store, and refer to above-mentioned table one.For the ease of in step S105 The various components of domain name, before actual match, are spliced by coupling retrieval by step S401, from And it is overall to obtain the domain name corresponding with IP address, and judge that whether the character string spliced is by step S403 The substring of particular webpage address, thus realize judging whether the domain name of current mapping relations is described specific The function of the substring of web page address.
Step S1052: if above-mentioned judged result is yes, then using the IP address of described current mapping relations as The IP address corresponding with described particular webpage address.
Step S1053: if above-mentioned judged result is no, then return described traversal described IP address and domain name it Between the step of each mapping relations that includes of mapping relations set, it is judged that whether the domain name of next mapping relations For the substring of described particular webpage address, until the mapping traveled through between described IP address and domain name is closed All mapping relations in assembly conjunction.
By the judgement step in step S1051, if the sub-word that character string is particular webpage address of splicing Symbol string, then judge the domain name substring as particular webpage address of current mapping relations, corresponding step S1052, And traversing operation terminates;Otherwise, it is determined that the domain name of current mapping relations is not the sub-word of particular webpage address Symbol string, corresponding step S1053.If the domain name of current mapping relations is not the substring of particular webpage address, What then the mapping relations set returned between described traversal described IP address and domain name was included by step S1053 is each The step of individual mapping relations, it may be assumed that step S1051, continues to judge whether the domain name of next mapping relations is described The substring of particular webpage address, until the mapping relations set traveled through between described IP address and domain name In all mapping relations.
Additionally, in the present embodiment, also include after step S105: to described client loopback obtain with The IP address that described particular webpage address is corresponding.
Corresponding with step S101, when completing domain name solution by step S101, step S103 and step S105 After analysis processes, the result translated domain names into is passed back to the client of sending domain name analysis request.If found The IP address corresponding with particular webpage address, then the result returned is the IP address obtained, and client will be to this IP address is initiated socket and is connected.Without finding the IP address corresponding with particular webpage address, then return The result returned is empty, and these mapping relations undefined in the mapping relations set between IP address and domain name are described, Then client will obtain real ip address by DNS name resolution server, and this IP address is initiated set Connect word to connect.
In the above-described embodiment, it is provided that a kind of domain name analytic method, corresponding, the application is also A kind of domain name mapping device is provided.This device is corresponding with the embodiment of said method.
Refer to Fig. 5, it is the schematic diagram of domain name mapping device embodiment of the application.Due to device embodiment Being substantially similar to embodiment of the method, so describing fairly simple, relevant part sees the portion of embodiment of the method Defend oneself bright.Device embodiment described below is only schematically.
A kind of domain name mapping device of the present embodiment, including:
Receive unit 101, for receiving the domain name mapping request of the corresponding particular webpage address that client sends;
Resolution unit 103, is used for resolving domain name analysis request, obtains described particular webpage address;
Retrieval unit 105, for described particular webpage address for retrieval foundation, default IP address with Mapping relations set between domain name is retrieved, obtains the IP ground corresponding with described particular webpage address Location.
Refer to Fig. 6, it is the concrete schematic diagram of domain name mapping device embodiment retrieval unit 105 of the application. Optionally, described retrieval unit 105 includes:
Ergodic judgement subelement 1051, for traveling through the mapping relations set bag between described IP address and domain name Each mapping relations included, it is judged that whether the domain name of current mapping relations is the sub-word of described particular webpage address Symbol string;
Subelement 1053 is set, if being yes for above-mentioned judged result, then by the IP of described current mapping relations Address is as the IP address corresponding with described particular webpage address;
Returning subelement 1055, if being no for above-mentioned judged result, then returning to described traversal described IP address And the step of each mapping relations that the mapping relations set between domain name includes, it is judged that next mapping relations Whether domain name is the substring of described particular webpage address, until having traveled through between described IP address and domain name Mapping relations set in all mapping relations.
Optionally, in described current mapping relations, each component of domain name independently stores, described territory The component of name includes protocol name and Hostname, and serve port address and webpage path are at least One;Described Ergodic judgement subelement 1051 includes:
Judgment sub-unit, for judging that whether the domain name of current mapping relations is the son of described particular webpage address Character string;
Described judgment sub-unit includes:
Splicing subelement, for being spliced into a character string by each component of domain name;
First judgment sub-unit, for judging that whether the character string of splicing is the sub-word of described particular webpage address Symbol string.
Refer to Fig. 7, it is the concrete schematic diagram of domain name mapping device embodiment of the application.Optionally, also Including:
Loopback cell 209, corresponding with described particular webpage address for obtain to described client loopback IP address.
Optionally, also include:
Acquiring unit 201, for obtaining the mapping relations set between described IP address and domain name.
Optionally, also include:
Start unit 202, for starting default domain name mapping device;Described default domain name mapping device, Refer to a kind of domain name mapping request for receiving the corresponding particular webpage address that client sends, and to specific Web page address carries out the device of IP address resolution.
Optionally, also include:
Dispensing unit 203, for configuring the domain name that described client is sent by described default domain name mapping device Particular webpage address corresponding to analysis request carries out IP address resolution.
Optionally, also include:
Unit 204 is set, for arranging the mapping relations set between described IP address and domain name.
Additionally, the embodiment of the present application additionally provides a kind of electronic equipment, as shown in Figure 8, this electronic equipment bag Include: display 801;Processor 802;And memorizer 803, it is used for storing domain name mapping device, described When domain name mapping device is performed by described processor 802, comprise the steps: to receive the right of client transmission The domain name mapping answering particular webpage address is asked;Resolve domain name analysis request, obtain described particular webpage Address;With described particular webpage address for retrieval foundation, the mapping between default IP address and domain name is closed Assembly is retrieved in closing, and obtains the IP address corresponding with described particular webpage address.
A kind of electronic equipment described in the embodiment of the present application is as a networked devices, including providing domain name mapping The computer system of service or the other type of network terminal.Wherein, it is provided that the computer system of domain name resolution service, Including the terminal unit such as PC, PAD, iPad, and mobile communication equipment, it may be assumed that usually said Mobile phone or smart mobile phone.The other type of network terminal includes the network terminal such as gateway or router.
Corresponding with above-mentioned domain name analytic method, the application also provides for a kind of method of Connection Service device.Please With reference to Fig. 9, the flow chart of the embodiment of the method for its a kind of Connection Service device provided for the application.The present embodiment The part identical with first embodiment content repeats no more, and refers to the appropriate section in embodiment one.This Shen The method of a kind of Connection Service device that please provide includes:
Step S901: send the domain name mapping request of corresponding particular webpage address to default domain name mapping device, Request domain name resolver carries out IP address resolution to described particular webpage address.
When the content of client user's particular webpage to be opened address, it is necessary first at client browser Address field input particular webpage address, then sends corresponding particular webpage address to default domain name mapping device Domain name mapping request.
Domain name mapping device described in the embodiment of the present application, is responsible for according to domain name mapping request particular webpage ground Location carries out IP address resolution.Concrete, described default domain name mapping device, refer to what a kind of basis was preset Mapping relations between IP address and domain name, carry out the device of IP address resolution to particular webpage address;Described The domain name in mapping relations between IP address and domain name includes protocol name and Hostname, and service end Port address and at least one in webpage path.Therefore, the Connection Service device that the embodiment of the present application to be performed provides Method, first have to start domain name mapping device, when domain name mapping device start after, wait client is sent out The domain name mapping request sent.Domain name mapping device, both may operate in the client of sending domain name analysis request On, it is also possible to operate in the terminal unit of other networking, including the computer system providing domain name resolution service Or the other type of network terminal, such as: the network terminal such as gateway or router.
Step S903: receive the response of described default domain name mapping device loopback.
After domain name mapping device completes domain name mapping process, the result translated domain names into is passed back to send domain name The client of analysis request.The response of the domain name mapping device loopback described in the embodiment of the present application, including two kinds Result: 1) if domain name mapping device finds the IP address corresponding with particular webpage address, then return should Answering result is the IP address obtained, and this IP address will be initiated socket and be connected by client;2) if domain name Resolver does not find the IP address corresponding with particular webpage address, then the response result returned is sky, Illustrate that then client will be taken by DNS name resolution by these mapping relations undefined in domain name mapping device Business device obtains real ip address, initiates socket to the IP address that DNS name resolution server returns the most again Word connects.
Step S905: according to the response of described default domain name mapping device loopback, it is judged that described default territory Whether name analysis device gets the IP address corresponding with described particular webpage address.
Step S907: if above-mentioned judged result is yes, then corresponding to described and described particular webpage address IP address is initiated socket and is connected.
By step S905, it is judged that it is relative with particular webpage address whether default domain name mapping device gets The IP address answered, if domain name mapping device finds the IP address that particular webpage address is corresponding, then returns Result is the IP address obtained, and this IP address will be initiated socket and be connected by client.
Refer to Figure 10, the idiographic flow of the embodiment of the method for its a kind of Connection Service device provided for the application Figure.Concrete, also include:
Step S1001: if above-mentioned judged result is no, then send to default DNS name resolution server Domain name analysis request, asks described default DNS name resolution server to described particular webpage address Carry out IP address resolution.
By step S905, it is judged that it is relative with particular webpage address whether default domain name mapping device gets The IP address answered, the IP address corresponding without finding particular webpage address, then the result returned is sky, These mapping relations undefined are described, then client will obtain real ip address by DNS name resolution server, Initiate socket to the IP address that DNS name resolution server returns the most again to connect.
Step S1003: receive the response of described default DNS name resolution server loopback.
Step S1005: according to the response of described default DNS name resolution server loopback, it is judged that described Whether the DNS name resolution server preset gets the IP address corresponding with described particular webpage address.
Step S1007: if above-mentioned judged result is yes, then corresponding to described and described particular webpage address IP address is initiated socket and is connected.
Step S1003, step S1005 and step S1007 and above-mentioned steps S903, step S905 and step S907 one_to_one corresponding, the difference is that only that the device of loopback domain name mapping result is DNS name resolution service Device, something in common repeats no more.
The method of the Connection Service device that the application to be implemented provides, needs to be beforehand with some preparations.Please join Examine Figure 11, the idiographic flow of the embodiment of the method preparatory stage of its a kind of Connection Service device provided for the application Figure.Concrete, in the described domain name mapping sending corresponding particular webpage address to default domain name mapping device Before request, also include:
Step S1101: start described default domain name mapping device.
The method of the Connection Service device that the embodiment of the present application provides, relies on the domain name mapping device preset and processes visitor The domain name mapping request of family end.Therefore, the method that the embodiment of the present application to be performed provides, first have to start in advance If domain name mapping device, after default domain name mapping device starts, the domain name that client sends will be waited Analysis request.Domain name mapping device described in the embodiment of the present application, both having may operate in sending domain name analysis please In the client asked, it is also possible to operate in the terminal unit of other networking, including providing domain name resolution service Computer system or the other type of network terminal, such as: the network terminal such as gateway or router.
In actual applications, both so that analysis result is directly returned to client by domain name mapping device, Directly initiated socket to the IP address obtained by client to connect;Device can also be translated domain names into as generation One ingredient of reason server (Proxy Server) so that domain name mapping device can directly will resolve Result returns to proxy server, proxy server initiate socket to the IP address obtained and connect.Above-mentioned Various different echo plex modes are all the change of detailed description of the invention, all without departing from the core of the application, because of This is all within the protection domain of the application.
In the present embodiment, using described default domain name mapping device as a composition portion of proxy server Point, wherein domain name mapping device is responsible for receiving the domain name solution of the corresponding particular webpage address that client sends specially Analysis request, and particular webpage address is carried out IP address resolution, and proxy server is getting domain name mapping Behind the IP address that device returns, initiate socket to the IP address got and connect.Therefore, at the present embodiment In, the operation starting the domain name mapping device preset also is the operation starting proxy server.
If it should be noted that translating domain names into a device ingredient as proxy server, then The connection request sent for client, the processing procedure of proxy server end comprises the steps: 1) agency Server receives the original connection request of the corresponding particular network address that client sends;2) proxy server This request is changed into domain name mapping request, and this domain name mapping request is sent to domain name mapping device;3) Domain name mapping device responds this domain name mapping request, obtains the IP address that particular webpage address is corresponding, and will solve Analysis result returns to proxy server;4) socket connection initiated by proxy server to the IP address obtained;5) The content of the particular webpage address received is returned to client browser by proxy server.
For making the domain name mapping device preset be able to receive that the domain name mapping request that client sends, described Send the domain name mapping request of corresponding particular webpage address to default domain name mapping device before, also include:
Step S1103: configuring domain name mapping that described client sends by described default domain name mapping device please The particular webpage address asking corresponding carries out IP address resolution.
The domain name mapping device preset described in the embodiment of the present application and the domain name mapping side of above-mentioned first embodiment Domain name mapping device in method has identical operation principle and effect, the startup method of the two and collocation method All consistent, something in common refers to the domain name mapping device part in the domain name analytic method of first embodiment, this Place repeats no more.
In the present embodiment, using described default domain name mapping device as a composition portion of proxy server Point, therefore, the domain name mapping device that configuration is preset is responsible for resolving the operation of IP address, namely configures appointment The operation of proxy server.Concrete, include territory by arranging in the tools menu of client browser The proxy server of name analysis device.
In the above-described embodiment, it is provided that a kind of method of Connection Service device, corresponding, this Shen Please also provide for the device of a kind of Connection Service device.This device is corresponding with the embodiment of said method.
Refer to Figure 12, it is the schematic diagram of device embodiment of Connection Service device of the application.Due to device Embodiment is substantially similar to embodiment of the method, so describing fairly simple, relevant part sees method and implements The part of example illustrates.Device embodiment described below is only schematically.
A kind of device of the Connection Service device of the present embodiment, including:
First transmitting element 1201, for sending corresponding particular webpage address to default domain name mapping device Domain name mapping is asked, and request domain name resolver carries out IP address resolution to described particular webpage address;
First receives unit 1203, for receiving the response of described default domain name mapping device loopback;
First judging unit 1205, for the response according to described default domain name mapping device loopback, it is judged that Whether described default domain name mapping device gets the IP address corresponding with described particular webpage address;
First connects unit 1207, if being yes for above-mentioned judged result, then to described and described particular webpage The IP address initiation socket connection that address is corresponding.
Refer to Figure 13, it is a kind of concrete schematic diagram of device embodiment of Connection Service device of the application. Optionally, also include:
Second transmitting element 1301, if being no for above-mentioned judged result, then to default DNS name resolution Server sends domain name analysis request, asks described default DNS name resolution server to described spy Determine web page address and carry out IP address resolution;
Second receives unit 1303, for receiving the response of described default DNS name resolution server loopback;
Second judging unit 1305, for the response according to described default DNS name resolution server loopback, Judge whether described default DNS name resolution server gets corresponding with described particular webpage address IP address;
Second connects unit 1307, if being yes for above-mentioned judged result, then to described and described particular webpage The IP address initiation socket connection that address is corresponding.
Refer to Figure 14, it is the another concrete schematic diagram of device embodiment of Connection Service device of the application. Optionally, also include:
Start unit 1401, for starting described default domain name mapping device;Described default domain name mapping Device, refers to a kind of domain name mapping request for receiving the corresponding particular webpage address that client sends, and Particular webpage address is carried out the device of IP address resolution.
Optionally, also include:
Dispensing unit 1403, for configuring the territory that described client is sent by described default domain name mapping device Particular webpage address corresponding to name analysis request carries out IP address resolution.
Additionally, the embodiment of the present application additionally provides another electronic equipment, as shown in figure 15, this electronic equipment Including: display 1501;Processor 1502;And memorizer 1503, it is used for storing browser, described clear When device of looking at is performed by described processor 1502, it is right to comprise the steps: to default domain name mapping device transmission The domain name mapping answering particular webpage address is asked, and request domain name resolver is to described particular webpage address Carry out IP address resolution;Receive the response of described default domain name mapping device loopback;According to described default The response of domain name mapping device loopback, it is judged that whether described default domain name mapping device gets and described spy Determine the IP address that web page address is corresponding;If above-mentioned judged result is yes, then to described and described particular webpage The IP address initiation socket connection that address is corresponding.
Described in the embodiment of the present application preset domain name mapping device, refer to a kind of basis preset IP address with Mapping relations between domain name, carry out the device of IP address resolution to particular webpage address;Described IP address with The domain name in mapping relations between domain name includes protocol name and Hostname, and serve port address and At least one in webpage path.
Electronic equipment described in the embodiment of the present application includes but not limited to mobile communication equipment, it may be assumed that usually said Mobile phone or smart mobile phone, also include the terminal unit such as PC, PAD, iPad.It is positioned at this electronics The user of equipment can be by inputting particular webpage address in the address field of browser, to default domain name solution Analysis apparatus sends the domain name mapping request of corresponding particular webpage address.Additionally, the user of this electronic equipment also may be used To be asked by operation sending domain name analysis the most as follows: start--> and run--> input Cmd--> ping domain name--> carriage return checks result, display result is similar to Reply from 220.181.31.183: Bytes=32time=79ms TTL=53, middle 220.181.31.183 is exactly the IP address of domain name.
Additionally, the embodiment of the present application additionally provides a kind of domain name analysis system, as shown in figure 16, this system bag Include the device 1602 of the domain name mapping device 1601 described in above-described embodiment and Connection Service device.Described domain name Resolver is usually deployed in proxy server, but is not limited to proxy server, it is also possible to be can be real Any equipment of existing domain name analytic method, including the computer system or other class that provide domain name resolution service The network terminal of type, such as: the network terminal such as gateway or router;The device of described Connection Service device is usual It is deployed in the terminal units such as mobile communication equipment, PC, PAD, iPad.Such as, Connection Service device Device be deployed on smart mobile phone, it is possible to send the domain name mapping request of corresponding particular webpage address;Described Domain name mapping device is deployed on proxy server, by receiving the corresponding spy that the device of Connection Service device sends Determine the domain name mapping request of web page address, and with particular webpage address for retrieving foundation, in default IP address And the mapping relations set between domain name is retrieved, thus obtains the IP corresponding with particular webpage address Address.
Corresponding with above-mentioned domain name analytic method, the application also provides for a kind of network agent method.Refer to Figure 17, the flow chart of its a kind of network agent embodiment of the method provided for the application.The present embodiment and first The part that embodiment content is identical repeats no more, and refers to the appropriate section in embodiment one.The application provides A kind of network agent method include:
Step S1701: receive the connection request of the corresponding particular webpage address that client sends.
The domain name mapping of client described in the embodiment of the present application and particular webpage address and above-mentioned first embodiment Client and particular webpage address in method are same concept, illustrate the domain name referring to first embodiment Relevant portion in analytic method, here is omitted.It should be noted that described in the embodiment of the present application Client, is a client acted on behalf of by network agent device, and the connection request that client sends will be by It is forwarded in connected network agent device, network agent device is responsible for place, particular webpage address Server initiate socket request.
Agency, also referred to as network agent, is a kind of special network service, it is allowed to a network terminal is (general For client) carry out non-immediate company by this service with another network terminal (generally server) Connect.The computer system or the other type of network terminal that there is provided agency service are referred to as proxy server.
Proxy server is a kind of important server security function, and its work is mainly at Open System Interconnection (OSI) session layer of model, thus play the effect of fire wall.Proxy server is used to connect mostly INTERNET (Internet) and Local Area Network (LAN).
One complete proxy requests process is: first client creates with proxy server and be connected, then root The agency agreement used according to proxy server, asks to create destination server connect or obtain target The appointment resource (such as: file) of server.In the later case, proxy server may be to destination service The resource downloading of device to local cache, if client resource to be obtained proxy server caching it In, then proxy server can't send request to destination server, but the resource of direct return cache. Some agency agreements allow proxy server to change the raw requests of client, the original response of destination server, To meet the needs of agency agreement.The option of proxy server and being arranged in computer program, generally includes One " fire wall ", it is allowed to user inputs agent address, it can hide their network activity, can allow around Cross the Internet filtration and realize network access.
The network agent method that the application to be implemented provides, needs to be beforehand with some preparations.Refer to figure 18, the particular flow sheet of its a kind of network agent embodiment of the method preparatory stage provided for the application.Specifically , before the connection request of the corresponding particular webpage address that described reception client sends, also include:
Step S1801: start the network agent device performing described network agent method.
Network agent device described in the embodiment of the present application, refers to a kind of for receiving the correspondence that client sends The connection request of particular webpage address, and the server initiation socket corresponding to described particular webpage address is even The device connect.
The network agent method that the embodiment of the present application provides, is to rely on the network agent device preset to perform. Therefore, the method that the embodiment of the present application to be performed provides, first have to start the described network agent method of execution Network agent device, after the network agent device performing described network agent method starts, will wait client The connection request that end sends.Network agent device described in the embodiment of the present application, both may operate in transmission even Connect in the client of request, it is also possible to operate in the terminal unit of other networking, including providing agency service Computer system or the other type of network terminal, such as: the network terminal such as gateway or router.In this reality Executing in example, network agent plant running is in described client.
For making the network agent device preset be able to receive that the connection request that client sends, in described reception Before the connection request of the corresponding particular webpage address that client sends, also include:
Step S1803: configure described network agent device and act on behalf of the connection request that described client sends.
The network agent device that configuration is preset is responsible for the operation of the connection request that agent client sends, namely The operation of the proxy server that configuration is specified.Concrete, by setting in the tools menu of client browser Put proxy server.
The network agent method that the embodiment of the present application provides, is built upon between IP address and the domain name preset In mapping relations collection basis.Therefore, at the described network agent starting the described network agent method of execution Before device, also include:
Step S1800: the mapping relations set between described IP address and domain name is set.
The mapping relations between IP address and domain name described in the embodiment of the present application, can in wherein said domain name To include protocol name and Hostname, and serve port address and at least one in webpage path.Therefore, The network agent method that the embodiment of the present application provides, it is possible to different port or path under same domain name are set and divide Do not have access to the machine specified, thus reach to improve the effect of Consumer's Experience.
Step S1800 of the embodiment of the present application and the step in the domain name analytic method of above-mentioned first embodiment S200 is identical, illustrates the relevant portion in the domain name analytic method referring to first embodiment, the most no longer Repeat.
Step S1703: with the described particular webpage address in described connection request for retrieval foundation, default Mapping relations set between IP address and domain name is retrieved, obtains relative with described particular webpage address The IP address answered.
The network agent method that the embodiment of the present application provides, is receiving the corresponding particular webpage that client sends After the connection request of address, it is necessary first to particular webpage address is carried out IP address resolution process.The application is real Execute step S1703 described in example identical with step S105 in the domain name analytic method of above-mentioned first embodiment, Illustrating the relevant portion in the domain name analytic method referring to first embodiment, here is omitted.Following The specific embodiment of step S1703 described is only schematically.
In the present embodiment, described with described particular webpage address for retrieval foundation, default IP address with Mapping relations set between domain name is retrieved, obtains the IP ground corresponding with described particular webpage address Location, including: 1) travel through each mapping relations that the mapping relations set between described IP address and domain name includes, Judge that whether the domain name of current mapping relations is the substring of described particular webpage address;2) if above-mentioned judgement Result is yes, then using the IP address of described current mapping relations as corresponding with described particular webpage address IP address;3) if above-mentioned judged result is no, then return between described traversal described IP address and domain name The step of each mapping relations that mapping relations set includes, it is judged that whether the domain name of next mapping relations is institute State the substring of particular webpage address, until the mapping relations collection traveled through between described IP address and domain name All mapping relations in conjunction.
In the present embodiment, described with described particular webpage address for retrieving foundation, in default IP address And the mapping relations set between domain name is retrieved, obtains the IP corresponding with described particular webpage address Before address, also include: obtain the mapping relations set between described IP address and domain name.
In the present embodiment, the mapping relations set between described IP address and domain name is stored in mapping relations and joins Put in file.
Step S1705: judge whether to get the IP address corresponding with described particular webpage address.
Step S1707: if above-mentioned judged result is yes, then corresponding to described and described particular webpage address IP address is initiated socket and is connected.
After completing domain name mapping process by step S1703, step S1705 is by the result according to domain name mapping Judge whether to get the IP address corresponding with particular webpage address.By step S1705, it is judged that preset Domain name mapping device whether get the IP address corresponding with particular webpage address, if finding specific The IP address that web page address is corresponding, then the result resolved is the IP address obtained, by step S1707 by right This IP address is initiated socket and is connected.
Refer to Figure 19, the particular flow sheet of its a kind of network agent embodiment of the method provided for the application. Concrete, also include:
Step S1901: if above-mentioned judged result is no, then send to default DNS name resolution server The domain name mapping request of corresponding described particular webpage address, asks described default DNS name resolution server Described particular webpage address is carried out IP address resolution.
By step S1903, it is judged that it is relative with particular webpage address whether default domain name mapping device gets The IP address answered, the IP address corresponding without finding particular webpage address, then the result resolved is sky, These mapping relations undefined in mapping relations set between IP address and the domain name preset are described, then will pass through DNS name resolution server obtains real ip address, returns to DNS name resolution server the most again IP address is initiated socket and is connected.
Step S1903: receive the response of described default DNS name resolution server loopback.
Step S1905: according to the response of described default DNS name resolution server loopback, it is judged that described Whether the DNS name resolution server preset gets the IP address corresponding with described particular webpage address.
Step S1907: if above-mentioned judged result is yes, then corresponding to described and described particular webpage address IP address is initiated socket and is connected.
Step S1903, step S1905 and step S1907 and above-mentioned steps S1703, step S1705 and step Rapid S1707 one_to_one corresponding, the difference is that only that the device of loopback domain name mapping result is DNS name resolution Server, something in common repeats no more.
In the above-described embodiment, it is provided that a kind of network agent method, corresponding, the application is also A kind of network agent device is provided.This device is corresponding with the embodiment of said method.
Refer to Figure 20, it is the schematic diagram of network agent device embodiment of the application.Owing to device is implemented Example is substantially similar to embodiment of the method, so describing fairly simple, relevant part sees embodiment of the method Part illustrates.Device embodiment described below is only schematically.
A kind of network agent device of the present embodiment, including:
Receive request unit 2001, for receiving the connection request of the corresponding particular webpage address that client sends;
First domain name mapping unit 2003, for the described particular webpage address in described connection request for inspection Rope foundation, retrieves in the mapping relations set between default IP address and domain name, obtains with described The IP address that particular webpage address is corresponding;
First judging unit 2005, for judging whether to get the IP corresponding with described particular webpage address Address;
First connects unit 2007, if being yes for above-mentioned judged result, then to described and described particular webpage The IP address initiation socket connection that address is corresponding.
Refer to Figure 21, it is a kind of concrete schematic diagram of network agent device embodiment of the application.Optional , also include:
Transmitting element 2101, if being no for above-mentioned judged result, then to default DNS name resolution service Device sends the domain name mapping request of corresponding described particular webpage address, asks described default DNS name resolution Server carries out IP address resolution to described particular webpage address;
Receive response unit 2103, for receiving the response of described default DNS name resolution server loopback;
Second judging unit 2105, for the response according to described default DNS name resolution server loopback, Judge whether described default DNS name resolution server gets corresponding with described particular webpage address IP address;
Second connects unit 2107, if being yes for above-mentioned judged result, then to described and described particular webpage The IP address initiation socket connection that address is corresponding.
Refer to Figure 22, it is another concrete schematic diagram of network agent device embodiment of the application.Can Choosing, also include:
Acquiring unit 2201, for obtaining the mapping relations set between described IP address and domain name.
Optionally, also include:
Start unit 2202, for starting the network agent device performing described network agent method;Described net Network agent apparatus, refers to a kind of connection request for receiving the corresponding particular webpage address that client sends, And corresponding server initiates the device that socket connects to described particular webpage address.
Optionally, also include:
Dispensing unit 2203, the connection acting on behalf of the transmission of described client for configuring described network agent device please Ask.
Optionally, also include:
Unit 2204 is set, for arranging the mapping relations set between described IP address and domain name.
Optionally, described first domain name mapping unit 2003 includes:
Judgment sub-unit, for travel through that the mapping relations set between described IP address and domain name includes each Mapping relations, it is judged that whether the domain name of current mapping relations is the substring of described particular webpage address;
Subelement is set, if being yes for above-mentioned judged result, then by the IP address of described current mapping relations As the IP address corresponding with described particular webpage address;
Returning subelement, if being no for above-mentioned judged result, then returning to described traversal described IP address and territory The step of each mapping relations that the mapping relations set between Ming includes, it is judged that the domain name of next mapping relations It is whether the substring of described particular webpage address, until having traveled through reflecting between described IP address and domain name Penetrate all mapping relations in set of relationship.
Additionally, the embodiment of the present application additionally provides another electronic equipment, as shown in figure 23, this electronic equipment Including: display 2301;Processor 2302;And memorizer 2303, it is used for storing network agent device, When described network agent device is performed by described processor 2302, comprise the steps: that receiving client sends The connection request of corresponding particular webpage address;With the described particular webpage address in described connection request for inspection Rope foundation, retrieves in the mapping relations set between default IP address and domain name, obtains with described The IP address that particular webpage address is corresponding;Judge whether to get corresponding with described particular webpage address IP address;If above-mentioned judged result is yes, then corresponding to described and described particular webpage address IP address Initiation socket connects.
A kind of electronic equipment described in the embodiment of the present application is as a networked devices, including providing network agent The computer system of service or the other type of network terminal.Wherein, it is provided that the computer system of external network proxy services, Including the terminal unit such as PC, PAD, iPad, and mobile communication equipment, it may be assumed that usually said Mobile phone or smart mobile phone.The other type of network terminal includes the network terminal such as gateway or router.
Domain name analytic method that the application provides, the method for Connection Service device, network agent method and corresponding Device, electronic equipment and system, by the territory to the corresponding particular webpage address that the client received sends Name analysis request resolves, and obtains particular webpage address, and with particular webpage address for retrieving foundation, Mapping relations set between IP address and the web page address preset is retrieved, obtains and particular webpage ground The IP address that location is corresponding so that when client browser opens web page files, it is possible to same domain name is set Lower different port or path have access to the machine specified respectively, thus reach to improve the effect of Consumer's Experience.
Although the application is open as above with preferred embodiment, but it is not for limiting the application, Ren Heben Skilled person, without departing from spirit and scope, can make possible variation and amendment, Therefore the protection domain of the application should be defined in the range of standard with the application claim.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/output Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM). Internal memory is the example of computer-readable medium.
1, computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by Any method or technology realize information storage.Information can be computer-readable instruction, data structure, journey The module of sequence or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its The random access memory (RAM) of his type, read only memory (ROM), electrically erasable is read-only deposits Reservoir (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic magnetic Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be set by calculating The standby information accessed.According to defining herein, computer-readable medium does not include non-temporary computer-readable matchmaker Body (transitory media), such as data signal and the carrier wave of modulation.
2, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer Program product.Therefore, the application can use complete hardware embodiment, complete software implementation or combine software Form with the embodiment of hardware aspect.And, the application can use and wherein include meter one or more The computer-usable storage medium of calculation machine usable program code (include but not limited to disk memory, CD-ROM, optical memory etc.) form of the upper computer program implemented.

Claims (53)

1. a domain name analytic method, it is characterised in that including:
Receive the domain name mapping request of the corresponding particular webpage address that client sends;
Resolve domain name analysis request, obtain described particular webpage address;
With described particular webpage address for retrieval foundation, the mapping relations between default IP address and domain name Set is retrieved, obtains the IP address corresponding with described particular webpage address.
Domain name analytic method the most according to claim 1, it is characterised in that domain name includes agreement Title and Hostname, and serve port address and at least one in webpage path.
Domain name analytic method the most according to claim 1, it is characterised in that described default IP address The mapping relations of the corresponding same domain name in multiple IP address, an IP address is included with the mapping relations between domain name The mapping relations of a corresponding domain name, or the mapping relations of the corresponding multiple domain names in multiple IP address.
Domain name analytic method the most according to claim 1, it is characterised in that described with described ad hoc networks Page address is retrieval foundation, retrieves in the mapping relations set between default IP address and domain name, Obtain the IP address corresponding with described particular webpage address, including:
Travel through each mapping relations that the mapping relations set between described IP address and domain name includes, it is judged that when Whether the domain name of front mapping relations is the substring of described particular webpage address;
If above-mentioned judged result is yes, then using the IP address of described current mapping relations as with described ad hoc networks The IP address that page address is corresponding;
If above-mentioned judged result is no, then return the mapping relations between described traversal described IP address and domain name The step of each mapping relations that set includes, it is judged that whether the domain name of next mapping relations is described ad hoc networks The substring of page address, until all in the mapping relations set traveled through between described IP address and domain name Mapping relations.
Domain name analytic method the most according to claim 4, it is characterised in that described current mapping relations Each component of middle domain name independently stores, and the component of domain name includes protocol name and master Machine title, and serve port address and at least one in webpage path;The current mapping relations of described judgement Whether domain name is the substring of described particular webpage address, including:
Each component of domain name is spliced into a character string;
Judge that whether the character string of splicing is the substring of described particular webpage address.
Domain name analytic method the most according to claim 1, it is characterised in that also include:
The IP address corresponding with described particular webpage address obtained to described client loopback.
Domain name analytic method the most according to claim 1, it is characterised in that described with described specific Web page address is retrieval foundation, retrieves in the mapping relations set between default IP address and domain name, Before obtaining the IP address corresponding with described particular webpage address, also include:
Obtain the mapping relations set between described IP address and domain name.
Domain name analytic method the most according to claim 7, it is characterised in that described acquisition described IP ground Mapping relations set between location and domain name, in the following way:
Read the configuration file of the mapping relations stored between described IP address and domain name, obtain described IP address And the mapping relations set between domain name.
9. according to the domain name analytic method described in claim 1-8 any one, it is characterised in that described Before receiving the domain name mapping request of the corresponding particular webpage address that client sends, also include:
Start the domain name mapping device preset;Described default domain name mapping device, refers to a kind of for receiving The domain name mapping request of the corresponding particular webpage address that client sends, and particular webpage address is carried out IP ground The device that location resolves.
Domain name analytic method the most according to claim 9, it is characterised in that described default domain name Resolver operates in described client.
11. domain name analytic methods according to claim 9, it is characterised in that in described reception client Before the domain name mapping request of the corresponding particular webpage address sent, also include:
Configure corresponding to the domain name mapping request that described client is sent by described default domain name mapping device Particular webpage address carries out IP address resolution.
12. domain name analytic methods according to claim 9, it is characterised in that described default domain name Resolver is the ingredient of proxy server.
13. according to the domain name analytic method described in claim 1-8 any one, it is characterised in that described IP Mapping relations set between address and domain name is stored in mapping relations configuration file.
14. 1 kinds of domain name mapping devices, it is characterised in that including:
Receive unit, for receiving the domain name mapping request of the corresponding particular webpage address that client sends;
Resolution unit, is used for resolving domain name analysis request, obtains described particular webpage address;
Retrieval unit, for described particular webpage address for retrieving foundation, in default IP address and domain name Between mapping relations set in retrieve, obtain the IP address corresponding with described particular webpage address.
15. domain name mapping devices according to claim 14, it is characterised in that described retrieval unit bag Include:
Ergodic judgement subelement, for traveling through what the mapping relations set between described IP address and domain name included Each mapping relations, it is judged that whether the domain name of current mapping relations is the substring of described particular webpage address;
Subelement is set, if being yes for above-mentioned judged result, then by the IP address of described current mapping relations As the IP address corresponding with described particular webpage address;
Returning subelement, if being no for above-mentioned judged result, then returning to described traversal described IP address and territory The step of each mapping relations that the mapping relations set between Ming includes, it is judged that the domain name of next mapping relations It is whether the substring of described particular webpage address, until having traveled through reflecting between described IP address and domain name Penetrate all mapping relations in set of relationship.
16. domain name mapping devices according to claim 15, it is characterised in that described current mapping is closed In system, each component of domain name independently stores, the component of domain name include protocol name and Hostname, and serve port address and at least one in webpage path;Described Ergodic judgement subelement bag Include:
Judgment sub-unit, for judging that whether the domain name of current mapping relations is the son of described particular webpage address Character string;
Described judgment sub-unit includes:
Splicing subelement, for being spliced into a character string by each component of domain name;
First judgment sub-unit, for judging that whether the character string of splicing is the sub-word of described particular webpage address Symbol string.
17. domain name mapping devices according to claim 14, it is characterised in that also include:
Loopback cell, for the IP corresponding with described particular webpage address obtained to described client loopback Address.
18. domain name mapping devices according to claim 14, it is characterised in that also include:
Acquiring unit, for obtaining the mapping relations set between described IP address and domain name.
19. according to the domain name mapping device described in claim 14-18 any one, it is characterised in that also wrap Include:
Start unit, for starting default domain name mapping device;Described default domain name mapping device, be Refer to a kind of domain name mapping request for receiving the corresponding particular webpage address that client sends, and to ad hoc networks Page address carries out the device of IP address resolution.
20. domain name mapping devices according to claim 19, it is characterised in that also include:
Dispensing unit, for configuring the domain name solution that described client is sent by described default domain name mapping device Particular webpage address corresponding to analysis request carries out IP address resolution.
21. according to the domain name mapping device described in claim 14-18 any one, it is characterised in that also wrap Include:
Unit is set, for arranging the mapping relations set between described IP address and domain name.
22. 1 kinds of electronic equipments, it is characterised in that including:
Display;
Processor;And
Memorizer, is used for storing domain name mapping device, when domain name resolver is performed by described processor, Comprise the steps: to receive the domain name mapping request of the corresponding particular webpage address that client sends;Resolve institute State domain name mapping request, obtain described particular webpage address;With described particular webpage address for retrieval foundation, Mapping relations set between default IP address and domain name is retrieved, obtains and described particular webpage The IP address that address is corresponding.
The method of 23. 1 kinds of Connection Service devices, it is characterised in that including:
Send the domain name mapping request of corresponding particular webpage address to default domain name mapping device, request is described Domain name mapping device carries out IP address resolution to described particular webpage address;
Receive the response of described default domain name mapping device loopback;
Response according to described default domain name mapping device loopback, it is judged that described default domain name mapping device Whether get the IP address corresponding with described particular webpage address;
If above-mentioned judged result is yes, then the IP address that described and described particular webpage address is corresponding is initiated Socket connects;
Wherein said default domain name mapping device, refers between IP address and the domain name that a kind of basis is preset Mapping relations, carry out the device of IP address resolution to particular webpage address;Between described IP address and domain name Domain name in mapping relations includes protocol name and Hostname, and serve port address and webpage path At least one.
The method of 24. Connection Service devices according to claim 23, it is characterised in that also include:
If above-mentioned judged result is no, then sends domain name to default DNS name resolution server and resolve Request, asks described default DNS name resolution server that described particular webpage address is carried out IP address solution Analysis;
Receive the response of described default DNS name resolution server loopback;
Response according to described default DNS name resolution server loopback, it is judged that described default DNS Whether domain name resolution server gets the IP address corresponding with described particular webpage address;
If above-mentioned judged result is yes, then the IP address that described and described particular webpage address is corresponding is initiated Socket connects.
The method of 25. Connection Service devices according to claim 23, it is characterised in that described in advance If domain name mapping device send corresponding particular webpage address domain name mapping request before, also include:
Start described default domain name mapping device;Described default domain name mapping device, refer to a kind of for Receive the domain name mapping request of the corresponding particular webpage address that client sends, and particular webpage address is carried out The device of IP address resolution.
The method of 26. Connection Service devices according to claim 25, it is characterised in that described default Domain name mapping plant running is in described client.
The method of 27. Connection Service devices according to claim 25, it is characterised in that described in advance If domain name mapping device send corresponding particular webpage address domain name mapping request before, also include:
Configure corresponding to the domain name mapping request that described client is sent by described default domain name mapping device Particular webpage address carries out IP address resolution.
The method of 28. Connection Service devices according to claim 25, it is characterised in that described default Domain name mapping device is the ingredient of proxy server.
The device of 29. 1 kinds of Connection Service devices, it is characterised in that including:
First transmitting element, for sending the domain name of corresponding particular webpage address to default domain name mapping device Analysis request, request domain name resolver carries out IP address resolution to described particular webpage address;
First receives unit, for receiving the response of described default domain name mapping device loopback;
First judging unit, for the response according to described default domain name mapping device loopback, it is judged that described Whether the domain name mapping device preset gets the IP address corresponding with described particular webpage address;
First connects unit, if being yes for above-mentioned judged result, then to described and described particular webpage address Corresponding IP address is initiated socket and is connected.
The device of 30. Connection Service devices according to claim 29, it is characterised in that also include:
Second transmitting element, if being no for above-mentioned judged result, then to default DNS name resolution service Device sends domain name analysis request, asks described default DNS name resolution server to described ad hoc networks Page address carries out IP address resolution;
Second receives unit, for receiving the response of described default DNS name resolution server loopback;
Second judging unit, for the response according to described default DNS name resolution server loopback, sentences Whether disconnected described default DNS name resolution server gets the IP corresponding with described particular webpage address Address;
Second connects unit, if being yes for above-mentioned judged result, then to described and described particular webpage address Corresponding IP address is initiated socket and is connected.
The device of 31. Connection Service devices according to claim 29, it is characterised in that also include:
Start unit, for starting described default domain name mapping device;Described default domain name mapping device, Refer to a kind of domain name mapping request for receiving the corresponding particular webpage address that client sends, and to specific Web page address carries out the device of IP address resolution.
The device of 32. Connection Service devices according to claim 31, it is characterised in that also include:
Dispensing unit, for configuring the domain name solution that described client is sent by described default domain name mapping device Particular webpage address corresponding to analysis request carries out IP address resolution.
33. 1 kinds of electronic equipments, it is characterised in that including:
Display;
Processor;And
Memorizer, is used for storing browser, when described browser is performed by described processor, including walking as follows Rapid: send the domain name mapping request of corresponding particular webpage address to default domain name mapping device, request is described Domain name mapping device carries out IP address resolution to described particular webpage address;Receive described default domain name mapping The response of device loopback;Response according to described default domain name mapping device loopback, it is judged that described default Whether domain name mapping device gets the IP address corresponding with described particular webpage address;If above-mentioned judgement is tied Fruit is yes, then the IP address that described and described particular webpage address is corresponding is initiated socket and connect;Wherein Described default domain name mapping device, refers to the mapping relations between IP address and the domain name that a kind of basis is preset, Particular webpage address is carried out the device of IP address resolution;In mapping relations between described IP address and domain name Domain name include protocol name and Hostname, and serve port address and at least one in webpage path.
34. 1 kinds of domain name analysis system, it is characterised in that including: any according to the claims 15-22 One described domain name mapping device;And according to the Connection Service device described in claim 30-32 any one Device.
35. 1 kinds of network agent methods, it is characterised in that including:
Receive the connection request of the corresponding particular webpage address that client sends;
With the described particular webpage address in described connection request for retrieval foundation, in default IP address and territory Mapping relations set between Ming is retrieved, obtains the IP address corresponding with described particular webpage address;
Judge whether to get the IP address corresponding with described particular webpage address;
If above-mentioned judged result is yes, then the IP address that described and described particular webpage address is corresponding is initiated Socket connects.
36. network agent methods according to claim 35, it is characterised in that also include:
If above-mentioned judged result is no, then send corresponding described specific to default DNS name resolution server The domain name mapping request of web page address, asks described default DNS name resolution server to described ad hoc networks Page address carries out IP address resolution;
Receive the response of described default DNS name resolution server loopback;
Response according to described default DNS name resolution server loopback, it is judged that described default DNS Whether domain name resolution server gets the IP address corresponding with described particular webpage address;
If above-mentioned judged result is yes, then the IP address that described and described particular webpage address is corresponding is initiated Socket connects.
37. network agent methods according to claim 35, it is characterised in that described reception client Before the connection request of the corresponding particular webpage address that end sends, also include:
Start the network agent device performing described network agent method;Described network agent device, refers to one Plant the connection request for receiving the corresponding particular webpage address that client sends, and to described particular webpage ground The device of the server initiation socket connection that location is corresponding.
38. according to the network agent method described in claim 37, it is characterised in that described network agent fills Put and operate in described client.
39. according to the network agent method described in claim 37, it is characterised in that described reception client Before the connection request of the corresponding particular webpage address that end sends, also include:
Configure described network agent device and act on behalf of the connection request that described client sends.
40. according to the network agent method described in claim 37, it is characterised in that described network agent fills Put employing proxy server.
41. according to the network agent method described in claim 37, it is characterised in that perform described startup Before the network agent device of described network agent method, also include:
Mapping relations set between described IP address and domain name is set.
42. network agent methods according to claim 35, it is characterised in that domain name includes association View title and Hostname, and serve port address and at least one in webpage path.
43. network agent methods according to claim 35, it is characterised in that described with described specific Web page address is retrieval foundation, retrieves in the mapping relations set between default IP address and domain name, Obtain the IP address corresponding with described particular webpage address, including:
Travel through each mapping relations that the mapping relations set between described IP address and domain name includes, it is judged that when Whether the domain name of front mapping relations is the substring of described particular webpage address;
If above-mentioned judged result is yes, then using the IP address of described current mapping relations as with described ad hoc networks The IP address that page address is corresponding;
If above-mentioned judged result is no, then return the mapping relations between described traversal described IP address and domain name The step of each mapping relations that set includes, it is judged that whether the domain name of next mapping relations is described ad hoc networks The substring of page address, until all in the mapping relations set traveled through between described IP address and domain name Mapping relations.
44. network agent methods according to claim 35, it is characterised in that described with described spy Determining web page address is retrieval foundation, examines in the mapping relations set between default IP address and domain name Rope, before obtaining the IP address corresponding with described particular webpage address, also includes:
Obtain the mapping relations set between described IP address and domain name.
45. according to the network agent method described in claim 35-44 any one, it is characterised in that described Mapping relations set between IP address and domain name is stored in mapping relations configuration file.
46. 1 kinds of network agent devices, it is characterised in that including:
Receive request unit, for receiving the connection request of the corresponding particular webpage address that client sends;
First domain name mapping unit, for depending on the described particular webpage address in described connection request for retrieval According to, the mapping relations set between default IP address and domain name is retrieved, obtains specific with described The IP address that web page address is corresponding;
First judging unit, for judging whether to get the IP address corresponding with described particular webpage address;
First connects unit, if being yes for above-mentioned judged result, then to described and described particular webpage address Corresponding IP address is initiated socket and is connected.
47. network agent devices according to claim 46, it is characterised in that also include:
Transmitting element, if being no for above-mentioned judged result, then sends out to default DNS name resolution server The domain name mapping sending corresponding described particular webpage address is asked, and asks described default DNS name resolution service Device carries out IP address resolution to described particular webpage address;
Receive response unit, for receiving the response of described default DNS name resolution server loopback;
Second judging unit, for the response according to described default DNS name resolution server loopback, sentences Whether disconnected described default DNS name resolution server gets the IP corresponding with described particular webpage address Address;
Second connects unit, if being yes for above-mentioned judged result, then to described and described particular webpage address Corresponding IP address is initiated socket and is connected.
48. network agent devices according to claim 46, it is characterised in that also include:
Start unit, for starting the network agent device performing described network agent method;Described network generation Reason device, refers to a kind of for receiving the connection request of corresponding particular webpage address that client sends, and to The device of the server initiation socket connection that described particular webpage address is corresponding.
49. network agent devices according to claim 48, it is characterised in that also include:
Dispensing unit, acts on behalf of, for configuring described network agent device, the connection request that described client sends.
50. network agent devices according to claim 46, it is characterised in that also include:
Unit is set, for arranging the mapping relations set between described IP address and domain name.
51. network agent devices according to claim 46, it is characterised in that described first domain name solution Analysis unit includes:
Judgment sub-unit, for travel through that the mapping relations set between described IP address and domain name includes each Mapping relations, it is judged that whether the domain name of current mapping relations is the substring of described particular webpage address;
Subelement is set, if being yes for above-mentioned judged result, then by the IP address of described current mapping relations As the IP address corresponding with described particular webpage address;
Returning subelement, if being no for above-mentioned judged result, then returning to described traversal described IP address and territory The step of each mapping relations that the mapping relations set between Ming includes, it is judged that the domain name of next mapping relations It is whether the substring of described particular webpage address, until having traveled through reflecting between described IP address and domain name Penetrate all mapping relations in set of relationship.
52. network agent devices according to claim 46, it is characterised in that also include:
Acquiring unit, for obtaining the mapping relations set between described IP address and domain name.
53. 1 kinds of electronic equipments, it is characterised in that including:
Display;
Processor;And
Memorizer, is used for storing network agent device, when described network agent device is performed by described processor, Comprise the steps: to receive the connection request of the corresponding particular webpage address that client sends;With described connection Described particular webpage address in request is closed for retrieval foundation, the mapping between default IP address and domain name Assembly is retrieved in closing, and obtains the IP address corresponding with described particular webpage address;Judge whether to obtain To the IP address corresponding with described particular webpage address;If above-mentioned judged result is yes, then to described and institute State corresponding IP address, particular webpage address and initiate socket connection.
CN201510262429.2A 2015-05-21 2015-05-21 Domain name resolution method, device and system Active CN106302842B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510262429.2A CN106302842B (en) 2015-05-21 2015-05-21 Domain name resolution method, device and system
PCT/CN2016/081950 WO2016184349A1 (en) 2015-05-21 2016-05-13 Domain name parsing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510262429.2A CN106302842B (en) 2015-05-21 2015-05-21 Domain name resolution method, device and system

Publications (2)

Publication Number Publication Date
CN106302842A true CN106302842A (en) 2017-01-04
CN106302842B CN106302842B (en) 2020-02-18

Family

ID=57319414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510262429.2A Active CN106302842B (en) 2015-05-21 2015-05-21 Domain name resolution method, device and system

Country Status (2)

Country Link
CN (1) CN106302842B (en)
WO (1) WO2016184349A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222365A (en) * 2017-06-08 2017-09-29 百度在线网络技术(北京)有限公司 Data processing method, device and server
CN107872548A (en) * 2017-11-10 2018-04-03 北京知道创宇信息技术有限公司 Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN108111620A (en) * 2017-12-29 2018-06-01 优鸿网络科技有限公司 Thin cloud server
CN108696600A (en) * 2017-04-12 2018-10-23 贵州白山云科技有限公司 Domain name mapping configuration method and device
CN109150953A (en) * 2017-06-16 2019-01-04 三星电子株式会社 The device and method for controlling the connection in communication system
CN109600458A (en) * 2019-02-22 2019-04-09 北京知道创宇信息技术股份有限公司 Website access method and device
CN110798545A (en) * 2019-11-05 2020-02-14 中国人民解放军国防科技大学 Web-based domain name data acquisition method
CN111147616A (en) * 2019-12-17 2020-05-12 北京明略软件系统有限公司 Resource acquisition method and device, electronic equipment and storage medium
CN112235433A (en) * 2020-10-16 2021-01-15 北京乐学帮网络技术有限公司 Domain name access method and device
CN113422723A (en) * 2021-05-13 2021-09-21 新华三信息安全技术有限公司 Method and equipment for forwarding message
CN113507527A (en) * 2021-07-20 2021-10-15 上海万物新生环保科技集团有限公司 Code data access method and device based on gateway forwarding

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245973B (en) * 2020-01-20 2022-06-03 烽火通信科技股份有限公司 Domain name based message transmission method, message forwarding control method and system
CN114513487A (en) * 2020-10-28 2022-05-17 武汉斗鱼网络科技有限公司 Method and device for accelerating domain name resolution, electronic equipment and computer readable storage medium
CN112333299B (en) * 2021-01-04 2021-12-28 观脉科技(北京)有限公司 Domain name resolution method, configuration method and equipment
CN112887451B (en) * 2021-02-25 2022-12-02 上海哔哩哔哩科技有限公司 Domain name resolution method and device and computer equipment
CN114390027B (en) * 2022-03-24 2022-07-12 恒生电子股份有限公司 Network communication method, device, equipment and medium
CN115378905B (en) * 2022-07-22 2023-11-14 北京华顺信安科技有限公司 Domain name collection method, device, equipment and computer readable storage medium
CN115442331B (en) * 2022-08-29 2023-11-03 天翼云科技有限公司 Domain name access method, device, network equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103170A1 (en) * 2002-11-21 2004-05-27 Borzilleri James V. Extended domain name method, apparatus, and system
CN101794318A (en) * 2010-03-26 2010-08-04 成都市华为赛门铁克科技有限公司 URL (Uniform Resource Location) analyzing method and equipment
CN102855334A (en) * 2012-09-29 2013-01-02 北京奇虎科技有限公司 Browser and method for acquiring domain name system (DNS) resolving data
CN103024098A (en) * 2012-12-27 2013-04-03 北京百度网讯科技有限公司 Domain name resolution method, system and device
CN103561121A (en) * 2013-10-11 2014-02-05 北京奇虎科技有限公司 Method and device for analyzing DNS and browser
CN103581213A (en) * 2012-07-19 2014-02-12 阿里巴巴集团控股有限公司 Shared Hosts file application method, equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184846B (en) * 2014-09-10 2017-09-26 北京浩瀚深度信息技术股份有限公司 The method for sorting and device of a kind of Internet Port

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103170A1 (en) * 2002-11-21 2004-05-27 Borzilleri James V. Extended domain name method, apparatus, and system
CN101794318A (en) * 2010-03-26 2010-08-04 成都市华为赛门铁克科技有限公司 URL (Uniform Resource Location) analyzing method and equipment
CN103581213A (en) * 2012-07-19 2014-02-12 阿里巴巴集团控股有限公司 Shared Hosts file application method, equipment and system
CN102855334A (en) * 2012-09-29 2013-01-02 北京奇虎科技有限公司 Browser and method for acquiring domain name system (DNS) resolving data
CN103024098A (en) * 2012-12-27 2013-04-03 北京百度网讯科技有限公司 Domain name resolution method, system and device
CN103561121A (en) * 2013-10-11 2014-02-05 北京奇虎科技有限公司 Method and device for analyzing DNS and browser

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696600B (en) * 2017-04-12 2019-11-22 贵州白山云科技股份有限公司 Domain name mapping configuration method and device
CN108696600A (en) * 2017-04-12 2018-10-23 贵州白山云科技有限公司 Domain name mapping configuration method and device
CN107222365B (en) * 2017-06-08 2021-03-16 百度在线网络技术(北京)有限公司 Data processing method and device and server
CN107222365A (en) * 2017-06-08 2017-09-29 百度在线网络技术(北京)有限公司 Data processing method, device and server
CN109150953A (en) * 2017-06-16 2019-01-04 三星电子株式会社 The device and method for controlling the connection in communication system
CN107872548A (en) * 2017-11-10 2018-04-03 北京知道创宇信息技术有限公司 Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN108111620A (en) * 2017-12-29 2018-06-01 优鸿网络科技有限公司 Thin cloud server
CN109600458A (en) * 2019-02-22 2019-04-09 北京知道创宇信息技术股份有限公司 Website access method and device
CN109600458B (en) * 2019-02-22 2022-03-29 北京知道创宇信息技术股份有限公司 Website access method and device
CN110798545A (en) * 2019-11-05 2020-02-14 中国人民解放军国防科技大学 Web-based domain name data acquisition method
CN110798545B (en) * 2019-11-05 2020-08-18 中国人民解放军国防科技大学 Web-based domain name data acquisition method
CN111147616A (en) * 2019-12-17 2020-05-12 北京明略软件系统有限公司 Resource acquisition method and device, electronic equipment and storage medium
CN112235433A (en) * 2020-10-16 2021-01-15 北京乐学帮网络技术有限公司 Domain name access method and device
CN113422723A (en) * 2021-05-13 2021-09-21 新华三信息安全技术有限公司 Method and equipment for forwarding message
CN113507527A (en) * 2021-07-20 2021-10-15 上海万物新生环保科技集团有限公司 Code data access method and device based on gateway forwarding

Also Published As

Publication number Publication date
CN106302842B (en) 2020-02-18
WO2016184349A1 (en) 2016-11-24

Similar Documents

Publication Publication Date Title
CN106302842A (en) A kind of domain name analytic method, Apparatus and system
US11632353B2 (en) Delegating DNS records to additional providers
CN105681476B (en) A kind of method for page jump, device and system
US8285753B2 (en) Change approvals for computing systems
US20060039348A1 (en) System, device and method for data transfer
CN106797410A (en) Domain name analytic method and device
CN103891247B (en) Method and system for domain name system based discovery of devices and objects
CN108886525A (en) The method and apparatus of intelligent domain name system forwards
CN108702396A (en) For the method for data processing, equipment and computer program and hierarchical domain name system area file
CN108011995A (en) Strange land implementation method more living, strange land service platform more living and storage medium
CN106685949A (en) Container access method, container access device and container access system
CN109327559B (en) Domain name resolution method and device based on hybrid cloud platform
US20130212159A1 (en) Method, Apparatus and System for Intercepted Triggering of Execution of Internet Services
CN101136834B (en) SSL VPN based link rewriting method and apparatus
WO2017161965A1 (en) Method, device, and system for dynamic domain name system (dns) redirection
CN105653717B (en) A kind of method and device that information is shared
CN102801745A (en) Method and system for accessing local area network WEB site by using wide area network browser
CN109889625A (en) Access method, equipment and the computer readable storage medium of server
CN104253796A (en) Domain name system fast region identification method based on network address binding region levels
CN104219257A (en) Web real-time communication method, system, server and client
US8316045B1 (en) Database linking system
US20100191766A1 (en) Method and apparatus for information retrieval via electronic mail
JP2016517078A (en) Systems and methods that allow a domain name server to process natural language queries and determine context
CN104092751A (en) Service access method and device
CN106919595A (en) A kind of method, device and electronic equipment mapped for Cookie

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant