CN103973836A - Domain name preprocessing method based on client side - Google Patents

Domain name preprocessing method based on client side Download PDF

Info

Publication number
CN103973836A
CN103973836A CN201410220741.0A CN201410220741A CN103973836A CN 103973836 A CN103973836 A CN 103973836A CN 201410220741 A CN201410220741 A CN 201410220741A CN 103973836 A CN103973836 A CN 103973836A
Authority
CN
China
Prior art keywords
domain name
storage module
network request
relationship storage
client
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.)
Pending
Application number
CN201410220741.0A
Other languages
Chinese (zh)
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.)
HANGZHOU ZHIPING TECHNOLOGY Co Ltd
Original Assignee
HANGZHOU ZHIPING TECHNOLOGY Co 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 HANGZHOU ZHIPING TECHNOLOGY Co Ltd filed Critical HANGZHOU ZHIPING TECHNOLOGY Co Ltd
Priority to CN201410220741.0A priority Critical patent/CN103973836A/en
Publication of CN103973836A publication Critical patent/CN103973836A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a domain name preprocessing method based on a client side. The method involves a mobile phone. The client side of the mobile phone can have access to the internet. A network request processing frame, a domain name preprocessing module and a domain name and IP relation storage module are set in the mobile phone. When the client side of the mobile phone has access to the internet through the network request processing frame, the network request processing frame can automatically generate the domain name preprocessing module and the domain name and IP relation storage module on the client side, the domain name and IP relation storage module stores data through a hashmap and has the automatic refreshing function. Through the method, domain names can be converted into IP addresses in advance, http request efficiency is improved, and resource consumption is reduced.

Description

A kind of client-based domain name preprocess method
Technical field
The present invention relates to cell phone network technical field, especially relate to a kind of client-based domain name preprocess method.
Background technology
Along with the development of the Internet, the mobile terminals such as increasing mobile phone can be accessed the Internet whenever and wherever possible, bring great convenience and happy to people's work and life, and what allow people worries here most has been exactly network speed and flow; When the mobile terminals such as mobile phone send http request, if the address of request is domain name instead of IP address, http consultation is first converted into IP address domain name so, then carry out real request of data, so directly the efficiency of IP address requesting can be higher than request domain name, thereby reduce domain name and be converted into the resource consumption of IP address.
Summary of the invention
The present invention sends with domain name in order to solve the mobile terminals such as mobile phone that http request can lower efficiency, the problem of many consumption of natural resource, provide a kind of in http request process, in advance domain name is converted into IP address, thereby improve the efficiency of http request, reduce the client-based domain name preprocess method of resource consumption.
To achieve these goals, the present invention is by the following technical solutions: a kind of client-based domain name preprocess method, comprise mobile phone, the addressable the Internet of cell-phone customer terminal, described mobile phone is provided with network request and processes framework, domain name pretreatment module, domain name and IP relationship storage module, when described cell-phone customer terminal is processed framework access the Internet by network request, network request is processed framework and is automatically generated domain name pretreatment module, domain name and IP relationship storage module in client.When each client terminal start-up, can generate in client the internal storage space of a domain name and the pairing of IP address, be domain name and IP relationship storage module, simultaneously, by domain name pretreatment module, the bring into operation pre-parse operation of domain name of bottom, all domain names of in advance active client being used are resolved in advance, and domain name and the IP address pairing being resolved to are deposited in to domain name and IP relationship storage module, like this, in the time that cell-phone customer terminal sends http request with domain name, network request is processed framework can be by nslookup and IP relationship storage module, to inquiring domain name and the IP relation of having stored, IP available direct control, thereby improve the efficiency of http request, reduce resource consumption, its specific operation process comprises the following steps: 1) cell-phone customer terminal is processed framework with domain name or IP to network request and sent access the Internet request, 2) network request is processed framework to the access the Internet request of sending with domain name, first goes to search IP address in domain name and IP relationship storage module according to domain name, if found, goes step 5, if can not find, goes step 4, 3) network request is processed framework to the access the Internet request of sending with IP, directly goes step 5, 4) network request processing framework carries out solicit operation by domain name, by domain name pretreatment module, this domain name is carried out to pre-parse operation simultaneously, and this domain name and the IP address pairing being resolved to are deposited in to domain name and IP relationship storage module, 5) network request processing framework carries out solicit operation with IP.
As preferably, described domain name and IP relationship storage module adopt hashmap storage data.Hashmap is a kind of data structure, and Chinese Hash table by name, adopts hash algorithm.
As preferably, in described step 5, the IP obtaining according to step 2 carries out solicit operation and occurs mistake, returns to step 4.By IP Address requests data time, the IP of service end may change, the problem that can cause request to make mistakes, if IP Address requests is made mistakes, network request processing framework is asked one time by domain name automatically again, the pre-dissection process that simultaneously tries again, and be saved in domain name and IP relationship storage module.
As preferably, described domain name and IP relationship storage module are provided with automatic refresh function, according to the expired time configuring, by domain name pretreatment module, domain name is re-started to pre-parse operation, this domain name and the new IP address pairing being resolved to are deposited in to domain name and IP relationship storage module.For security consideration, the server on the Internet can usually be changed IP address, and therefore, domain name and IP relationship storage module arrange automatic refresh function, the domain name that can upgrade in time and IP relation, and that when reducing by IP Address requests data, makes mistakes may.
Therefore, the present invention has following beneficial effect: 1) in advance domain name is converted into IP address; 2) improve the efficiency that http asks; 3) reduce resource consumption.
Brief description of the drawings
Fig. 1 is a kind of principle schematic of the present invention.
Embodiment
The present invention will be further described below.
As shown in Figure 1, a kind of client-based domain name preprocess method, comprise mobile phone, the addressable the Internet of cell-phone customer terminal, mobile phone is provided with network request and processes framework, domain name pretreatment module, domain name and IP relationship storage module, when cell-phone customer terminal is processed framework access the Internet by network request, network request is processed framework and is automatically generated domain name pretreatment module, domain name and IP relationship storage module in client, domain name and IP relationship storage module adopt hashmap storage data, and domain name and IP relationship storage module are provided with automatic refresh function.
Specific implementation process is, 1) cell-phone customer terminal is processed framework with domain name or IP to network request and is sent access the Internet request; 2) network request is processed framework to the access the Internet request of sending with domain name, first goes to search IP address in domain name and IP relationship storage module according to domain name, if found, goes step 5, if can not find, goes step 4; 3) network request is processed framework to the access the Internet request of sending with IP, directly goes step 5; 4) network request processing framework carries out solicit operation by domain name, by domain name pretreatment module, this domain name is carried out to pre-parse operation simultaneously, and this domain name and the IP address pairing being resolved to are deposited in to domain name and IP relationship storage module; 5) network request processing framework carries out solicit operation with IP; Wherein, in step 5, if carrying out solicit operation, the IP obtaining according to step 2 there is mistake, returning to step 4 operates, domain name and IP relationship storage module are provided with automatic refresh function, can be according to the expired time configuring, as 30 minutes, by domain name pretreatment module, domain name is re-started to pre-parse operation, and this domain name and the new IP address pairing being resolved to are deposited in to domain name and IP relationship storage module.

Claims (5)

1. a client-based domain name preprocess method, comprise mobile phone, the addressable the Internet of cell-phone customer terminal, it is characterized in that, described mobile phone is provided with network request and processes framework, domain name pretreatment module, domain name and IP relationship storage module, when described cell-phone customer terminal is processed framework access the Internet by network request, network request is processed framework and is automatically generated domain name pretreatment module, domain name and IP relationship storage module in client.
2. the client-based domain name preprocess method of one according to claim 1, is characterized in that, comprises the following steps: 1) cell-phone customer terminal is processed framework with domain name or IP to network request and sent access the Internet request; 2) network request is processed framework to the access the Internet request of sending with domain name, first goes to search IP address in domain name and IP relationship storage module according to domain name, if found, goes step 5, if can not find, goes step 4; 3) network request is processed framework to the access the Internet request of sending with IP, directly goes step 5; 4) network request processing framework carries out solicit operation by domain name, by domain name pretreatment module, this domain name is carried out to pre-parse operation simultaneously, and this domain name and the IP address pairing being resolved to are deposited in to domain name and IP relationship storage module; 5) network request processing framework carries out solicit operation with IP.
3. the client-based domain name preprocess method of one according to claim 1, is characterized in that, described domain name and IP relationship storage module adopt hashmap storage data.
4. the client-based domain name preprocess method of one according to claim 2, is characterized in that, in described step 5, the IP obtaining according to step 2 carries out solicit operation and occurs mistake, returns to step 4.
5. the client-based domain name preprocess method of one according to claim 1 and 2, it is characterized in that, described domain name and IP relationship storage module are provided with automatic refresh function, according to the expired time configuring, by domain name pretreatment module, domain name is re-started to pre-parse operation, this domain name and the new IP address pairing being resolved to are deposited in to domain name and IP relationship storage module.
CN201410220741.0A 2014-05-23 2014-05-23 Domain name preprocessing method based on client side Pending CN103973836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410220741.0A CN103973836A (en) 2014-05-23 2014-05-23 Domain name preprocessing method based on client side

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410220741.0A CN103973836A (en) 2014-05-23 2014-05-23 Domain name preprocessing method based on client side

Publications (1)

Publication Number Publication Date
CN103973836A true CN103973836A (en) 2014-08-06

Family

ID=51242866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410220741.0A Pending CN103973836A (en) 2014-05-23 2014-05-23 Domain name preprocessing method based on client side

Country Status (1)

Country Link
CN (1) CN103973836A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516385A (en) * 2015-12-02 2016-04-20 传线网络科技(上海)有限公司 Domain name resolution method, server and system
CN106301928A (en) * 2016-08-22 2017-01-04 深圳市茁壮网络股份有限公司 A kind of web analysis, acquisition methods and device
CN108616609A (en) * 2018-03-10 2018-10-02 北京酷我科技有限公司 A kind of iOS network DNSs parsing strategy

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153455A1 (en) * 2003-01-30 2004-08-05 International Business Machines Corporation Method and apparatus for local IP address translation
CN101094129A (en) * 2006-06-20 2007-12-26 腾讯科技(深圳)有限公司 Method for accessing domain name, and client terminal
CN101835205A (en) * 2010-04-07 2010-09-15 中兴通讯股份有限公司 Wireless terminal and wireless Internet access method
CN102238238A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Method and device for accessing local network equipment
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153455A1 (en) * 2003-01-30 2004-08-05 International Business Machines Corporation Method and apparatus for local IP address translation
CN101094129A (en) * 2006-06-20 2007-12-26 腾讯科技(深圳)有限公司 Method for accessing domain name, and client terminal
CN101835205A (en) * 2010-04-07 2010-09-15 中兴通讯股份有限公司 Wireless terminal and wireless Internet access method
CN102238238A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Method and device for accessing local network equipment
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516385A (en) * 2015-12-02 2016-04-20 传线网络科技(上海)有限公司 Domain name resolution method, server and system
CN106301928A (en) * 2016-08-22 2017-01-04 深圳市茁壮网络股份有限公司 A kind of web analysis, acquisition methods and device
CN108616609A (en) * 2018-03-10 2018-10-02 北京酷我科技有限公司 A kind of iOS network DNSs parsing strategy

Similar Documents

Publication Publication Date Title
US8463915B1 (en) Method for reducing DNS resolution delay
US9386105B2 (en) Techniques for dynamic domain-based isolation
US20130326587A1 (en) Techniques for auto-authentication
CN111970315A (en) Method, device and system for pushing message
CN103327135A (en) Domain name resolution method, device and client
CN104468148A (en) Nginx server configuration maintenance method and system
CN103905572A (en) Domain name resolution request processing method and device
CN105721538A (en) Data access method and apparatus
US20170289243A1 (en) Domain name resolution method and electronic device
CN104346345A (en) Data storage method and device
US20140337536A1 (en) Method and apparatus for data communication
CN103237088A (en) Corresponding relation library-based browsing method and system and cloud server
CN112733001B (en) Method and device for acquiring subscription information and electronic equipment
CN107659473A (en) Connection control method, system, routing server and computer-readable recording medium
CN103973836A (en) Domain name preprocessing method based on client side
CN113688183A (en) Multi-type data source extraction method, system, terminal equipment and storage medium
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN111427703A (en) Industrial data real-time display method and system
CN103685485B (en) Mobile terminal VoIP (voice over internet protocol) communication audio management system
CN108170745A (en) It is a kind of to access web terminal data cached method and terminal
CN108462759B (en) Domain name resolution method and device
CN103957252B (en) The journal obtaining method and its system of cloud stocking system
CN105657077A (en) Network address translation traversal method and network address translation equipment
CN105872125A (en) Domain name resolution method and apparatus
CN103873564A (en) Method for realizing SignalR duplex communication under balanced load condition of multiple servers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140806

RJ01 Rejection of invention patent application after publication