CN109561165A - Domain name system configuration method and relevant apparatus - Google Patents

Domain name system configuration method and relevant apparatus Download PDF

Info

Publication number
CN109561165A
CN109561165A CN201811296959.9A CN201811296959A CN109561165A CN 109561165 A CN109561165 A CN 109561165A CN 201811296959 A CN201811296959 A CN 201811296959A CN 109561165 A CN109561165 A CN 109561165A
Authority
CN
China
Prior art keywords
dns server
domain name
dns
replaced
parameter information
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
CN201811296959.9A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811296959.9A priority Critical patent/CN109561165A/en
Publication of CN109561165A publication Critical patent/CN109561165A/en
Priority to PCT/CN2019/108576 priority patent/WO2020088170A1/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)
  • Computer And Data Communications (AREA)

Abstract

This application discloses a kind of domain name system configuration method and relevant apparatus, are applied to electronic equipment, which comprises obtain the first domain name system DNS server set of system configuration, include at least one dns server in the first dns server set;According to the parameter information of each dns server at least one described dns server, dns server to be replaced in the first dns server set is determined;The dns server to be replaced is replaced using specified public dns server, obtains the second dns server set.The application is conducive to improve the query effect of dns server, promotes user's online experience.

Description

Domain name system configuration method and relevant apparatus
Technical field
This application involves electronic technology field more particularly to a kind of domain name system configuration methods and relevant apparatus.
Background technique
In Internet protocol (InternetProtocol, IP) network, domain name system (DomainNameSystem, DNS) be internet most critical one of infrastructure service, for numerous network applications provide essence support, major function be by The domain name for being easy to people's memory is converted with the identifiable IP address of network.Conversion between domain name and IP address is known as domain name solution Analysis, the network host for executing domain name mapping are properly termed as dns server.It, can by the query service of domain name system DNS server To find the IP address of corresponding domain name, and then pass through IP address access target website.
Summary of the invention
The embodiment of the present application provides a kind of domain name system configuration method and relevant apparatus, to improve looking into for dns server Effect is ask, user's online experience is promoted.
In a first aspect, the embodiment of the present application provides a kind of domain name system configuration method, it is applied to electronic equipment, the method Include:
The first domain name system DNS server set of system configuration is obtained, includes extremely in the first dns server set A few dns server;
According to the parameter information of each dns server at least one described dns server, the first DNS clothes are determined Dns server to be replaced in device set of being engaged in;
The dns server to be replaced is replaced using specified public dns server, obtains the second dns server collection It closes.
Second aspect, the embodiment of the present application provide a kind of domain name mapping device, are applied to electronic equipment, domain name parsing Device includes processing unit and communication unit, wherein
The processing unit, for obtaining the first domain name system DNS server of system configuration by the communication unit Gather, includes at least one dns server in the first dns server set;And for according at least one described DNS The parameter information of each dns server in server determines the dns server to be replaced in the first DNS set;And For using specified public dns server to replace the dns server to be replaced, the second dns server set is obtained.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, memory, communication interface and One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned It manages device to execute, above procedure is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as Step some or all of described in the embodiment of the present application first aspect either method.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product It can be a software installation packet.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first domain name system DNS clothes of system configuration first Be engaged in device set, include at least one dns server in the first dns server set, secondly, according to it is described at least one The parameter information of each dns server in dns server determines DNS service to be replaced in the first dns server set Device, finally, obtaining the second dns server replacing the dns server to be replaced using specified public dns server Set.Due to each dns server in the first dns server set and set of the electronic equipment by obtaining system configuration Parameter information can determine the inquiry quality of each dns server, to be replaced using specified public dns server The dns server that poor quality is inquired in set, obtains the second dns server set, using in the second dns server set Dns server carries out domain name mapping, is conducive to the query effect for improving dns server, promotes user online experience.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application or in background technique below will be implemented the application Attached drawing needed in example or background technique is illustrated.
Figure 1A is a kind of schematic diagram of the program running space of smart phone;
Figure 1B is a kind of system architecture diagram of Android system;
Fig. 2 is a kind of flow diagram of domain name system configuration method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another domain name system configuration method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another domain name system configuration method provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 6 is a kind of functional unit composition block diagram of domain name mapping device provided by the embodiments of the present application.
Specific implementation
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It is described in detail separately below.
The description and claims of this application and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
As shown in Figure 1A, the electronic equipments such as smart phone are typically provided with program running space at present, and program operation is empty Between include user's space and operating system space, wherein user's space operation have one or more application program, this or more A application program is the third party application of electronic equipment installation, and resource downloading method described in the embodiment of the present application is corresponding Software algorithm operate in user's space, operating system space motion has the operating system of electronic equipment.
The electronic equipment can specifically run the Mobile operating system iOS of Android android system, Apple Inc.'s exploitation Deng not doing unique restriction herein.As shown in Figure 1B, by taking electronic equipment operation has android system as an example, corresponding user Space includes the application layer (Applications) in the android system, and operating system space may include the Android system Application framework layer (Application Framework), system Runtime Library layer (including system Runtime Library layer in system Android Runtime when Libraries and Android are run), Linux inner core (Linux Kernel).Wherein, it applies It include all kinds of application programs directly interacted with user, or the service routine for running on backstage write by Java language on layer. For example, the program for the common basic function realized on smart phone, such as short message service (Short Messaging Service, SMS) short message, dialing, Photo Browser, calendar, game, map, WWW (World Wide Web, Web) programs such as browser and the other applications of developer's exploitation.Application framework layer provides exploitation Android A series of class libraries needed for application program can be used in reusing component, can also realize personalized extension by inheriting.System Runtime Library layer is the support of application framework, provides service for the various components in android system.System Runtime Library layer by System class libraries and Android are constituted when running.It include core library and Dalvik virtual machine two parts when Android is run.Linux Inner nuclear layer is for realizing hardware device drivers, process and memory management, network protocol stack, power management, the cores such as wireless communication Function.
Electronic equipment involved by the embodiment of the present application can be the electronic equipment for having domain name mapping ability, the electronics Equipment may include the various handheld devices with wireless communication function, mobile unit, wearable device, calculate equipment or connection It is mobile to other processing equipments of radio modem and various forms of user equipmenies (User Equipment, UE) Platform (Mobile Station, MS), terminal device (terminal device) etc..
It describes in detail below to the embodiment of the present application.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of domain name system configuration method, answer For electronic equipment.This domain name system configuration method includes:
S201, the electronic equipment obtain the first domain name system DNS server set of system configuration, the first DNS It include at least one dns server in server set.
Wherein, dns server is the server that the corresponding IP address of the domain name is found according to domain name, and domain name mapping is exactly will Domain name is converted to the process of IP address, is completed by dns server.When user's online access some websites, remember for convenience logical It is often to input domain name to realize the access of website into the corresponding IP address of the domain name, therefore, dns server will affect user's It networking speed and can surf the Internet.
Wherein, for electronic equipment when using the access internet Wireless Fidelity WIFI, system configuration has the first dns server collection It closes, for inquiring the IP address for the domain name to be accessed.The quality of the dns server of system configuration directly affects the online of user Experience, common dns server configuration method are to be specified manually by user, or get using when establishing and being connected to the network Dns server, be configured with a dns server, it is also possible to be configured with multiple dns servers.So dns server IP address is likely to be dynamically, is randomly assigned when online by network management every time, or uses specified fixing address.If these Dns server configuration error or dns server poor quality's job insecurity will lead to dns server inquiry failure, i.e. domain Name parsing failure, brings the bad experience such as surf the Internet slowly or can not surf the Internet to user.
S202, the parameter information of the electronic equipment each dns server at least one dns server according to, Determine dns server to be replaced in the first dns server set.
Wherein, after the first dns server set for obtaining system configuration, each service in the first dns server can be obtained The parameter information of device can determine dns server to be replaced in the first dns server, DNS to be replaced according to parameter information Server can be the dns server of the inquiry poor quality determined according to parameter information, that is, be easy the DNS of domain name mapping failure Server.
S203, the electronic equipment are replaced the dns server to be replaced using specified public dns server, are obtained To the second dns server set.
Wherein, after determining dns server to be replaced in the first dns server set, with specified public DNS service Device replaces dns server to be replaced, thus avoid configuring because of dns server it is improper caused by surf the Internet slow or can not surf the Internet etc. and to ask Topic.
Wherein, domestic 114NDS server, Ali's dns server, Baidu's dns server, and external Google DNS Server, OpenDNS server etc. are all public dns server, the node for the public dns server having each province throughout the country Each department, and the functions such as virus, wooden horse, swindle website programming are provided, the operation is stable, performance is good, and domain name resolution efficiency is high.
For example, user will access some websites, inputs after the target domain name of the website and domain name is carried out to target domain name Parsing, system configuration have 3 dns servers, and it includes DNS1, DNS2 and DNS3, the second DNS service that the first dns server, which is concentrated, Device set includes DNS1, DNS2 and DNS4, is the IP address that target domain name is inquired by DNS1 originally, if do not found It is inquired by DNS2, if inquired again without inquiring by DNS3, finally obtains the IP address of target domain name.Pass through this The embodiment provided is provided, DNS3 is substituted in DNS4, DNS1 inquires the IP address of target domain name, if do not found logical It crosses DNS2 inquiry and the IP address of target domain name is finally obtained, due to DNS4 if inquired again without inquiring by DNS4 The inquiry velocity block of inquiry velocity ratio DNS3 because reducing the total duration of inquiry user is surfed the Internet faster.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first domain name system DNS clothes of system configuration first Be engaged in device set, include at least one dns server in the first dns server set, secondly, according to it is described at least one The parameter information of each dns server in dns server determines DNS service to be replaced in the first dns server set Device, finally, obtaining the second dns server replacing the dns server to be replaced using specified public dns server Set.Due to each dns server in the first dns server set and set of the electronic equipment by obtaining system configuration Parameter information can determine the inquiry quality of each dns server, to be replaced using specified public dns server The dns server that poor quality is inquired in set, obtains the second dns server set, using in the second dns server set Dns server carries out domain name mapping, is conducive to the query effect for improving dns server, promotes user online experience.
In a possible example, dns server is used for according to the corresponding Internet protocol IP of the inquiry of the domain name domain name Address, parameter information include the inquiry total degree of the dns server;It is every in described at least one dns server according to The parameter information of a dns server determines dns server to be replaced in the first dns server set, comprising: determines The inquiry total degree of each dns server at least one described dns server;It determines at least one described dns server Inquiring total degree to be greater than the dns server of the first preset threshold is the dns server to be replaced.
Wherein, since dns server is used for according to the corresponding IP address of the inquiry of the domain name domain name, parameter information can be wrapped Inquiry total degree is included, i.e. dns server is inquired and carries out the total degree of domain name mapping, first determines at least one dns server Number in the inquiry of each dns server, the dns server for determining that inquiry total degree is greater than the first preset threshold is to be replaced Dns server.
As it can be seen that in this example, according to the inquiry total degree in dns server parameter information, determine that inquiry times are greater than the The dns server of one preset threshold, and the DNS service that inquiry times are greater than the first preset threshold is taken as DNS to be replaced Business device replaces the DNS service that the inquiry times in the first dns server are greater than the first preset threshold, obtains the second DNS service Device set.
In a possible example, dns server is used for according to the corresponding Internet protocol IP of the inquiry of the domain name domain name Address, parameter information include inquiry total degree and successful inquiring number;It is each in described at least one dns server according to The parameter information of dns server determines dns server to be replaced in the first dns server set, comprising: according to institute The inquiry total degree and successful inquiring number for stating each dns server at least one dns server, determine each DNS The query success rate of server;Determine that query success rate is less than the DNS of the second preset threshold at least one described dns server Server is the dns server to be replaced.
Wherein, the parameter information of dns server includes inquiry total degree and successful inquiring number, inquires total degree, that is, DNS Server is according to the total degree of inquiry of the domain name IP address, and there are successful inquirings (IP address for inquiring the domain name) and inquiry failure The case where (not inquiring the IP address of the domain name), determines that at least one DNS takes according to inquiry total degree and successful inquiring number The query success rate of each dns server in business device, and query success rate in the first dns server set is preset lower than second The dns server of threshold value is as dns server to be replaced.
As it can be seen that the inquiry obtained in the first dns server set in each dns server parameter information is total in this example Number and successful inquiring number determine the successful inquiring of each dns server according to inquiry total degree and successful inquiring number Rate, so that the dns server using query success rate less than the second preset threshold obtains second as dns server to be replaced Dns server set.
In a possible example, the parameter of each dns server in described at least one dns server according to Information determines dns server to be replaced in the first dns server set, comprising: determines at least one DNS clothes Query success rate in device of being engaged in is less than second preset threshold, and inquires the DNS clothes that total degree is greater than first preset threshold Business device is the dns server to be replaced.
Wherein, can also be by the first dns server set, query success rate is inquired less than the second preset threshold Total degree is greater than the dns server of the first preset threshold as dns server to be replaced.
As it can be seen that in this example, after determining dns server to be replaced in the first dns server set, with specified Public dns server replaces dns server to be replaced, obtains the second dns server set, at this moment each of set The inquiry total degree of dns server is less than the first preset threshold and query success rate is greater than the second preset threshold, is conducive to mention The success rate of high domain name mapping, and then promote the online experience of user.
In a possible example, the parameter of each dns server in described at least one dns server according to Information, determines dns server to be replaced in the first dns server set, comprising: determines institute according to the parameter information State the load condition of each dns server at least one dns server, wherein the parameter information includes dns server Load capacity, when the load capacity of the dns server is greater than third predetermined threshold value, the dns server is in high load condition, When the load capacity of the dns server is less than the third predetermined threshold value, the dns server is in low-load state;Really It is the DNS service to be replaced that load condition, which is the dns server of high load condition, at least one fixed described dns server Device.
Wherein, dns server may be presently processing the request of the domain name mapping from multiple electronic equipments, because, root The load condition that can determine each dns server at least one dns server according to parameter information, in the load of dns server When amount is greater than third predetermined threshold value, that is, the domain name mapping number of requests being presently processing is greater than third predetermined threshold value, then DNS takes Business device is in high load condition;When the load capacity of dns server is less than third predetermined threshold value, that is, the domain name that is presently processing Analysis request quantity is less than third predetermined threshold value, then dns server is in low-load state.
As it can be seen that, according to the load condition of each dns server in the first dns server set, being determined at least in this example It is dns server to be replaced that clothes state, which is high load dns server, in one dns server, passes through removal high load Dns server obtains the second dns server set, handles domain name solution by the dns server in the second dns server set Analysis request is conducive to improve treatment effeciency.
In a possible example, before the first domain name system DNS server set for obtaining system configuration, institute State method further include: detect domain name mapping request when, judge domain name analysis request carry target domain name whether be Home domain name;When detecting the target domain name is not home domain name, the first domain name system DNS for obtaining system configuration is determined Server set.
Wherein, when detecting domain name mapping request, judge whether the target domain name that domain name mapping request carries is local Domain name then only needs to inquire mesh in the local database if it is home domain name since parsed domain name can cache The IP address for marking domain name does not need to go to search again by dns server.If not home domain name, then need to take by DNS Business device carries out the IP address that domain name mapping gets target domain name.
As it can be seen that when detecting domain name mapping request, and the target domain name that domain name mapping request carries is not in this example When being home domain name, determines and execute domain name system configuration method provided by the embodiments of the present application, so as to obtain system configuration First domain name system DNS server set.
In a possible example, it is described obtain the second dns server set after, the method also includes: examining When measuring domain name mapping request, domain name analysis request is parsed by the dns server in the second dns server set The target domain name of carrying obtains the IP address of the target domain name.
Wherein, the first dns server set is being updated, after obtaining the second dns server set, if detecting domain name solution Analysis request is then handled domain name mapping request by the dns server in the second dns server set, inquires target domain name Corresponding IP address.
As it can be seen that being replaced by using specified public dns server in the first dns server set in this example Part dns server pass through the dns server in the second dns server set to obtain the second dns server set It is requested to handle domain name mapping, is conducive to the networking speed for improving user, promotes the online experience of user.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of domain name provided by the embodiments of the present application The flow diagram of ' In System Reconfiguration Method is applied to electronic equipment.As shown, this domain name system configuration method includes:
S301, the electronic equipment obtain the first domain name system DNS server set of system configuration, the first DNS It include at least one dns server in server set.
S302, the inquiry total degree of the electronic equipment each dns server at least one dns server according to With successful inquiring number, the query success rate of each dns server is determined.
S303, the electronic equipment determine that query success rate is less than the second default threshold at least one described dns server The dns server of value is the dns server to be replaced.
S304, the electronic equipment are replaced the dns server to be replaced using specified public dns server, are obtained To the second dns server set.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first domain name system DNS clothes of system configuration first Be engaged in device set, include at least one dns server in the first dns server set, secondly, according to it is described at least one The parameter information of each dns server in dns server determines DNS service to be replaced in the first dns server set Device, finally, obtaining the second dns server replacing the dns server to be replaced using specified public dns server Set.Due to each dns server in the first dns server set and set of the electronic equipment by obtaining system configuration Parameter information can determine the inquiry quality of each dns server, to be replaced using specified public dns server The dns server that poor quality is inquired in set, obtains the second dns server set, using in the second dns server set Dns server carries out domain name mapping, is conducive to the query effect for improving dns server, promotes user online experience.
In addition, obtaining the inquiry total degree in the first dns server set in each dns server parameter information and inquiry Number of success determines the query success rate of each dns server according to inquiry total degree and successful inquiring number, to will look into Dns server of the success rate less than the second preset threshold is ask as dns server to be replaced, obtains the second dns server collection It closes
It is consistent with described Fig. 2, embodiment shown in Fig. 3, referring to Fig. 4, Fig. 4 is one kind provided by the embodiments of the present application The flow diagram of domain name system configuration method is applied to electronic equipment.As shown, this domain name system configuration method includes:
S401, the electronic equipment obtain the first domain name system DNS server set of system configuration, the first DNS It include at least one dns server in server set.
S402, the inquiry total degree of the electronic equipment each dns server at least one dns server according to With successful inquiring number, the query success rate of each dns server is determined.
S403, the electronic equipment determine that query success rate is less than the second default threshold at least one described dns server The dns server of value is the dns server to be replaced.
S404, the electronic equipment are replaced the dns server to be replaced using specified public dns server, are obtained To the second dns server set.
S405, the electronic equipment is when detecting domain name mapping request, by the second dns server set Dns server parses the target domain name that domain name analysis request carries, and obtains the IP address of the target domain name.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first domain name system DNS clothes of system configuration first Be engaged in device set, include at least one dns server in the first dns server set, secondly, according to it is described at least one The parameter information of each dns server in dns server determines DNS service to be replaced in the first dns server set Device, finally, obtaining the second dns server replacing the dns server to be replaced using specified public dns server Set.Due to each dns server in the first dns server set and set of the electronic equipment by obtaining system configuration Parameter information can determine the inquiry quality of each dns server, to be replaced using specified public dns server The dns server that poor quality is inquired in set, obtains the second dns server set, using in the second dns server set Dns server carries out domain name mapping, is conducive to the query effect for improving dns server, promotes user online experience.
In addition, obtaining the inquiry total degree in the first dns server set in each dns server parameter information and inquiry Number of success determines the query success rate of each dns server according to inquiry total degree and successful inquiring number, to will look into Dns server of the success rate less than the second preset threshold is ask as dns server to be replaced, obtains the second dns server collection It closes
In addition, replacing the part DNS in the first dns server set by using specified public dns server Server handles domain name by the dns server in the second dns server set to obtain the second dns server set Analysis request is conducive to the networking speed for improving user, promotes the online experience of user.
It is consistent with described Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application The structural schematic diagram of a kind of electronic equipment 500, the electronic equipment 500 operation have one or more application program and operating system, As shown, the electronic equipment 500 includes processor 510, memory 520, communication interface 530 and one or more programs 521, wherein one or more of programs 521 are stored in the memory 520, and are configured by the processor 510 execute, and one or more of programs 521 include the instruction for executing following steps;
The first domain name system DNS server set of system configuration is obtained, includes extremely in the first dns server set A few dns server;
According to the parameter information of each dns server at least one described dns server, the first DNS clothes are determined Dns server to be replaced in device set of being engaged in;
The dns server to be replaced is replaced using specified public dns server, obtains the second dns server collection It closes.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first domain name system DNS clothes of system configuration first Be engaged in device set, include at least one dns server in the first dns server set, secondly, according to it is described at least one The parameter information of each dns server in dns server determines DNS service to be replaced in the first dns server set Device, finally, obtaining the second dns server replacing the dns server to be replaced using specified public dns server Set.Due to each dns server in the first dns server set and set of the electronic equipment by obtaining system configuration Parameter information can determine the inquiry quality of each dns server, to be replaced using specified public dns server The dns server that poor quality is inquired in set, obtains the second dns server set, using in the second dns server set Dns server carries out domain name mapping, is conducive to the query effect for improving dns server, promotes user online experience.
In a possible example, dns server is used for according to the corresponding Internet protocol IP of the inquiry of the domain name domain name Address, parameter information include the inquiry total degree of the dns server;In described at least one dns server according to The parameter information of each dns server, it is described in terms of determining dns server to be replaced in the first dns server set Instruction in program is specifically used for executing following operation: each dns server looks at least one determining described dns server Ask total degree;Determine that inquiring total degree at least one described dns server to be greater than the dns server of the first preset threshold is institute State dns server to be replaced.
In a possible example, dns server is used for according to the corresponding Internet protocol IP of the inquiry of the domain name domain name Address, parameter information include inquiry total degree and successful inquiring number;It is every in described at least one dns server according to The parameter information of a dns server, in terms of determining dns server to be replaced in the first dns server set, the journey Instruction in sequence is specifically used for executing following operation: according to the inquiry of each dns server at least one described dns server Total degree and successful inquiring number determine the query success rate of each dns server;Determine at least one DNS clothes Query success rate is the dns server to be replaced less than the dns server of the second preset threshold in business device.
In a possible example, the ginseng of each dns server in described at least one dns server according to Number information, in terms of determining dns server to be replaced in the first dns server set, the instruction in described program is specific For performing the following operations: determine that query success rate is less than second preset threshold at least one described dns server, and Inquiring total degree to be greater than the dns server of first preset threshold is the dns server to be replaced.
In a possible example, the ginseng of each dns server in described at least one dns server according to Number information, in terms of determining dns server to be replaced in the first dns server set, the instruction in described program is specific For performing the following operations: the negative of each dns server at least one described dns server is determined according to the parameter information Load state, wherein the parameter information includes the load capacity of dns server, is greater than third in the load capacity of the dns server When preset threshold, the dns server is in high load condition, and it is pre- to be less than the third in the load capacity of the dns server If when threshold value, the dns server is in low-load state;Determine that load condition is height at least one described dns server The dns server of load condition is the dns server to be replaced.
In a possible example, before the first domain name system DNS server set for obtaining system configuration, institute It states the instruction in program to be specifically used for executing following operation: when detecting domain name mapping request, judging that domain name parsing is asked Whether the target domain name for asking carrying is home domain name;When detecting the target domain name is not home domain name, determines and obtain system The the first domain name system DNS server set under unified central planning set.
In a possible example, it is described obtain the second dns server set after, the instruction in described program is specific For performing the following operations: when detecting domain name mapping request, passing through the DNS service in the second dns server set Device parses the target domain name that domain name analysis request carries, and obtains the IP address of the target domain name.
Above-described embodiment is mainly described the scheme of the embodiment of the present application from the angle of method side implementation procedure.It can With understanding, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or soft for electronic equipment Part module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully Unexpectedly it is executed in a manner of hardware or computer software driving hardware, the specific application and design constraint depending on technical solution Condition.Professional technician can specifically realize described function to each using distinct methods, but this It realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to the method example to electronic equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.The integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
Fig. 6 is the functional unit composition block diagram of domain name mapping device 600 involved in the embodiment of the present application.The domain name solution Analysis apparatus 600 is applied to electronic equipment, including processing unit 601 and communication unit 602, wherein
The processing unit 601, for obtaining the first domain name system DNS of system configuration by the communication unit 602 Server set includes at least one dns server in the first dns server set;And it is described at least for basis The parameter information of each dns server in one dns server determines the DNS service to be replaced in the first DNS set Device;And for using specified public dns server to replace the dns server to be replaced, obtain the second dns server Set.
Wherein, domain name resolver 600 can also include storage unit 603, for storing the program of electronic equipment Code and data.The processing unit 601 can be processor, and the communication unit 602 can be touching display screen or receipts Device is sent out, storage unit 603 can be memory.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first domain name system DNS clothes of system configuration first Be engaged in device set, include at least one dns server in the first dns server set, secondly, according to it is described at least one The parameter information of each dns server in dns server determines DNS service to be replaced in the first dns server set Device, finally, obtaining the second dns server replacing the dns server to be replaced using specified public dns server Set.Due to each dns server in the first dns server set and set of the electronic equipment by obtaining system configuration Parameter information can determine the inquiry quality of each dns server, to be replaced using specified public dns server The dns server that poor quality is inquired in set, obtains the second dns server set, using in the second dns server set Dns server carries out domain name mapping, is conducive to the query effect for improving dns server, promotes user online experience.
In a possible example, dns server is used for according to the corresponding Internet protocol IP of the inquiry of the domain name domain name Address, parameter information include the inquiry total degree of the dns server;In described at least one dns server according to The parameter information of each dns server, it is described in terms of determining dns server to be replaced in the first dns server set Processing unit 601 is specifically used for: determining the inquiry total degree of each dns server at least one described dns server;And For determine inquiry total degree at least one described dns server be greater than the first preset threshold dns server be it is described to The dns server of replacement.
In a possible example, dns server is used for according to the corresponding Internet protocol IP of the inquiry of the domain name domain name Address, parameter information include inquiry total degree and successful inquiring number;It is every in described at least one dns server according to The parameter information of a dns server, in terms of determining dns server to be replaced in the first dns server set, the place Reason unit 601 is specifically used for: according to the inquiry total degree of each dns server and inquiry at least one described dns server Number of success determines the query success rate of each dns server;And for determining at least one described dns server Middle query success rate is the dns server to be replaced less than the dns server of the second preset threshold.
In a possible example, the ginseng of each dns server in described at least one dns server according to Number information, in terms of determining dns server to be replaced in the first dns server set, the processing unit 601 is specifically used In: it determines that query success rate is less than second preset threshold at least one described dns server, and inquires total degree and be greater than The dns server of first preset threshold is the dns server to be replaced.
In a possible example, the ginseng of each dns server in described at least one dns server according to Number information, in terms of determining dns server to be replaced in the first dns server set, the processing unit 601 is specifically used In: the load condition of each dns server at least one described dns server is determined according to the parameter information, wherein institute The load capacity that parameter information includes dns server is stated, when the load capacity of the dns server is greater than third predetermined threshold value, institute It states dns server and is in high load condition, it is described when the load capacity of the dns server is less than the third predetermined threshold value Dns server is in low-load state;And load condition is high load shape at least one described dns server for determining The dns server of state is the dns server to be replaced.
In a possible example, before the first domain name system DNS server set for obtaining system configuration, institute It states processing unit 601 to be specifically used for: when detecting domain name mapping request, judging the aiming field that domain name analysis request carries Whether name is home domain name;And for determining and obtaining system configuration when detecting the target domain name is not home domain name The first domain name system DNS server set.
In a possible example, it is described obtain the second dns server set after, the processing unit 601 is specific For: when detecting domain name mapping request, the domain is parsed by the dns server in the second dns server set The target domain name that name analysis request carries, obtains the IP address of the target domain name.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment Some or all of method step, above-mentioned computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side Some or all of either record method step in method embodiment.The computer program product can be a software installation Packet, above-mentioned computer includes electronic equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of domain name system configuration method, which is characterized in that be applied to electronic equipment, which comprises
The first domain name system DNS server set of system configuration is obtained, includes at least one in the first dns server set A dns server;
According to the parameter information of each dns server at least one described dns server, first dns server is determined Dns server to be replaced in set;
The dns server to be replaced is replaced using specified public dns server, obtains the second dns server set.
2. the method according to claim 1, wherein dns server is used to be corresponded to according to the inquiry of the domain name domain name Internet protocol address, parameter information includes the inquiry total degree of the dns server;It is described according at least one The parameter information of each dns server in dns server determines DNS service to be replaced in the first dns server set Device, comprising:
Determine the inquiry total degree of each dns server at least one described dns server;
Determine inquiry total degree at least one described dns server be greater than the first preset threshold dns server be it is described to The dns server of replacement.
3. the method according to claim 1, wherein dns server is used to be corresponded to according to the inquiry of the domain name domain name Internet protocol address, parameter information includes inquiry total degree and successful inquiring number;It is described according at least one The parameter information of each dns server in dns server determines DNS service to be replaced in the first dns server set Device, comprising:
According to the inquiry total degree and successful inquiring number of each dns server at least one described dns server, institute is determined State the query success rate of each dns server;
Determine at least one described dns server query success rate less than the dns server of the second preset threshold be it is described to The dns server of replacement.
4. according to the method in claim 2 or 3, which is characterized in that every in described at least one dns server according to The parameter information of a dns server determines dns server to be replaced in the first dns server set, comprising:
Determine that query success rate is less than second preset threshold at least one described dns server, and it is big to inquire total degree In first preset threshold dns server be the dns server to be replaced.
5. the method according to claim 1, wherein each in described at least one dns server according to The parameter information of dns server determines dns server to be replaced in the first dns server set, comprising:
The load condition of each dns server at least one described dns server is determined according to the parameter information, wherein The parameter information includes the load capacity of dns server, when the load capacity of the dns server is greater than third predetermined threshold value, The dns server is in high load condition, when the load capacity of the dns server is less than the third predetermined threshold value, institute It states dns server and is in low-load state;
It is described to be replaced that load condition, which is the dns server of high load condition, at least one dns server described in determining Dns server.
6. method described in -5 any one according to claim 1, which is characterized in that first domain name for obtaining system configuration Before system dns server set, the method also includes:
When detecting domain name mapping request, whether the target domain name for judging that domain name analysis request carries is home domain name;
When detecting the target domain name is not home domain name, the first domain name system DNS service for obtaining system configuration is determined Device set.
7. method described in -5 any one according to claim 1, which is characterized in that described to obtain the second dns server set Later, the method also includes:
When detecting domain name mapping request, domain name is parsed by the dns server in the second dns server set The target domain name that analysis request carries, obtains the IP address of the target domain name.
8. a kind of domain name mapping device, which is characterized in that be applied to electronic equipment, domain name resolver includes processing unit And communication unit, wherein
The processing unit, for obtaining the first domain name system DNS server set of system configuration by the communication unit, It include at least one dns server in the first dns server set;And for according at least one described DNS service The parameter information of each dns server in device determines the dns server to be replaced in the first DNS set;And it is used for The dns server to be replaced is replaced using specified public dns server, obtains the second dns server set.
9. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet Include the instruction for executing the step in the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1 to 7.
CN201811296959.9A 2018-11-01 2018-11-01 Domain name system configuration method and relevant apparatus Pending CN109561165A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811296959.9A CN109561165A (en) 2018-11-01 2018-11-01 Domain name system configuration method and relevant apparatus
PCT/CN2019/108576 WO2020088170A1 (en) 2018-11-01 2019-09-27 Domain name system configuration method and related apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811296959.9A CN109561165A (en) 2018-11-01 2018-11-01 Domain name system configuration method and relevant apparatus

Publications (1)

Publication Number Publication Date
CN109561165A true CN109561165A (en) 2019-04-02

Family

ID=65865734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811296959.9A Pending CN109561165A (en) 2018-11-01 2018-11-01 Domain name system configuration method and relevant apparatus

Country Status (2)

Country Link
CN (1) CN109561165A (en)
WO (1) WO2020088170A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110570535A (en) * 2019-07-30 2019-12-13 深圳市天彦通信股份有限公司 Card punching management method and related device
CN111092963A (en) * 2019-12-02 2020-05-01 珠海市魅族科技有限公司 Domain name service response method
WO2020088170A1 (en) * 2018-11-01 2020-05-07 Oppo广东移动通信有限公司 Domain name system configuration method and related apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113904849B (en) * 2021-10-09 2024-01-09 深圳技德智能科技研究院有限公司 Access network method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175097A (en) * 2006-10-31 2008-05-07 阿尔卡特朗讯公司 Resolution of flexible address schemes for IMS services
CN101924776A (en) * 2010-09-16 2010-12-22 网宿科技股份有限公司 Method and system for domain name resolution server to resist flooding attacks of DNS (Domain Name System) request reports
CN103327135A (en) * 2013-06-27 2013-09-25 贝壳网际(北京)安全技术有限公司 Domain name resolution method, device and client
CN103561121A (en) * 2013-10-11 2014-02-05 北京奇虎科技有限公司 Method and device for analyzing DNS and browser
CN104883282A (en) * 2015-06-19 2015-09-02 中国互联网络信息中心 Method and system for monitoring DNS server of terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512672B2 (en) * 2004-03-19 2009-03-31 Gigaset Communications Gmbh Method and system for domain name resolution in a communications system
CN106060131B (en) * 2016-05-26 2019-10-11 新华三技术有限公司 A kind of method and apparatus for distributing dns server
CN106533762B (en) * 2016-11-17 2020-09-08 贵州白山云科技股份有限公司 Equipment switching method and equipment switching device
CN108769286B (en) * 2018-05-25 2021-10-01 Oppo(重庆)智能科技有限公司 DNS server configuration method and related product
CN109561165A (en) * 2018-11-01 2019-04-02 Oppo广东移动通信有限公司 Domain name system configuration method and relevant apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175097A (en) * 2006-10-31 2008-05-07 阿尔卡特朗讯公司 Resolution of flexible address schemes for IMS services
CN101924776A (en) * 2010-09-16 2010-12-22 网宿科技股份有限公司 Method and system for domain name resolution server to resist flooding attacks of DNS (Domain Name System) request reports
CN103327135A (en) * 2013-06-27 2013-09-25 贝壳网际(北京)安全技术有限公司 Domain name resolution method, device and client
CN103561121A (en) * 2013-10-11 2014-02-05 北京奇虎科技有限公司 Method and device for analyzing DNS and browser
CN104883282A (en) * 2015-06-19 2015-09-02 中国互联网络信息中心 Method and system for monitoring DNS server of terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020088170A1 (en) * 2018-11-01 2020-05-07 Oppo广东移动通信有限公司 Domain name system configuration method and related apparatus
CN110570535A (en) * 2019-07-30 2019-12-13 深圳市天彦通信股份有限公司 Card punching management method and related device
CN110570535B (en) * 2019-07-30 2021-12-31 深圳市天彦通信股份有限公司 Card punching management method and related device
CN111092963A (en) * 2019-12-02 2020-05-01 珠海市魅族科技有限公司 Domain name service response method
CN111092963B (en) * 2019-12-02 2024-03-22 珠海市魅族科技有限公司 Domain name service response method

Also Published As

Publication number Publication date
WO2020088170A1 (en) 2020-05-07

Similar Documents

Publication Publication Date Title
US11258667B2 (en) Network management method and related device
CN109561165A (en) Domain name system configuration method and relevant apparatus
US10257115B2 (en) Cloud-based service resource provisioning based on network characteristics
JP6626211B2 (en) Method and apparatus for processing short link and short link server
CN103685583B (en) A kind of method and system of domain name mapping
CN110795029B (en) Cloud hard disk management method, device, server and medium
US20210036922A1 (en) Detect impact of network maintenance in software defined infrastructure
US11237888B2 (en) Message processing method and system, storage medium and electronic device
CN108401037A (en) User terminal and the binding method of equipment, device and system
CN108156274A (en) Equipment is made to obtain the method and device of domain name mapping result in a kind of VPN network
CN110808857A (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
CN113965543B (en) Access method, device and storage medium of application server
CN111064804A (en) Network access method and device
CN108243265A (en) A kind of dns resolution processing method and processing device
CN108124021A (en) Internet protocol IP address obtains, the method, apparatus and system of website visiting
US20060117321A1 (en) Interface for application components
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN114365467B (en) Methods, apparatuses, and computer readable media for determining 3GPP FLUS reception capability
CN115225606A (en) Domain name access method and system of cross-network protocol of container cloud platform
CN106790323B (en) Resource discovery method and device
CN102843424B (en) A kind of heterogeneous distributed cloud computing system and method
CN112217852A (en) Platform-as-a-service system and method based on workflow engine
CN110213394A (en) A kind of configuration method of dns server, configuration device and network system
CN104869182A (en) Domain name resolution method and device
CN114430379B (en) Method, apparatus and computer readable medium for discovering network resources

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: 20190402