CN108737582A - The method and device of domain name mapping - Google Patents
The method and device of domain name mapping Download PDFInfo
- Publication number
- CN108737582A CN108737582A CN201710253443.5A CN201710253443A CN108737582A CN 108737582 A CN108737582 A CN 108737582A CN 201710253443 A CN201710253443 A CN 201710253443A CN 108737582 A CN108737582 A CN 108737582A
- Authority
- CN
- China
- Prior art keywords
- domain name
- network address
- visited
- address
- mapping
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1441—Countermeasures against malicious traffic
- H04L63/1466—Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method and device of domain name mapping, this method includes:Determine domain name to be visited;Obtain the mapping relations for being stored in local domain name and network address;According to the domain name to be visited and the mapping relations, destination address to be visited is determined;Access request is initiated based on the destination address.Technical scheme of the present invention can avoid the problem that DNS is kidnapped, while can reduce the time delay of network request, effectively improve network performance.
Description
Technical field
The present invention relates to Internet technical fields, in particular to a kind of method and device of domain name mapping.
Background technology
The first step that APP (Application, application program) client sends access request is required for carrying out DNS
(Domain Name System, domain name system) parse, due to the presence of cache (cache memory) make it is most
Analysis request not will produce larger delay.Currently, each manufacturer terminal has a cache expiration policies of oneself, such as
IOS systems, DNS cache are usually at 24 hours later can be expired, while then exiting, opening again when terminal enters offline mode
Shutdown, resetting network settings etc. also result in the removing of DNS cache.Therefore, when user is again turned on APP by the long period
Shi Tongchang can undergo primary complete dns resolution process, and total consumption of application request can be obviously increased when network condition is poor
When.
DNS, which is kidnapped, to be referred to changing returning the result for DNS request, i.e., the destination IP of return is directed toward another address.It is logical
Often there are two types of modes:One is the dns server address for changing the machine configuration by way of virus;Second is that normal by attacking
Dns server and change its behavior.Regardless of mode, the service request of APP itself can be all influenced, and if encountering evil
The attack of meaning can also derive various safety problems.
For the scene of service centre's multimachine room deployment, when needing service switching center, DNS cache can cause to prolong
Late, the timeliness of service request is affected.And when cross operator network initiates to access service, it is poor also there is network performance
Or not available problem.
It should be noted that information is only used for reinforcing the reason of the background to the present invention disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Invention content
The purpose of the present invention is to provide a kind of method and devices of domain name mapping, and then overcome at least to a certain extent
One or more problem caused by the limitation and defect of the relevant technologies.
Other characteristics and advantages of the present invention will be apparent from by the following detailed description, or partially by the present invention
Practice and acquistion.
According to an aspect of the present invention, a kind of method of domain name mapping is provided, including:Determine domain name to be visited;It obtains
Take the mapping relations for being stored in local domain name and network address;According to the domain name to be visited and the mapping relations, really
Fixed destination address to be visited;Access request is initiated based on the destination address.
In some embodiments of the invention, aforementioned schemes are based on, are closed according to the domain name to be visited and the mapping
System, the step of determining destination address to be visited include:According to the domain name to be visited and the mapping relations, acquisition and institute
State the corresponding all-network address of domain name to be visited;Determine the access weight of the all-network address;Most by access weight
Big network address is as the destination address.
In some embodiments of the invention, aforementioned schemes are based on, further include:When starting application program every time, or
When the network state of terminal changes, the access weight of the all-network address is redefined.
In some embodiments of the invention, aforementioned schemes are based on, determine the access weight of the all-network address
Step, including:Calculate each network address corresponding first packet time in the all-network address;According to each network
The address corresponding first packet time, determine the access weight of each network address.
In some embodiments of the invention, be based on aforementioned schemes, the access weight of each network address with it is described
The first packet time is at inverse correlation relationship.
In some embodiments of the invention, aforementioned schemes are based on, further include:The domain name to be visited is sent to domain
Name server;Receive the network address that domain name server returns;Judge in the mapping relations whether to include domain name
The network address that server returns;It, will if not including the network address that domain name server returns in the mapping relations
The network address that domain name server returns is added in the mapping relations.
In some embodiments of the invention, aforementioned schemes are based on, further include:If in the mapping relations including the domain
The network address that name server returns, then the network address returned to domain name server is as the destination address.
In some embodiments of the invention, aforementioned schemes are based on, further include:If not including in the mapping relations described
The domain name to be visited is then sent to name server by domain name to be visited;Receive the net that domain name server returns
Network address;Safety inspection is carried out to the network address that domain name server returns, obtains testing result;It is tied according to the inspection
Fruit, it is determined whether access request is initiated based on the network address that domain name server returns.
In some embodiments of the invention, aforementioned schemes are based on, further include:When starting application program every time, backward
Platform server sends the acquisition request of the mapping relations;The mapping relations that the background server returns are received, and are deposited
Storage is in local.
In some embodiments of the invention, aforementioned schemes, the position for obtaining request bag and containing the terminal are based on
Information, the location information are used for the network address corresponding to the location information for background server distribution.
According to the second aspect of the invention, it is also proposed that a kind of device of domain name mapping, including:Determination unit, for true
Fixed domain name to be visited;Acquiring unit, for obtaining the mapping relations for being stored in local domain name and network address;Processing is single
Member, for according to the domain name to be visited and the mapping relations, determining destination address to be visited;Communication unit is used for
Access request is initiated based on the destination address.
In some embodiments of the invention, aforementioned schemes are based on, the processing unit is configured to:According to described to be visited
Domain name and the mapping relations, obtain corresponding with the domain name to be visited all-network address;Determine all nets
The access weight of network address;Using the maximum network address of access weight as the destination address.
In some embodiments of the invention, aforementioned schemes are based on, the processing unit is configured to:Start application each
When program, or when the network state of terminal changes, the access weight of the all-network address is redefined.
In some embodiments of the invention, aforementioned schemes are based on, the processing unit is configured to:Calculate all nets
Each network address corresponding first packet time in network address;According to each network address corresponding first packet time, determine
The access weight of each network address.
In some embodiments of the invention, be based on aforementioned schemes, the access weight of each network address with it is described
The first packet time is at inverse correlation relationship.
In some embodiments of the invention, aforementioned schemes are based on, further include:First transmission unit, for being waited for described
The domain name of access is sent to name server;First receiving unit, the network address for receiving the return of domain name server;
Judging unit, for judge in the mapping relations whether the network address returned comprising domain name server;Adding device,
For in the mapping relations do not include domain name server return network address when, domain name server is returned
Network address be added in the mapping relations.
In some embodiments of the invention, aforementioned schemes are based on, if in the mapping relations including domain name service
The network address that device returns, then the network address returned to domain name server is as the destination address.
In some embodiments of the invention, aforementioned schemes are based on, further include:Second transmission unit, for being reflected described
It penetrates in relationship when not including the domain name to be visited, the domain name to be visited is sent to name server;Second receives
Unit, the network address for receiving the return of domain name server;The processing unit is additionally operable to, to domain name server
The network address of return carries out safety inspection, obtains testing result, and according to the inspection result, it is determined whether is based on the domain
The network address that name server returns initiates access request.
In some embodiments of the invention, aforementioned schemes are based on, further include:Third transmission unit, for opening every time
When dynamic application program, the acquisition request of the mapping relations is sent to background server;Third receiving unit, it is described for receiving
The mapping relations that background server returns, and it is stored in local.
In some embodiments of the invention, aforementioned schemes, the position for obtaining request bag and containing the terminal are based on
Information, the location information are used for the network address corresponding to the location information for background server distribution.
Domain name analytic method and device according to an embodiment of the invention are stored in local domain name and network by obtaining
The mapping relations of address, to determine template address to be visited based on the mapping relations and domain name to be visited so that DNS's
Resolving can be in local progress, and then can avoid unauthorized person malicious attack dns server or change the machine configuration
Dns server address and the problem of cause DNS to kidnap, be conducive to promote network performance.
Domain name analytic method and device according to an embodiment of the invention, by determining institute corresponding with domain name to be visited
There is the access weight of network address, and using the maximum network address of access weight as destination address so that in domain name and network
When address is one-to-many relationship, optimal network address can be selected to initiate to access, to reduce network request as far as possible
Time delay.
Domain name to be visited is being sent to domain name service by domain name analytic method and device according to an embodiment of the invention
Device, and receive name server return network address in the case of, if in mapping relations comprising name server return
Network address then illustrates that DNS abduction does not occur, therefore the network address that can be directly returned using name server, in this way
Also it can avoid needing that longer time is spent to determine weight, Jin Erhui when the corresponding network address of domain name to be visited is more
Lead to the longer problem of period of reservation of number.If not including the network address that name server returns in mapping relations, in order to protect
The safety that network accesses is demonstrate,proved, then the network address that name server returns can be added in the mapping relations, then be passed through
The judgement of weight determines destination address.
Domain name analytic method and device according to an embodiment of the invention, by being asked in the acquisition sent to background server
The location information for including terminal in asking, so that background server distribution is corresponding to the network address of the location information so that final
Determining destination address can reduce the delay of overall network request, realize a degree of server Dynamical Deployment.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention
Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the flow chart of the method for domain name mapping according to first embodiment of the invention;
Fig. 2 diagrammatically illustrates the flow chart of the method for the domain name mapping of second embodiment according to the present invention;
Fig. 3 diagrammatically illustrates the flow chart of the method for the domain name mapping of third embodiment according to the present invention;
Fig. 4 diagrammatically illustrates the correspondence of domain name and IP address according to an embodiment of the invention;
Fig. 5 diagrammatically illustrates the flow chart of the method for the domain name mapping of the 4th embodiment according to the present invention;
Fig. 6 diagrammatically illustrates the block diagram of the device of domain name mapping according to an embodiment of the invention.
Specific implementation mode
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to fully understand the embodiment of the present invention to provide.However,
It will be appreciated by persons skilled in the art that technical scheme of the present invention can be put into practice without one or more in specific detail,
Or other methods, constituent element, device, step may be used etc..In other cases, it is not shown in detail or describes known side
Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in attached drawing is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in attached drawing is merely illustrative, it is not necessary to including all content and operation/step,
It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close
And or part merge, therefore the sequence actually executed is possible to be changed according to actual conditions.
Fig. 1 diagrammatically illustrates the flow chart of the method for domain name mapping according to first embodiment of the invention.
Referring to Fig.1, the method for domain name mapping according to first embodiment of the invention, including:
Step S102 determines domain name to be visited.
In an embodiment of the present invention, a certain calculating on the internet that the name that domain name is separated by a string with point forms
Machine or the title for calculating unit, the electronic bearing for identifying computer in data transmission.
Step S104 obtains the mapping relations for being stored in local domain name and network address.
In an embodiment of the present invention, the mapping relations of domain name and network address can be one-to-one relationship, can also
It is one-to-many relationship, i.e. a domain name can be corresponding with multiple network address.The network address can be IP address.
It should be noted that:Step S102 can be simultaneous with step S104, can also be successively to execute, when
There are when sequencing, either step S102 is first carried out, is executed after step S104, can also be step S104 first carry out,
It is executed after step S102.
Exemplary embodiment according to the present invention can send institute when starting application program every time to background server
State the acquisition request of mapping relations;The mapping relations that the background server returns are received, and are stored in local.
By the way that when starting application program every time, the acquisition request of mapping relations is sent to background server, it is ensured that
Newest mapping relations have been locally stored, and then can ensure to get most suitable destination address.
Exemplary embodiment according to the present invention, the location information for obtaining request bag and containing the terminal, institute's rheme
Confidence breath is for the network address for background server distribution corresponding to the location information.
By the location information for including terminal in the acquisition request sent to background server, for background server point
With the network address corresponding to the location information so that finally determining destination address can reduce prolonging for overall network request
Late, a degree of server Dynamical Deployment is realized.
Step S106 determines destination address to be visited according to the domain name to be visited and the mapping relations.
Exemplary embodiment according to the present invention, step S106 include:According to the domain name to be visited and the mapping
Relationship obtains all-network address corresponding with the domain name to be visited;Determine the access weight of the all-network address;
Using the maximum network address of access weight as the destination address.
By regarding the maximum network address of access weight as destination address, it is ensured that the promptness that network accesses, drop
The request of low network postpones.
Exemplary embodiment according to the present invention further includes:When starting application program every time, or in the network-like of terminal
When state changes, the access weight of the all-network address is redefined.
Exemplary embodiment according to the present invention, the step of determining the access weight of the all-network address, including:Meter
Calculate each network address corresponding first packet time in the all-network address;According to the corresponding head of each network address
The time is wrapped, determines the access weight of each network address.
Exemplary embodiment according to the present invention, the access weight of each network address is with the first packet time at anti-
Correlativity.I.e. the first packet time is longer, and access weight is smaller.Wherein, in an embodiment of the present invention, the first packet time refers to
Since sending request (such as HTTP request) and terminating, to the total time-consuming for first data packet for receiving server return.
Step S108 initiates access request based on the destination address.
Fig. 2 diagrammatically illustrates the flow chart of the method for the domain name mapping of second embodiment according to the present invention.
Reference Fig. 2, the method for the domain name mapping of second embodiment according to the present invention, including:
Domain name to be visited is sent to name server by step S202.
Step S204 receives the network address that domain name server returns.
Step S206 judges the network address for whether including the return of domain name server in the mapping relations.
Step S208 will be described if not including the network address that domain name server returns in the mapping relations
The network address that name server returns is added in the mapping relations.
The network address returned due to not including name server in mapping relations, can not determine that name server returns
Whether the network address returned is network address trusty.It, can be by name server in order to ensure the safety of network access
The network address of return is added in above-mentioned mapping relations, then determines destination address by the judgement of weight.
Further, the method for domain name mapping shown in Fig. 2 further includes:Step S210, if including in the mapping relations
The network address that domain name server returns, then the network address returned to domain name server is as the target
Location.
Due to including the network address of name server return in mapping relations, illustrate that DNS, which does not occur, to be kidnapped, therefore can
With directly use name server return network address, can also avoid so the corresponding network address of domain name to be visited compared with
It needs that longer time is spent to determine weight when more, and then the longer problem of period of reservation of number can be caused.
Fig. 3 diagrammatically illustrates the flow chart of the method for the domain name mapping of third embodiment according to the present invention.
Reference Fig. 3, the method for the domain name mapping of third embodiment according to the present invention, including:
The domain name to be visited is sent to domain by step S302 if not including domain name to be visited in mapping relations
Name server.
Step S304 receives the network address that domain name server returns.
Step S306 carries out safety inspection to the network address that domain name server returns, obtains testing result.
Step S308, according to the inspection result, it is determined whether the network address hair returned based on domain name server
Play access request.
It in this embodiment, can not be according to local mapping due to not including domain name to be visited in mapping relations
Relationship determines destination address to be visited.Simultaneously as can not determine whether that DNS abduction has occurred, therefore also just can not be true
Whether the network address for determining name server return is safe, so needing to carry out the network address that name server returns
Safety inspection, and asked according to the result of safety inspection to determine whether that the network address returned based on name server is initiated to access
It asks.It preferably, can be with when safety inspection is the result shows that when the network address that name server returns is the network address of safety
Access request is initiated based on the network address that name server returns.
Method in above-described embodiment can be executed by the terminal of operation application program, and the terminal for example can be hand
The various electronic equipments such as machine, tablet computer, game machine, PDA.
Below by taking network address is IP address as an example, the technical solution of the embodiment of the present invention is described in detail:
In an embodiment of the present invention, the mapping of domain name and IP address really simulates the parsing behavior of DNS request, leads to
It crosses and the mapping of domain name and IP address is carried out just across the resolving of dns server, to improve internetworking by terminal
Can, and hijacker is allowed to have no way of doing it.When obtaining the mapping relations of domain name and IP address, if terminal is by the location information of itself
(such as IP address, national code etc.) is added in the required parameter of mapped file, and server can be according to residing for client
Position issues the IP address nearest apart from its physical location, to reduce the delay of overall network request, realizes a degree of
Server Dynamical Deployment.Meanwhile terminal can safeguard the weight of the corresponding multiple IP address of domain name, when network switching to all
IP address carries out ping operations, to safeguard weight according to the corresponding first packet time, when the network request based on any IP address
When failure, the access weight of the IP address is reduced.
Wherein, the mapping relations of domain name and IP address can be stored by mapping table, specifically be illustrated in figure 4 domain name
402 with IP address 404 be one-to-many mapping relations, i.e. 1 domain name has corresponded to 5 IP address.
Specifically, mapping table includes domain name and corresponding IP address, and the program publication packet of APP carries initial mapping
Table.As shown in figure 5, when App starts, mapping table can be loaded onto in the memory of terminal.Furthermore, it is possible to be connect by cloud control
Mouthful, it checks whether there is new mapping table update and then downloads if there is update and verify decompression, while updating local mapping table.
As shown in figure 5, DNS pre-parsed can be carried out when APP startups or network switching, i.e., domain name is sent to DNS clothes
Business device, is parsed to obtain IP address by dns server.For example, can use C function CFHostSetClient and
CFHostStartInfoResolution realizes dns resolution function.If pre-parsed success, the IP obtained to pre-parsed
Location carries out IP assessments;If pre-parsed fails, do not handle, and wait for next startup opportunity or network switching.
Wherein, IP address is assessed and health examination mainly is carried out to IP address.It specifically, can be according to IP address
The corresponding first packet time calculates weight, and the first packet time is shorter, and weight is higher.For the IP of no network response or network error
Location can be labeled as unavailable.Wherein, when domain name and IP address are one-to-many relationships, health examination is preferably carried out;Work as domain name
When with IP address being one-to-one relationship, health examination can be carried out, health examination can not also be carried out.The result note of IP assessments
Record can select the maximum IP address of weight to initiate network request in IP weight tables in IP weight tables.
When initiating network request error based on the highest IP address of weight, by IP address addition blacklist, and according to
The next IP address of the sequential selection of weight from high to low initiates network request, when all IP address it is all unavailable (such as all by
Blacklist is added) when, directly by domain name access, i.e., domain name is sent to dns server, and returned according to dns server
IP address initiates network request.
It should be noted that:If the IP address that DNS pre-parsed obtains does not complete it in IP mapping tables, in IP assessments
Before, the IP address weight is optimal.At this point it is possible to initiate network request using the IP address, IP is avoided to assess time longer shadow
Ring the usage experience of user.
If the IP address that DNS pre-parsed obtains in IP mapping tables, which is not increased in mapping table, together
Carry out health examination.
Several situations of the optimal IP of return of the embodiment of the present invention are listed below, but the embodiment of the present invention is not limited to
This:
1, DNS pre-parsed does not complete, and when the IP address in IP mapping tables does not complete assessment, returns to domain name;
2, DNS pre-parsed does not complete, and when assessment is completed in the IP address in IP mapping tables, returns to IP address at random;
3, DNS pre-parsed is completed, and when the IP address in IP mapping tables does not complete assessment, returns to DNS pre-parsed results IP;
4, DNS pre-parsed is completed, and when assessment is completed in the IP address in IP mapping tables, optimal IP is returned according to weight;
5, DNS pre-parsed is completed, and the IP address in IP mapping tables is completed assessment, but the assessment knot of all IP address
When fruit is unavailable, domain name is returned.
If domain name in the mapping table, does not return to domain name first, dns resolution request then is initiated to dns server, and will solution
Analysis result is added in weight table.
Fig. 6 diagrammatically illustrates the block diagram of the device of domain name mapping according to an embodiment of the invention.
Reference Fig. 6, the device 600 of domain name mapping according to an embodiment of the invention, including:Determination unit 602 obtains list
Member 604, processing unit 606 and communication unit 608.
Specifically, it is determined that unit 602 is for determining domain name to be visited;Acquiring unit 604 is stored in local for obtaining
Domain name and network address mapping relations;Processing unit 606 is used for according to the domain name to be visited and the mapping relations,
Determine destination address to be visited;Communication unit 608 is used to initiate access request based on the destination address.
In some embodiments of the invention, aforementioned schemes are based on, the processing unit 606 is configured to:It is waited for according to described
The domain name of access and the mapping relations obtain all-network address corresponding with the domain name to be visited;Determine the institute
There is the access weight of network address;Using the maximum network address of access weight as the destination address.
In some embodiments of the invention, aforementioned schemes are based on, the processing unit 606 is configured to:Starting every time
When application program, or when the network state of terminal changes, the access weight of the all-network address is redefined.
In some embodiments of the invention, aforementioned schemes are based on, the processing unit 606 is configured to:Calculate the institute
There is the corresponding first packet time of each network address in network address;According to each network address corresponding first packet time,
Determine the access weight of each network address.
In some embodiments of the invention, be based on aforementioned schemes, the access weight of each network address with it is described
The first packet time is at inverse correlation relationship.
In some embodiments of the invention, aforementioned schemes are based on, further include:First transmission unit (not shown),
For the domain name to be visited to be sent to name server;First receiving unit (not shown), it is described for receiving
The network address that name server returns;Judging unit (not shown), for judge in the mapping relations whether include
The network address that domain name server returns;Adding device (not shown), for not including in the mapping relations
When the network address that domain name server returns, the mapping relations are added in the network address that domain name server is returned
In.
In some embodiments of the invention, aforementioned schemes are based on, if in the mapping relations including domain name service
The network address that device returns, then the network address returned to domain name server is as the destination address.
In some embodiments of the invention, aforementioned schemes are based on, further include:Second transmission unit (not shown),
When for not including the domain name to be visited in the mapping relations, the domain name to be visited is sent to domain name service
Device;Second receiving unit (not shown), the network address for receiving the return of domain name server;The processing unit
606 are additionally operable to, and carry out safety inspection to the network address that domain name server returns, obtain testing result, and according to described
Inspection result, it is determined whether access request is initiated based on the network address that domain name server returns.
In some embodiments of the invention, aforementioned schemes are based on, further include:Third transmission unit (not shown),
For when starting application program every time, the acquisition request of the mapping relations to be sent to background server;Third receiving unit
(not shown), the mapping relations returned for receiving the background server, and it is stored in local.
In some embodiments of the invention, aforementioned schemes, the position for obtaining request bag and containing the terminal are based on
Information, the location information are used for the network address corresponding to the location information for background server distribution.
By verification, the technical solution of the above embodiment of the present invention can effectively reduce network error rate, and can drop
Low network accesses average time-consuming, while can realize 0 abduction rate.
It should be noted that although being referred to several modules or list for acting the equipment executed in above-detailed
Member, but this division is not enforceable.In fact, according to the embodiment of the present invention, it is above-described two or more
The feature and function of module either unit can embody in a module or unit.Conversely, an above-described mould
Either the feature and function of unit can be further divided into and embodied by multiple modules or unit block.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention
The technical solution of embodiment can be expressed in the form of software products, the software product can be stored in one it is non-volatile
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, touch control terminal or network equipment etc.) is executed according to embodiment of the present invention
Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes undocumented common knowledge in the art of the invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (10)
1. a kind of method of domain name mapping, which is characterized in that including:
Determine domain name to be visited;
Obtain the mapping relations for being stored in local domain name and network address;
According to the domain name to be visited and the mapping relations, destination address to be visited is determined;
Access request is initiated based on the destination address.
2. the method for domain name mapping according to claim 1, which is characterized in that according to the domain name to be visited and described
Mapping relations, the step of determining destination address to be visited include:
According to the domain name to be visited and the mapping relations, with obtaining all-network corresponding with the domain name to be visited
Location;
Determine the access weight of the all-network address;
Using the maximum network address of access weight as the destination address.
3. the method for domain name mapping according to claim 2, which is characterized in that determine the access of the all-network address
The step of weight, including:
Calculate each network address corresponding first packet time in the all-network address;
According to each network address corresponding first packet time, the access weight of each network address is determined.
4. the method for domain name mapping according to claim 3, which is characterized in that the access weight of each network address
With the first packet time at inverse correlation relationship.
5. the method for domain name mapping according to any one of claim 1 to 4, which is characterized in that further include:
The domain name to be visited is sent to name server;
Receive the network address that domain name server returns;
Judge in the mapping relations whether the network address returned comprising domain name server;
If not including the network address that domain name server returns in the mapping relations, domain name server is returned
Network address be added in the mapping relations.
6. the method for domain name mapping according to claim 5, which is characterized in that further include:
If the network address returned comprising domain name server in the mapping relations, domain name server is returned
Network address is as the destination address.
7. the method for domain name mapping according to any one of claim 1 to 4, which is characterized in that further include:
If not including the domain name to be visited in the mapping relations, the domain name to be visited is sent to domain name service
Device;
Receive the network address that domain name server returns;
Safety inspection is carried out to the network address that domain name server returns, obtains testing result;
According to the inspection result, it is determined whether initiate access request based on the network address that domain name server returns.
8. the method for domain name mapping according to any one of claim 1 to 4, which is characterized in that further include:
When starting application program every time, the acquisition request of the mapping relations is sent to background server;
The mapping relations that the background server returns are received, and are stored in local.
9. the method for domain name mapping according to claim 8, which is characterized in that the acquisition request bag contains the terminal
Location information, the location information be used for for the background server distribution corresponding to the location information network address.
10. a kind of device of domain name mapping, which is characterized in that including:
Determination unit, for determining domain name to be visited;
Acquiring unit, for obtaining the mapping relations for being stored in local domain name and network address;
Processing unit, for according to the domain name to be visited and the mapping relations, determining destination address to be visited;
Communication unit, for initiating access request based on the destination address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710253443.5A CN108737582A (en) | 2017-04-18 | 2017-04-18 | The method and device of domain name mapping |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710253443.5A CN108737582A (en) | 2017-04-18 | 2017-04-18 | The method and device of domain name mapping |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108737582A true CN108737582A (en) | 2018-11-02 |
Family
ID=63925190
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710253443.5A Pending CN108737582A (en) | 2017-04-18 | 2017-04-18 | The method and device of domain name mapping |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108737582A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110099131A (en) * | 2019-05-17 | 2019-08-06 | 网宿科技股份有限公司 | A kind of domain name analytic method and device |
CN110213382A (en) * | 2019-06-12 | 2019-09-06 | 广州欢聊网络科技有限公司 | A kind of dynamic domain name exchange method, device |
CN110224996A (en) * | 2019-05-20 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Network Access Method, device, computer equipment and the storage medium of application program |
CN110351115A (en) * | 2019-05-23 | 2019-10-18 | 中国平安财产保险股份有限公司 | Reduce method, apparatus, computer equipment and the storage medium of network access time delay |
CN110677506A (en) * | 2019-08-21 | 2020-01-10 | 中国平安财产保险股份有限公司 | Network access method, device, computer equipment and storage medium |
CN110912925A (en) * | 2019-12-04 | 2020-03-24 | 北京小米移动软件有限公司 | Method and device for detecting Domain Name System (DNS) hijacking and storage medium |
CN111314500A (en) * | 2020-02-19 | 2020-06-19 | 深圳前海微众银行股份有限公司 | Method and device for determining access address |
CN111371911A (en) * | 2018-12-26 | 2020-07-03 | 北京奇虎科技有限公司 | Domain name resolution system and method |
CN111935329A (en) * | 2020-07-16 | 2020-11-13 | 郑州悉知信息科技股份有限公司 | Domain name resolution method and device |
CN111953811A (en) * | 2020-08-07 | 2020-11-17 | 腾讯科技(深圳)有限公司 | Site access method, site registration method, device, equipment and storage medium |
CN112689013A (en) * | 2020-12-24 | 2021-04-20 | 中国农业银行股份有限公司 | System, method and device for service discovery |
CN112804371A (en) * | 2020-12-30 | 2021-05-14 | 浙江大华技术股份有限公司 | Domain name resolution processing method and device |
CN115442158A (en) * | 2022-11-07 | 2022-12-06 | 易方信息科技股份有限公司 | Network request method, system, storage medium and terminal equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090164661A1 (en) * | 2007-12-21 | 2009-06-25 | Hostway Corporation | System and method for selecting an optimal authoritive name server |
US20160080262A1 (en) * | 2014-09-15 | 2016-03-17 | Freescale Semiconductor, Inc. | Domain name collaboration service using domain name dependency server |
CN105450787A (en) * | 2014-08-20 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Network-address-mapping method, device, and system |
CN105610867A (en) * | 2016-03-01 | 2016-05-25 | 阿继琛 | DNS (Domain Name System) hijack prevention method and apparatus |
CN106161669A (en) * | 2015-04-28 | 2016-11-23 | 阿里巴巴集团控股有限公司 | A kind of quick domain name analytic method and system and terminal thereof and server |
-
2017
- 2017-04-18 CN CN201710253443.5A patent/CN108737582A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090164661A1 (en) * | 2007-12-21 | 2009-06-25 | Hostway Corporation | System and method for selecting an optimal authoritive name server |
CN105450787A (en) * | 2014-08-20 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Network-address-mapping method, device, and system |
US20160080262A1 (en) * | 2014-09-15 | 2016-03-17 | Freescale Semiconductor, Inc. | Domain name collaboration service using domain name dependency server |
CN106161669A (en) * | 2015-04-28 | 2016-11-23 | 阿里巴巴集团控股有限公司 | A kind of quick domain name analytic method and system and terminal thereof and server |
CN105610867A (en) * | 2016-03-01 | 2016-05-25 | 阿继琛 | DNS (Domain Name System) hijack prevention method and apparatus |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111371911A (en) * | 2018-12-26 | 2020-07-03 | 北京奇虎科技有限公司 | Domain name resolution system and method |
CN110099131A (en) * | 2019-05-17 | 2019-08-06 | 网宿科技股份有限公司 | A kind of domain name analytic method and device |
CN110224996A (en) * | 2019-05-20 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Network Access Method, device, computer equipment and the storage medium of application program |
CN110351115A (en) * | 2019-05-23 | 2019-10-18 | 中国平安财产保险股份有限公司 | Reduce method, apparatus, computer equipment and the storage medium of network access time delay |
CN110213382A (en) * | 2019-06-12 | 2019-09-06 | 广州欢聊网络科技有限公司 | A kind of dynamic domain name exchange method, device |
CN110677506B (en) * | 2019-08-21 | 2022-10-11 | 中国平安财产保险股份有限公司 | Network access method, device, computer equipment and storage medium |
CN110677506A (en) * | 2019-08-21 | 2020-01-10 | 中国平安财产保险股份有限公司 | Network access method, device, computer equipment and storage medium |
CN110912925A (en) * | 2019-12-04 | 2020-03-24 | 北京小米移动软件有限公司 | Method and device for detecting Domain Name System (DNS) hijacking and storage medium |
CN111314500A (en) * | 2020-02-19 | 2020-06-19 | 深圳前海微众银行股份有限公司 | Method and device for determining access address |
CN111935329A (en) * | 2020-07-16 | 2020-11-13 | 郑州悉知信息科技股份有限公司 | Domain name resolution method and device |
CN111935329B (en) * | 2020-07-16 | 2023-03-31 | 郑州悉知信息科技股份有限公司 | Domain name resolution method and device |
CN111953811A (en) * | 2020-08-07 | 2020-11-17 | 腾讯科技(深圳)有限公司 | Site access method, site registration method, device, equipment and storage medium |
CN111953811B (en) * | 2020-08-07 | 2024-02-06 | 腾讯科技(深圳)有限公司 | Site access method, site registration method, device, equipment and storage medium |
CN112689013A (en) * | 2020-12-24 | 2021-04-20 | 中国农业银行股份有限公司 | System, method and device for service discovery |
CN112804371A (en) * | 2020-12-30 | 2021-05-14 | 浙江大华技术股份有限公司 | Domain name resolution processing method and device |
CN115442158A (en) * | 2022-11-07 | 2022-12-06 | 易方信息科技股份有限公司 | Network request method, system, storage medium and terminal equipment |
CN115442158B (en) * | 2022-11-07 | 2023-03-21 | 易方信息科技股份有限公司 | Network request method, system, storage medium and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108737582A (en) | The method and device of domain name mapping | |
CN110611723B (en) | Scheduling method and device of service resources | |
CN105808399B (en) | Remote debugging method and device | |
CN105897947B (en) | The Network Access Method and device of mobile terminal | |
CN111176803B (en) | Service processing method, device, server and storage medium | |
CN110247857B (en) | Current limiting method and device | |
CN108337210A (en) | Equipment configuration method and device, system | |
CN110531990A (en) | Software installation method and device | |
CN110401644A (en) | A kind of attack guarding method and device | |
JP2017534112A (en) | Verification method and apparatus | |
Muniswamaiah et al. | IoT-based Big Data Storage Systems Challenges | |
CN104519069A (en) | Method and device for intercepting resource requests | |
CN113117339B (en) | Data processing method, device, server and storage medium | |
US20100257256A1 (en) | Method for downloading file in parallel | |
CN110830492B (en) | Method and system for mutually scheduling edge applications based on CoreDNS registration service | |
CN107733757A (en) | A kind of method and device based on third party application access Wi Fi networks | |
CN107547674A (en) | Address distribution method and device | |
US20190068635A1 (en) | Data processing method, apparatus, and system | |
CN107682271B (en) | Method and device for generating routing line | |
CN110321287A (en) | A kind of detection method of server capability, device and electronic equipment | |
CN109639533A (en) | A kind of test method, system and the terminal device of subdispatch strategy | |
CN109905486A (en) | A kind of application program identification methods of exhibiting and device | |
CN113301003B (en) | Information and data link detection method, device and storage medium | |
KR100947114B1 (en) | Method for collecting quality data of web service using dummy message | |
CN111179021B (en) | Product recommendation method, system and readable storage medium based on home device data |
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: 20181102 |