CN107682465A - Domain name mapping device, method and computer-readable recording medium - Google Patents

Domain name mapping device, method and computer-readable recording medium Download PDF

Info

Publication number
CN107682465A
CN107682465A CN201710489764.5A CN201710489764A CN107682465A CN 107682465 A CN107682465 A CN 107682465A CN 201710489764 A CN201710489764 A CN 201710489764A CN 107682465 A CN107682465 A CN 107682465A
Authority
CN
China
Prior art keywords
domain name
address
target
network request
mapping table
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
CN201710489764.5A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710489764.5A priority Critical patent/CN107682465A/en
Priority to PCT/CN2017/105021 priority patent/WO2018233140A1/en
Publication of CN107682465A publication Critical patent/CN107682465A/en
Pending legal-status Critical Current

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/10Mapping addresses of different types
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses domain name mapping device, including:Memory, processor and the domain name mapping program that can be run on the memory and on the processor is stored in, following steps are realized when domain name analysis program is by the computing device:When detecting using the network request sent, the network request is parsed to obtain target domain name corresponding to the network request;From the domain name matched with the application with IP address mapping table, searching target ip address corresponding with the target domain name;Network request is initiated to corresponding server based on the target ip address found.The present invention also proposes a kind of domain name analytic method and a kind of computer-readable recording medium.The present invention solves the problems, such as the dns server progress domain name mapping that terminal excessively relies on distal end.

Description

Domain name mapping device, method and computer-readable recording medium
Technical field
The present invention relates to communication technical field, more particularly to a kind of domain name mapping device, method and computer-readable storage Medium.
Background technology
In computer network architecture, there is corresponding relation in domain name, with IP address by domain name system (Domain Name System, referred to as DNS) realize parsing of the domain name to IP address.
When sending network request, it is all based on HTTP and dns resolution to carry out, each server has oneself IP address, when client sends one network address of a network request access, generally require first to carry out dns resolution, dns server meeting According to the information such as client ip address and the domain name to be accessed, server ip address corresponding to return.Client obtains really IP address, then go access data, when under mobile network environment, excessively rely on the DNS service of distal end by IP address again Device carry out domain name mapping cause there arises a problem that:Not only because the parsing pressure of dns server is big network can be caused to respond Delay, causes network response speed slow;And can not evade falling the situation that public network dns server is paralysed by attack, and in public affairs In the case that net dns server is paralysed, application can not carry out normal network request.
The content of the invention
The present invention provides a kind of domain name mapping device, method and computer-readable recording medium, and its main purpose is to solve The problem of certainly excessively relying on the dns server progress domain name mapping of distal end.
To achieve the above object, the present invention provides a kind of domain name mapping device, and the device includes:Memory, processor and The domain name mapping program that can be run on the memory and on the processor is stored in, domain name analysis program is described Following steps are realized during computing device:
When detecting using the network request sent, the network request is parsed to obtain mesh corresponding to the network request Mark domain name;
From the domain name matched with the application with IP address mapping table, searching mesh corresponding with the target domain name Mark IP address;
Network request is initiated to corresponding server based on the target ip address found.
Alternatively, the processor is additionally operable to perform domain name analysis program, ought be detected using transmission described Network request when, before parsing the step of network request is to obtain target domain name corresponding to the network request, also realize Following steps:
When detecting that the application starts, acquisition domain name is sent to server based on preset interface and closed with IP address mapping It is the acquisition request of table;
Application server is received based on the domain name for obtaining request transmission and IP address mapping table and is cached to this Ground.
Alternatively, the processor is additionally operable to perform domain name analysis program, with from the domain matched with the application Name with IP address mapping table in, search target ip address corresponding with the target domain name the step of after, also realize with Lower step:
If from domain name with lookup Target IP corresponding less than with the target domain name in IP address mapping table Location, then send renewal request to the application server;
Receive domain name and IP address mapping table that the application server is returned based on the renewal request, and from connecing The domain name of receipts is with searching target ip address corresponding with the target domain name in IP address mapping table;
When finding corresponding target ip address, perform and sent out based on the target ip address found to corresponding server The step of playing network request.
Alternatively, the processor is additionally operable to perform domain name analysis program, with from the domain matched with the application Name with IP address mapping table in, search target ip address corresponding with the target domain name the step of after, also realize with Lower step:
If from domain name with finding target ip address corresponding with the target domain name in IP address mapping table, The step of then performing based on the target ip address found to corresponding server initiation network request;
If from domain name with lookup Target IP corresponding less than with the target domain name in IP address mapping table Location, then the network request is sent to dns server and parsed;
Receive dns server and parse the target ip address that the network request obtains, and based on the IP address of reception to right The server answered sends network request.
Alternatively, the processor is additionally operable to perform domain name analysis program, to realize following steps:
When receiving the target ip address that the dns server parsing network request obtains, by the Target IP of reception Location is sent to the application server with the target domain name, so that the application server is based on the target ip address received With target domain name renewal domain name and IP address mapping table.
In addition, to achieve the above object, the present invention also provides a kind of domain name analytic method, and this method includes:
When detecting using the network request sent, the network request is parsed to obtain mesh corresponding to the network request Mark domain name;
From the domain name matched with the application with IP address mapping table, searching mesh corresponding with the target domain name Mark IP address;
Network request is initiated to corresponding server based on the target ip address found.
Alternatively, it is described when detecting using the network request sent, the network request is parsed to obtain the network Corresponding to request the step of target domain name before, methods described also includes:
When detecting that the application starts, acquisition domain name is sent to server based on preset interface and closed with IP address mapping It is the acquisition request of table;
Application server is received based on the domain name for obtaining request transmission and IP address mapping table and is cached to this Ground.
Alternatively, it is described from the domain name matched with the application and IP address mapping table, search and the target Corresponding to domain name the step of target ip address after, methods described also includes:
If from domain name with lookup Target IP corresponding less than with the target domain name in IP address mapping table Location, then send renewal request to the application server;
Receive domain name and IP address mapping table that the application server is returned based on the renewal request, and from connecing The domain name of receipts is with searching target ip address corresponding with the target domain name in IP address mapping table;
When finding corresponding target ip address, perform and sent out based on the target ip address found to corresponding server The step of playing network request.
Alternatively, it is described from the domain name matched with the application and IP address mapping table, search and the target Corresponding to domain name the step of target ip address after, methods described also includes:
If from domain name with finding target ip address corresponding with the target domain name in IP address mapping table, The step of then performing based on the target ip address found to corresponding server initiation network request;
If from domain name with lookup Target IP corresponding less than with the target domain name in IP address mapping table Location, then the network request is sent to dns server and parsed;
Receive dns server and parse the target ip address that the network request obtains, and based on the IP address of reception to right The server answered sends network request.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable Domain name mapping program is stored with storage medium, domain name analysis program realizes domain name as described above when being executed by processor The step of analytic method.
Domain name mapping device, method and computer-readable recording medium proposed by the present invention, detecting using transmission During network request, directly the network request is parsed locally, gets the target domain name of network request, from being locally stored Domain name with inquiring target ip address corresponding with target domain name in IP address mapping table, based on the Target IP found Network request is directly initiated in address to server corresponding to target ip address, is no longer dependent on distal end dns server and carries out domain name Parsing, break down also not interfering with even if dns server accesses network using normal, in addition, locally carrying out domain name Parsing improve the acquisition speed of target ip address, accelerate the speed of network response.
Brief description of the drawings
Fig. 1 is the schematic diagram of domain name mapping device preferred embodiment of the present invention;
Fig. 2 is the flow chart of domain name analytic method preferred embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of domain name mapping device.It is domain name mapping device preferred embodiment of the present invention shown in reference picture 1 Schematic diagram.
In the present embodiment, domain name mapping device can be smart mobile phone, tablet personal computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3) Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound Frequency aspect 4) terminal device such as player, pocket computer.
The domain name mapping device includes memory 11, processor 12, and network interface 13.Wherein, memory 11 can be with It is high-speed RAM memory or stable memory (non-volatile memory), such as magnetic disk storage.Storage Device 11 can be the internal storage unit of the terminal, such as the hard disk or internal memory of terminal, optionally can also be independently of preceding State the storage device of processor 12.Network interface 13 can optionally include wireline interface, wave point (such as WI-FI of standard Interface).
Memory 11 can be the internal storage unit of domain name mapping device in certain embodiments, such as the domain name mapping The hard disk or internal memory of device.Memory 11 can also be the External memory equipment of domain name mapping device in further embodiments, Such as the plug-in type hard disk being equipped with domain name mapping device, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..Further, memory 11 can also both include domain name The internal storage unit of resolver also includes External memory equipment.Memory 11 can be not only used for storage and be installed on domain name solution The application software and Various types of data of analysis apparatus, such as code of domain name mapping program etc., it can be also used for temporarily storing Output or the data that will be exported.
Processor 12 can be in certain embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, for the program code or processing data stored in run memory 11, example Such as perform domain name mapping program.
Fig. 1 illustrate only the domain name mapping device with component 11-13 and domain name mapping program, it should be understood that It is, it is not required that implement all components shown, the more or less component of the implementation that can be substituted.
Alternatively, the device can also include user interface, and user interface can include display (Display), input Unit such as keyboard (Keyboard), optional user interface can also include wireline interface, the wave point of standard.Wherein, Display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED in certain embodiments (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Display is used to be shown in domain name solution The information that is handled in analysis apparatus and for showing visual user interface.
Alternatively, the device can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, sound Frequency circuit, WiFi module etc..Wherein, sensor ratio such as optical sensor, motion sensor and other sensors.Specifically, Optical sensor may include ambient light sensor and proximity transducer, wherein, if the device is mobile terminal, ambient light sensor can The brightness of display screen is adjusted according to the light and shade of ambient light, proximity transducer can be closed when mobile terminal is moved in one's ear Display screen and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; Certainly, mobile terminal can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, This is repeated no more.
In the device embodiment shown in Fig. 1, as in a kind of memory 11 of computer-readable storage medium can include behaviour Make system and domain name mapping program;Network interface 13 is mainly used in connecting application server, and carrying out data with server leads to Letter, for example, terminal is based on network interface 13 sends network request to server;Processor 12 performs the domain stored in memory 11 Following steps are realized during name analysis program:
When detecting using the network request sent, the network request is parsed to obtain mesh corresponding to the network request Mark domain name.
From the domain name matched with the application with IP address mapping table, searching mesh corresponding with the target domain name Mark IP address.
Network request is initiated to corresponding server based on the target ip address found.
Above-mentioned application is installed and run in device in the present embodiment, each application have pre-configured domain name and IP address mapping table, developer is in development and application, the domain name that sets the application to be able to access that at application server end And IP address corresponding to each domain name.The mapping relations established between domain name and IP address, it can deposit in the form of a list Domain name and corresponding IP address are stored up, establishes domain name and IP address mapping table, and be sent to client.
For terminal, the acquisition modes on domain name and IP address mapping table can have various ways, below Two of which is enumerated to illustrate.
Mode one, when detecting that the application starts, sent based on preset interface to server and obtain domain name with IP The acquisition request of location mapping table;Application server is received to close with IP address mapping based on the domain name for obtaining request transmission It is table and caches to local.
Apply when starting each time, ask newest domain name with IP address mapping table to this at application server The mapping table of ground storage is updated storage, for the use when application carries out network request.In other embodiments, in order to protect The security of information is demonstrate,proved, the mapping table being locally stored can be deleted when detecting using closing, when application starts every time, weight The mapping table of newest domain name and IP address is newly asked to application server.
Mode two, the processor 12 are additionally operable to perform the domain name mapping program that stores in memory 11, with from institute The step of stating using the domain name of matching with IP address mapping table, searching target ip address corresponding with the target domain name Afterwards, following steps are also realized:
If from domain name with lookup Target IP corresponding less than with the target domain name in IP address mapping table Location, then send renewal request to the application server;
Receive domain name and IP address mapping table that the application server is returned based on the renewal request, and from connecing The domain name of receipts is with searching target ip address corresponding with the target domain name in IP address mapping table;
When finding corresponding target ip address, perform and sent out based on the target ip address found to corresponding server The step of playing network request.
According to which, terminal starts without application every time all asks domain name to be closed with IP address mapping to application server It is table.It is preferential using the domain name being locally stored and IP address mapping table in the interior progress network request of application, when appearing in The domain name being locally stored is with inquiring about Target IP corresponding less than with the target domain name in network request in IP address mapping table During address, renewal request is sent to application server, to obtain newest domain name and IP address mapping table, and is re-started The inquiry of target ip address, when finding corresponding target ip address, network is initiated to server corresponding to target ip address Request.Further, can also be used by newest mapping table renewal storage to locally for follow-up.
The present embodiment is illustrated by taking a specific application scenarios as an example below.With the hand with Android system Exemplified by machine, certain APP is based on http protocol (HyperText Transfer Protocol, HTTP) on the mobile phone Communicated with the server of the APP, the APP initiates primary network request, and processor 12 obtains the URL of the network request (Uniform Resoure Locator, uniform resource locator) object, include in the URL protocol information, network address, And resource path, wherein, network address is generally domain name, and resource path is generally used for which instruction obtains from application server One resource.Processor 12 calls domain name mapping program to parse the network request, obtains target domain name, then calls and deposits The domain name stored on reservoir 11 and IP address mapping table, the IP address that there are mapping relations with target domain name is therefrom searched, General is one-to-one or many-to-one relation between domain name and IP address, and therefore, a target domain name typically only one is right The target ip address answered, after IP address corresponding to finding, network request is initiated to server corresponding to the target ip address, Specifically, processor 12 requires according to http protocol, organizes the packet of a request, believes in packet comprising specific request Breath, including identity information of the resource path of request, terminal etc., for resource data corresponding to whois lookup and are returned.Its In, when the mapping table stored on memory 11 can be that APP starts, processor 11 is to server acquisition request and stores 's.
Preferably as another embodiment, the processor 12 is additionally operable to perform the domain name mapping stored in memory 11 Program, from the domain name matched with the application and IP address mapping table, to search corresponding with the target domain name After the step of target ip address, following steps are also realized:
If from domain name with finding target ip address corresponding with the target domain name in IP address mapping table, The step of then performing based on the target ip address found to corresponding server initiation network request;
If from domain name with lookup Target IP corresponding less than with the target domain name in IP address mapping table Location, then the network request is sent to dns server and parsed;
Receive dns server and parse the target ip address that the network request obtains, and based on the IP address of reception to right The server answered sends network request.
In this embodiment, will distal end when terminal is locally being searched less than the target ip address matched with target domain name Parsing of the dns server to domain name is as a kind of supplementary means.For the distal end dns server of terminal direct access inquiry, when Not during IP address corresponding with target domain name, it will inquire that parent server is equally possible not to be had to its parent server, Just look for upwards from level to level according to this, reach as high as root node, untill finding or all can not find.
For example, in the exploitation of application is safeguarded, it is possible that occurring new domain name in the application of redaction, but develop Personnel have not enough time to be updated domain name and IP address mapping table, therefore, can not find the mesh that is matched with target domain name When marking IP address, terminal directly sends network request to the dns server of distal end, and domain name mapping is carried out by dns server.This Outside, the IP address of terminal is included in network request, dns server is parsed after obtaining target ip address, according to the IP of terminal Target ip address is sent to terminal by location.
Further, in other examples, the processor is additionally operable to perform domain name analysis program, to realize Following steps:
When receiving the target ip address that the dns server parsing network request obtains, by the Target IP of reception Location is sent to the application server with the target domain name, so that the application server is based on the target ip address received With target domain name renewal domain name and IP address mapping table.
Terminal can use the target ip address to should after receiving dns server and parsing obtained target ip address Network request is sent with server, application server is reported to after can also IP address be associated with corresponding target domain name, with The domain name of maintenance is updated with IP address mapping table for application server.
The domain name mapping device that the present embodiment proposes, when detecting using the network request sent, local directly right The network request is parsed, and gets the target domain name of network request, from the domain name being locally stored and IP address mapping relations Target ip address corresponding with target domain name is inquired in table, based on the target ip address found directly to target ip address pair The server answered initiates network request, is no longer dependent on the parsing that distal end dns server carries out domain name, even if dns server is sent out Raw failure does not interfere with yet accesses network using normal, in addition, improving target ip address in the parsing for locally carrying out domain name Acquisition speed, accelerate network response speed.
Alternatively, in other examples, domain name mapping program can also be divided into one or more module, and one Individual or multiple modules are stored in memory 11, and are held by one or more processors (the present embodiment is by processor 12) OK, to complete the present invention.Module alleged by the present invention is the series of computation machine programmed instruction section for referring to complete specific function, For describing implementation procedure of the message pusher in domain name mapping device.
For example, in one embodiment, domain name mapping program can be divided into parsing module, searching modul and send mould Block, wherein:
The parsing module, for when detecting using the network request sent, parsing the network request to obtain Target domain name corresponding to the network request;
The searching modul, for from the domain name that is matched with the application with IP address mapping table, searching and institute State target ip address corresponding to target domain name;
The sending module, for initiating network request to corresponding server based on the target ip address found.
In addition, the present invention also provides a kind of domain name analytic method.Shown in reference picture 2, be domain name analytic method of the present invention compared with The flow chart of good embodiment.This method can be performed by a device, and the device can be realized by software and/or hardware.
In the present embodiment, domain name analytic method includes:
Step S10, when detecting using the network request sent, the network request is parsed to obtain the network request Corresponding target domain name.
Step S20, from the domain name matched with the application with IP address mapping table, searching and the target domain name Corresponding target ip address.
Step S30, network request is initiated to corresponding server based on the target ip address found.
Above-mentioned application is installed and run in device in the present embodiment, each application have pre-configured domain name and IP address mapping table, developer is in development and application, the domain name that sets the application to be able to access that at application server end And IP address corresponding to each domain name.The mapping relations established between domain name and IP address, it can deposit in the form of a list Domain name and corresponding IP address are stored up, establishes domain name and IP address mapping table, and be sent to client.
For terminal, the acquisition modes on domain name and IP address mapping table can have various ways, below Two of which is enumerated to illustrate.
Mode one, before step S10, this method is further comprising the steps of:
When detecting that the application starts, acquisition domain name is sent to server based on preset interface and closed with IP address mapping It is the acquisition request of table;Application server is received based on domain name and the IP address mapping table for obtaining request and sending and is delayed Deposit to local.
Apply when starting each time, ask newest domain name with IP address mapping table to this at application server The mapping table of ground storage is updated storage, for the use when application carries out network request.In other embodiments, in order to protect The security of information is demonstrate,proved, the mapping table being locally stored can be deleted when detecting using closing, when application starts every time, weight The mapping table of newest domain name and IP address is newly asked to application server.
Mode two, after step step S20, the method for the embodiment is further comprising the steps of:
If from domain name with lookup Target IP corresponding less than with the target domain name in IP address mapping table Location, then send renewal request to the application server;
Receive domain name and IP address mapping table that the application server is returned based on the renewal request, and from connecing The domain name of receipts is with searching target ip address corresponding with the target domain name in IP address mapping table;
When finding corresponding target ip address, step S30 is performed.
According to which, terminal starts without application every time all asks domain name to be closed with IP address mapping to application server It is table.It is preferential using the domain name being locally stored and IP address mapping table in the interior progress network request of application, when appearing in The domain name being locally stored is with inquiring about Target IP corresponding less than with the target domain name in network request in IP address mapping table During address, renewal request is sent to application server, to obtain newest domain name and IP address mapping table, and is re-started The inquiry of target ip address, when finding corresponding target ip address, network is initiated to server corresponding to target ip address Request.Further, can also be used by newest mapping table renewal storage to locally for follow-up.
The present embodiment is illustrated by taking a specific application scenarios as an example below.With the hand with Android system Exemplified by machine, certain APP is based on http protocol (HyperText Transfer Protocol, HTTP) on the mobile phone Communicated with the server of the APP, the APP initiates primary network request, and place obtains the URL (Uniform of the network request Resoure Locator, uniform resource locator) object, include protocol information, network address and resource road in the URL Footpath, wherein, network address is generally domain name, and resource path is generally used for which resource instruction obtains from application server. Call domain name mapping program to parse the network request, target domain name is obtained, then from domain name and IP address mapping relations Searched in table has the IP address of mapping relations with target domain name, is one-to-one between general domain name and IP address or many-one Relation, therefore, target domain name typically only corresponding target ip address, after IP address corresponding to finding, Network request is initiated to server corresponding to the target ip address, specifically, is required according to http protocol, one request of tissue Packet, specific solicited message, including identity information of the resource path of request, terminal etc. are included in packet, for clothes Resource data corresponding to business device lookup simultaneously returns.Wherein, when mapping table can be that APP starts, terminal to server request Obtain and store.
Preferably as another embodiment, from the domain name matched with the application and IP address mapping table, look into After the step of looking for target ip address corresponding with the target domain name, this method is further comprising the steps of:
If from domain name with finding target ip address corresponding with the target domain name in IP address mapping table, The step of then performing based on the target ip address found to corresponding server initiation network request;
If from domain name with lookup Target IP corresponding less than with the target domain name in IP address mapping table Location, then the network request is sent to dns server and parsed;
Receive dns server and parse the target ip address that the network request obtains, and based on the IP address of reception to right The server answered sends network request.
In this embodiment, will distal end when terminal is locally being searched less than the target ip address matched with target domain name Parsing of the dns server to domain name is as a kind of supplementary means.For the distal end dns server of terminal direct access inquiry, when Not during IP address corresponding with target domain name, it will inquire that parent server is equally possible not to be had to its parent server, Just look for upwards from level to level according to this, reach as high as root node, untill finding or all can not find.
For example, in the exploitation of application is safeguarded, it is possible that occurring new domain name in the application of redaction, but develop Personnel have not enough time to be updated domain name and IP address mapping table, therefore, can not find the mesh that is matched with target domain name When marking IP address, terminal directly sends network request to the dns server of distal end, and domain name mapping is carried out by dns server.This Outside, the IP address of terminal is included in network request, dns server is parsed after obtaining target ip address, according to the IP of terminal Target ip address is sent to terminal by location.
Further, in other examples, this method also includes step:Receiving described in dns server parsing During the target ip address that network request obtains, the target ip address of reception and the target domain name are sent to the application service Device, so that the application server is based on the target ip address received and target domain name renewal domain name and IP address mapping relations Table.
Terminal can use the target ip address to should after receiving dns server and parsing obtained target ip address Network request is sent with server, application server is reported to after can also IP address be associated with corresponding target domain name, with The domain name of maintenance is updated with IP address mapping table for application server.
The domain name analytic method that the present embodiment proposes, when detecting using the network request sent, local directly right The network request is parsed, and gets the target domain name of network request, from the domain name being locally stored and IP address mapping relations Target ip address corresponding with target domain name is inquired in table, based on the target ip address found directly to target ip address pair The server answered initiates network request, is no longer dependent on the parsing that distal end dns server carries out domain name, even if dns server is sent out Raw failure does not interfere with yet accesses network using normal, in addition, improving target ip address in the parsing for locally carrying out domain name Acquisition speed, accelerate network response speed.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium On be stored with domain name mapping program, following operation is realized when domain name analysis program is executed by processor:
When detecting using the network request sent, the network request is parsed to obtain mesh corresponding to the network request Mark domain name;From the domain name matched with the application with IP address mapping table, searching mesh corresponding with the target domain name Mark IP address;Network request is initiated to corresponding server based on the target ip address found.
Further, following operation is also realized when domain name analysis program is executed by processor:It ought be detected described Using transmission network request when, parse the step of network request is to obtain target domain name corresponding to the network request it Before, when detecting that the application starts, sent based on preset interface to server and obtain domain name and IP address mapping table Acquisition request;Application server is received based on the domain name for obtaining request transmission and IP address mapping table and is cached extremely It is local.
Further, following operation is also realized when domain name analysis program is executed by processor:From with the application After the step of domain name of matching is with IP address mapping table, searching target ip address corresponding with the target domain name, If from domain name with searching target ip address corresponding less than with the target domain name in IP address mapping table, to institute State application server and send renewal request;Receive domain name and IP address that the application server is returned based on the renewal request Mapping table, and from the domain name of reception with Target IP corresponding with the target domain name is searched in IP address mapping table Location;When finding corresponding target ip address, perform and net is initiated to corresponding server based on the target ip address found The step of network is asked.
Further, following operation is also realized when domain name analysis program is executed by processor:From with the application After the step of domain name of matching is with IP address mapping table, searching target ip address corresponding with the target domain name, If perform base with finding target ip address corresponding with the target domain name in IP address mapping table from domain name In the target ip address found to corresponding server initiate network request the step of;If mapped from domain name and IP address Target ip address corresponding less than with the target domain name is searched in relation table, then is sent the network request to DNS service Device is parsed;Receive dns server and parse the target ip address that the network request obtains, and based on the IP address of reception to Corresponding server sends network request.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, device, article or method including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, device, article or method institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, device, article or method.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment fills The mode of required general hardware platform can be added to realize by software by putting, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, Computer, server, or network equipment etc.) perform device described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of domain name mapping device, it is characterised in that described device includes:Memory, processor and it is stored in the storage On device and the domain name mapping program that can run on the processor, domain name analysis program is by real during the computing device Existing following steps:
When detecting using the network request sent, the network request is parsed to obtain aiming field corresponding to the network request Name;
From the domain name matched with the application with IP address mapping table, searching Target IP corresponding with the target domain name Address;
Network request is initiated to corresponding server based on the target ip address found.
2. domain name mapping device according to claim 1, it is characterised in that the processor is additionally operable to perform domain name Analysis program, so that, when detecting using the network request sent, parsing the network request please to obtain the network described Before the step of seeking corresponding target domain name, following steps are also realized:
When detecting that the application starts, sent based on preset interface to server and obtain domain name and IP address mapping table Acquisition request;
Application server is received based on the domain name for obtaining request transmission and IP address mapping table and is cached to local.
3. domain name mapping device according to claim 1 or 2, it is characterised in that the processor is additionally operable to described in execution Domain name mapping program, from the domain name matched with the application and IP address mapping table, to search and the aiming field Name corresponding to target ip address the step of after, also realize following steps:
If from domain name with searching target ip address corresponding less than with the target domain name in IP address mapping table, Renewal request is sent to the application server;
Receive domain name and IP address mapping table that the application server is returned based on the renewal request, and from reception Domain name is with searching target ip address corresponding with the target domain name in IP address mapping table;
When finding corresponding target ip address, perform and net is initiated to corresponding server based on the target ip address found The step of network is asked.
4. domain name mapping device according to claim 1 or 2, it is characterised in that the processor is additionally operable to described in execution Domain name mapping program, from the domain name matched with the application and IP address mapping table, to search and the aiming field Name corresponding to target ip address the step of after, also realize following steps:
If held from domain name with finding target ip address corresponding with the target domain name in IP address mapping table The step of going based on the target ip address found to corresponding server initiation network request;
If from domain name with searching target ip address corresponding less than with the target domain name in IP address mapping table, The network request is sent to dns server and parsed;
Receive dns server and parse the target ip address that the network request obtains, and based on the IP address of reception to corresponding Server sends network request.
5. domain name mapping device according to claim 4, it is characterised in that the processor is additionally operable to perform domain name Analysis program, to realize following steps:
When receiving dns server and parsing the target ip address that the network request obtains, by the target ip address of reception with The target domain name is sent to the application server, so that the application server is based on the target ip address and mesh received Mark domain name more new domain name and IP address mapping table.
6. a kind of domain name analytic method, it is characterised in that methods described includes:
When detecting using the network request sent, the network request is parsed to obtain aiming field corresponding to the network request Name;
From the domain name matched with the application with IP address mapping table, searching Target IP corresponding with the target domain name Address;
Network request is initiated to corresponding server based on the target ip address found.
7. domain name analytic method according to claim 6, it is characterised in that described ought detect please using the network sent When asking, before parsing the step of network request is to obtain target domain name corresponding to the network request, methods described also includes:
When detecting that the application starts, sent based on preset interface to server and obtain domain name and IP address mapping table Acquisition request;
Application server is received based on the domain name for obtaining request transmission and IP address mapping table and is cached to local.
8. the domain name analytic method according to claim 6 or 7, it is characterised in that described from the domain matched with the application After the step of name is with IP address mapping table, searching target ip address corresponding with the target domain name, methods described Also include:
If from domain name with searching target ip address corresponding less than with the target domain name in IP address mapping table, Renewal request is sent to the application server;
Receive domain name and IP address mapping table that the application server is returned based on the renewal request, and from reception Domain name is with searching target ip address corresponding with the target domain name in IP address mapping table;
When finding corresponding target ip address, perform and net is initiated to corresponding server based on the target ip address found The step of network is asked.
9. the domain name analytic method according to claim 6 or 7, it is characterised in that described from the domain matched with the application After the step of name is with IP address mapping table, searching target ip address corresponding with the target domain name, methods described Also include:
If held from domain name with finding target ip address corresponding with the target domain name in IP address mapping table The step of going based on the target ip address found to corresponding server initiation network request;
If from domain name with searching target ip address corresponding less than with the target domain name in IP address mapping table, The network request is sent to dns server and parsed;
Receive dns server and parse the target ip address that the network request obtains, and based on the IP address of reception to corresponding Server sends network request.
10. a kind of computer-readable recording medium, it is characterised in that domain name solution is stored with the computer-readable recording medium Program is analysed, the domain name mapping as any one of claim 6 to 9 is realized when domain name analysis program is executed by processor The step of method.
CN201710489764.5A 2017-06-24 2017-06-24 Domain name mapping device, method and computer-readable recording medium Pending CN107682465A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710489764.5A CN107682465A (en) 2017-06-24 2017-06-24 Domain name mapping device, method and computer-readable recording medium
PCT/CN2017/105021 WO2018233140A1 (en) 2017-06-24 2017-09-30 Domain name resolution apparatus and method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710489764.5A CN107682465A (en) 2017-06-24 2017-06-24 Domain name mapping device, method and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107682465A true CN107682465A (en) 2018-02-09

Family

ID=61134110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710489764.5A Pending CN107682465A (en) 2017-06-24 2017-06-24 Domain name mapping device, method and computer-readable recording medium

Country Status (2)

Country Link
CN (1) CN107682465A (en)
WO (1) WO2018233140A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769286A (en) * 2018-05-25 2018-11-06 Oppo(重庆)智能科技有限公司 Dns server configuration method and related product
CN109936641A (en) * 2019-01-25 2019-06-25 华为技术有限公司 Method, virtual switch and the distributed DNS system of domain name mapping
CN110224996A (en) * 2019-05-20 2019-09-10 深圳壹账通智能科技有限公司 Network Access Method, device, computer equipment and the storage medium of application program
CN110321506A (en) * 2019-07-04 2019-10-11 广州小鹏汽车科技有限公司 Webpage data loading method, device, computer equipment and storage medium
CN110855782A (en) * 2019-11-14 2020-02-28 北京顺丰同城科技有限公司 Service calling system, method, electronic equipment and readable storage medium
CN110913270A (en) * 2018-09-14 2020-03-24 北京微播视界科技有限公司 Live broadcasting method and device
CN111414208A (en) * 2020-03-13 2020-07-14 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111491033A (en) * 2020-04-27 2020-08-04 湖南快乐阳光互动娱乐传媒有限公司 Connection establishing method and device
CN111556178A (en) * 2020-04-26 2020-08-18 北京达佳互联信息技术有限公司 Analytic system, method, equipment and storage medium
CN112019646A (en) * 2020-07-20 2020-12-01 视联动力信息技术股份有限公司 MAC address duplicate checking method and device, terminal equipment and storage medium
CN112118226A (en) * 2020-08-13 2020-12-22 视联动力信息技术股份有限公司 Method and device for inquiring video networking number, terminal equipment and storage medium
CN112615945A (en) * 2020-12-18 2021-04-06 平安科技(深圳)有限公司 Domain name resolution record management method and device, computer equipment and storage medium
CN112804371A (en) * 2020-12-30 2021-05-14 浙江大华技术股份有限公司 Domain name resolution processing method and device
CN113206894A (en) * 2021-05-08 2021-08-03 腾讯科技(深圳)有限公司 DNS server discovery method and device, computer equipment and storage medium
CN113596185A (en) * 2021-06-23 2021-11-02 阿里巴巴新加坡控股有限公司 Domain name resolution method, device, equipment and machine readable medium based on available area
CN113810510A (en) * 2021-07-30 2021-12-17 绿盟科技集团股份有限公司 Domain name access method and device and electronic equipment
CN114615175A (en) * 2022-05-10 2022-06-10 鹏城实验室 Service verification method, device and computer readable storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935327B (en) * 2020-02-24 2023-07-25 北京豆萌信息技术有限公司 Domain name assignment method, device, equipment and computer readable storage medium
CN113938462B (en) * 2020-12-28 2024-07-16 京东科技控股股份有限公司 Domain name resolution method, device, electronic equipment and storage medium
CN113301099B (en) * 2021-01-18 2024-09-13 阿里巴巴集团控股有限公司 Request processing method, data processing method, device, equipment and CDN system
CN113472914B (en) * 2021-06-28 2023-09-26 北京天地互连信息技术有限公司 DNS directional prefetching caching method and system
CN114301837B (en) * 2021-12-16 2024-07-23 山石网科通信技术股份有限公司 Routing data processing method and device
CN114650221A (en) * 2022-02-21 2022-06-21 福州汇思博信息技术有限公司 Method and system for quickly calling service interface
CN115297085B (en) * 2022-06-29 2024-04-23 北京奇艺世纪科技有限公司 Domain name resolution updating method and device, electronic equipment and storage medium
CN117082152B (en) * 2023-09-27 2024-01-12 新华三技术有限公司 Service processing method, system and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639672A (en) * 2015-02-12 2015-05-20 广州华多网络科技有限公司 Method and device for domain name resolution (DNS)
US20150237158A1 (en) * 2012-03-31 2015-08-20 Beijing Qihoo Technology Company Limited Method and system for accessing website
CN105338187A (en) * 2015-11-16 2016-02-17 联想(北京)有限公司 Information processing method and electronic equipment
CN106161664A (en) * 2015-04-15 2016-11-23 阿里巴巴集团控股有限公司 Domain name analytic method and device, data transmission method and device
CN106506715A (en) * 2016-10-14 2017-03-15 乐视控股(北京)有限公司 Domain name analytic method and device
CN106850813A (en) * 2017-02-14 2017-06-13 合网络技术(北京)有限公司 Network service address changing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN104683501A (en) * 2015-03-30 2015-06-03 乐视致新电子科技(天津)有限公司 Method and device for domain name resolution

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150237158A1 (en) * 2012-03-31 2015-08-20 Beijing Qihoo Technology Company Limited Method and system for accessing website
CN104639672A (en) * 2015-02-12 2015-05-20 广州华多网络科技有限公司 Method and device for domain name resolution (DNS)
CN106161664A (en) * 2015-04-15 2016-11-23 阿里巴巴集团控股有限公司 Domain name analytic method and device, data transmission method and device
CN105338187A (en) * 2015-11-16 2016-02-17 联想(北京)有限公司 Information processing method and electronic equipment
CN106506715A (en) * 2016-10-14 2017-03-15 乐视控股(北京)有限公司 Domain name analytic method and device
CN106850813A (en) * 2017-02-14 2017-06-13 合网络技术(北京)有限公司 Network service address changing method and device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769286A (en) * 2018-05-25 2018-11-06 Oppo(重庆)智能科技有限公司 Dns server configuration method and related product
CN110913270A (en) * 2018-09-14 2020-03-24 北京微播视界科技有限公司 Live broadcasting method and device
CN110913270B (en) * 2018-09-14 2021-12-21 北京微播视界科技有限公司 Live broadcasting method and device
CN109936641B (en) * 2019-01-25 2020-12-04 华为技术有限公司 Domain name resolution method, virtual switch and distributed DNS system
CN109936641A (en) * 2019-01-25 2019-06-25 华为技术有限公司 Method, virtual switch and the distributed DNS system of domain name mapping
CN110224996A (en) * 2019-05-20 2019-09-10 深圳壹账通智能科技有限公司 Network Access Method, device, computer equipment and the storage medium of application program
CN110321506A (en) * 2019-07-04 2019-10-11 广州小鹏汽车科技有限公司 Webpage data loading method, device, computer equipment and storage medium
CN110855782A (en) * 2019-11-14 2020-02-28 北京顺丰同城科技有限公司 Service calling system, method, electronic equipment and readable storage medium
CN111414208A (en) * 2020-03-13 2020-07-14 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111414208B (en) * 2020-03-13 2023-08-01 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111556178A (en) * 2020-04-26 2020-08-18 北京达佳互联信息技术有限公司 Analytic system, method, equipment and storage medium
CN111491033A (en) * 2020-04-27 2020-08-04 湖南快乐阳光互动娱乐传媒有限公司 Connection establishing method and device
CN112019646A (en) * 2020-07-20 2020-12-01 视联动力信息技术股份有限公司 MAC address duplicate checking method and device, terminal equipment and storage medium
CN112019646B (en) * 2020-07-20 2024-05-14 视联动力信息技术股份有限公司 MAC address duplicate checking method, device, terminal equipment and storage medium
CN112118226A (en) * 2020-08-13 2020-12-22 视联动力信息技术股份有限公司 Method and device for inquiring video networking number, terminal equipment and storage medium
CN112615945A (en) * 2020-12-18 2021-04-06 平安科技(深圳)有限公司 Domain name resolution record management method and device, computer equipment and storage medium
CN112615945B (en) * 2020-12-18 2022-10-18 平安科技(深圳)有限公司 Domain name resolution record management method and device, computer equipment and storage medium
CN112804371B (en) * 2020-12-30 2023-04-07 浙江大华技术股份有限公司 Domain name resolution processing method and device
CN112804371A (en) * 2020-12-30 2021-05-14 浙江大华技术股份有限公司 Domain name resolution processing method and device
CN113206894A (en) * 2021-05-08 2021-08-03 腾讯科技(深圳)有限公司 DNS server discovery method and device, computer equipment and storage medium
CN113206894B (en) * 2021-05-08 2024-04-23 腾讯科技(深圳)有限公司 Method and device for discovering DNS server, computer equipment and storage medium
CN113596185A (en) * 2021-06-23 2021-11-02 阿里巴巴新加坡控股有限公司 Domain name resolution method, device, equipment and machine readable medium based on available area
CN113810510A (en) * 2021-07-30 2021-12-17 绿盟科技集团股份有限公司 Domain name access method and device and electronic equipment
CN114615175A (en) * 2022-05-10 2022-06-10 鹏城实验室 Service verification method, device and computer readable storage medium

Also Published As

Publication number Publication date
WO2018233140A1 (en) 2018-12-27

Similar Documents

Publication Publication Date Title
CN107682465A (en) Domain name mapping device, method and computer-readable recording medium
CN106657431B (en) A kind of method, server, terminal and the system of business platform address resolution
CN104639672B (en) The method and apparatus for carrying out domain name mapping
CN105302587B (en) Data-updating method and device
CN111064713B (en) Node control method and related device in distributed system
CN108595203B (en) Application function execution method, mobile terminal and computer readable storage medium
CN107766358B (en) Page sharing method and related device
CN108170723B (en) Webpage resource acquisition method, terminal equipment, server and system
CN104580177B (en) Resource provider method, device and system
CN108600516B (en) Data acquisition method, mobile terminal and computer readable storage medium
CN107911536B (en) Cross-application access method, device and computer readable storage medium
CN107040543A (en) Single-point logging method, terminal and storage medium
CN110445746B (en) Cookie obtaining method and device and storage equipment
CN107704443A (en) List based on geographical position fills in householder method, device and storage medium
CN108268232B (en) Picture display method, device, system and storage medium
CN109656510A (en) The method and terminal of voice input in a kind of webpage
CN108076134A (en) Record information acquisition method, terminal, server and computer readable storage medium
CN114372032A (en) Resource file synchronization method, device, equipment and storage medium
WO2018137528A1 (en) Method and device for accessing resource
CN111556178A (en) Analytic system, method, equipment and storage medium
CN105740419A (en) Method and apparatus for acquiring dynamically loaded content in webpage
CN109151081B (en) Production comprehensive testing method and device, intelligent terminal and readable storage medium
CN110069458A (en) Method, equipment and the storage medium of invalid resource in a kind of deletion Android system
CN108595672A (en) The method, apparatus and readable storage medium storing program for executing of file type are downloaded in a kind of identification
CN107231469B (en) Terminal application management method, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180209