CN108769286A - Dns server configuration method and related product - Google Patents

Dns server configuration method and related product Download PDF

Info

Publication number
CN108769286A
CN108769286A CN201810516023.6A CN201810516023A CN108769286A CN 108769286 A CN108769286 A CN 108769286A CN 201810516023 A CN201810516023 A CN 201810516023A CN 108769286 A CN108769286 A CN 108769286A
Authority
CN
China
Prior art keywords
dns server
default
electronic equipment
dns
domain name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810516023.6A
Other languages
Chinese (zh)
Other versions
CN108769286B (en
Inventor
黄园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810516023.6A priority Critical patent/CN108769286B/en
Publication of CN108769286A publication Critical patent/CN108769286A/en
Application granted granted Critical
Publication of CN108769286B publication Critical patent/CN108769286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application discloses a kind of dns server configuration method and Related product, by obtaining domain name analysis system dns server collection, set dns server collection to the default DNS server of electronic equipment, dns server collection includes at least one dns server, each dns server at least one dns server sends inquiry request, the inquiry request is used to indicate corresponding dns server to electronic equipment feedback query result, receive at least one query result that at least one dns server is sent, each dns server corresponds to a query result, if at least one query result is failure, default DNS server is updated, to, it can be when there is inquiry exception in default DNS server, keep network fluency.

Description

Dns server configuration method and Related product
Technical field
This application involves fields of communication technology, and in particular to a kind of dns server configuration method and Related product.
Background technology
(such as with electronic equipment:Mobile phone, tablet computer etc.) a large amount of popularization and applications, the application that electronic equipment can be supported More and more, function is stronger and stronger, and electronic equipment develops towards diversification, personalized direction, becomes in user's life not The appliance and electronic that can lack.
Electronic equipment by dynamic host configuration protocol (dynamic host configuration protocol, DHCP) obtain or user's manual setting default DNS server can not normal response inquiry request when, it may appear that net can not be accessed Network, when inquiry exception occurs in dns server, can cause in addition, when default DNS server includes multiple dns servers Dns server query process is time-consuming longer, causes online slow, therefore, how when inquiry exception occurs in dns server, keeps The problem of network fluency, is urgently to be resolved hurrily.
Invention content
The embodiment of the present application provides a kind of dns server configuration method and Related product, can occur in dns server When inquiry is abnormal, network fluency is kept.
In a first aspect, the embodiment of the present application provides a kind of dns server configuration method, the method includes:
Domain name analysis system dns server collection is obtained, sets the dns server collection to the acquiescence DNS of electronic equipment Server, the dns server collection include at least one dns server;
Each dns server at least one dns server sends inquiry request, and the inquiry request is used for Indicate corresponding dns server to the electronic equipment feedback query result;
At least one query result that at least one dns server is sent is received, each dns server corresponds to one Query result;
If at least one query result is failure, the default DNS server is updated.
Second aspect, the embodiment of the present application provide a kind of dns server configuration device, and described device includes:
Setting unit sets the dns server collection to electronics for obtaining domain name analysis system dns server collection The default DNS server of equipment, the dns server collection include at least one dns server;
Transmission unit sends inquiry request, institute for each dns server at least one dns server It states inquiry request and is used to indicate corresponding dns server to the electronic equipment feedback query result;
Receiving unit, at least one query result sent for receiving at least one dns server, every DNS Server corresponds to a query result;
Updating unit carries out more the default DNS server if being failure at least one query result Newly.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including:Processor and memory;And one Or multiple programs, one or more of programs are stored in the memory, and be configured to be held by the processor Row, described program includes the instruction for the step some or all of as described in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readable Storage medium is for storing computer program, wherein the computer program makes computer execute such as the embodiment of the present application the The instruction of step some or all of described in one side.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein the computer program product Non-transient computer readable storage medium including storing computer program, the computer program are operable to make calculating Machine executes the step some or all of as described in the embodiment of the present application first aspect.The computer program product can be one A software installation packet.
Implement the embodiment of the present application, has the advantages that:
As can be seen that the dns server configuration method described in the embodiment of the present application and Related product, by obtaining domain Name resolution system dns server collection, sets dns server collection to the default DNS server of electronic equipment, dns server collection Including at least one dns server, each dns server at least one dns server sends inquiry request, described to look into It askes request and is used to indicate corresponding dns server to electronic equipment feedback query as a result, receiving at least one dns server transmission At least one query result, each dns server corresponds to a query result, if at least one query result is failure, Default DNS server is updated, it is thus possible to when inquiry exception occurs in default DNS server, keeps network smooth Property.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Figure 1A is the demonstration signal that a kind of electronic equipment disclosed by the embodiments of the present invention sends inquiry request to dns server Figure;
Figure 1B is a kind of flow diagram of dns server configuration method disclosed in the embodiment of the present application;
Fig. 2 is the flow diagram of another dns server configuration method disclosed in the embodiment of the present application;
Fig. 3 is the flow diagram of another dns server configuration method disclosed in the embodiment of the present application;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of dns server configuration device disclosed in the embodiment of the present application;
Fig. 6 is another structural schematic diagram of electronic equipment disclosed in the embodiment of the present application.
Specific implementation mode
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, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
Term " first ", " second " in the description and claims of this application and above-mentioned attached drawing etc. are for distinguishing Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap It includes for other intrinsic steps of these processes, method, product or equipment or unit.
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.
Electronic equipment involved by the embodiment of the present application may include various handheld devices with wireless communication function, Mobile unit, wearable device are (for example, smartwatch, wireless headset, brain wave collector, virtual reality/augmented reality are set It is standby), computing device or be connected to other processing equipments of radio modem and various forms of user equipment (user Equipment, UE), mobile station (mobile station, MS), terminal device (terminal device) etc..For convenience Description, apparatus mentioned above are referred to as electronic equipment.Certainly, the electronic equipment in the embodiment of the present application can configure outside some Accessory is enclosed, for example, screen protecting film, protective case etc..
It describes in detail below to the embodiment of the present application.
A is please referred to Fig.1, Figure 1A is that a kind of electronic equipment disclosed by the embodiments of the present invention is looked into dns server transmission domain name Ask the demonstration schematic diagram of request, wherein electronic equipment can be obtained by DHCP or user's manual setting default DNS server, writes from memory Recognize dns server and may include a dns server, may also comprise multiple dns servers, thus to the acquiescence DNS service of setting Device sends domain name mapping inquiry request can will carry domain name for example, electronic equipment will access domain name " www.baidu.com " The inquiry request of " www.baidu.com " is sent to dns server, until dns server return query result, if DNS service Device inquires the corresponding IP address of the domain name, feeds back the IP address to electronic equipment, at this point, showing that dns server can be normal Work, still, if electronic equipment setting default DNS server can not normal response DNS query request when, electronic equipment can be made Network can not be accessed, in view of the above-mentioned problems, the embodiment of the present application is after being arranged default DNS server, active detecting electronic equipment Whether the default DNS server of setting can work normally, if finding, default DNS server can not be normally carried out work, Default DNS server is updated, to keep network fluency.
Consistently with above-mentioned Figure 1A, B is please referred to Fig.1, Figure 1B is a kind of dns server configuration provided by the embodiments of the present application The flow diagram of method, the dns server configuration method described in the present embodiment, it may include following steps:
101, domain name analysis system dns server collection is obtained, sets the dns server collection to the acquiescence of electronic equipment Dns server, the dns server collection include at least one dns server.
In the embodiment of the present application, dns server collection is obtained, refers to obtaining at least one dns server automatically according to DHCP, Either receive at least one dns server electronic equipment of user's manual setting by DHCP or user's manual setting extremely It, can application programming interface (the application programming that provide of calling system after a few dns server Interface, API) set at least one dns server to default DNS server.
102, each dns server at least one dns server sends inquiry request, the inquiry request Corresponding dns server is used to indicate to the electronic equipment feedback query result.
It, can after the default DNS server that at least one dns server is electronic equipment is set in the embodiment of the present application Whether at least one dns server of active detecting can be normally carried out DNS query, and specifically, electronic equipment can be at least one DNS Each dns server sends inquiry request in server, wherein inquiry request is to indicate that corresponding dns server carries out domain name Parse the request of simultaneously feedback query result.
Optionally, for each dns server, domain name can be obtained from the DNS cache of electronic equipment, then according to the domain Name sends the inquiry request for carrying the domain name to the dns server.
Optionally, in above-mentioned steps 102, each dns server at least one dns server sends inquiry Request, specifically may include following steps:
21, determine that stability is more than at least one default domain name of predetermined level;
22, inquiry is sent at least one dns server Multi-thread synchronization according at least one default domain name Request, each default domain name correspond to a dns server.
In the embodiment of the present application, it is contemplated that may include multiple domain names, and the stabilization that different domain names has in DNS cache Property have difference, the domain name of stability difference is when the dns server by that can work normally is inquired, it may occur however that inquire As a result the case where failing, therefore, in order to ensure the accuracy of testing result, it may be determined that stability is more than at least the one of predetermined level Multiple domain names in DNS cache are carried out grade classification, wherein every in multiple domain names by a default domain name according to stability in advance The stability of one domain name, the carry out such as feedback duration, query success rate in being recorded according to the historical query in electronic equipment are true Fixed, feedback duration is smaller, and query success rate is higher, and the higher grade of stability, and the stability of each domain name is also in multiple domain names The estimation of stability of each domain name in multiple domain names can be determined according in network, for example, the domain that stability is higher ranked Name may include following at least one:Www.baidu.com, www.sina.com.cn, www.qq.com etc., so, it is ensured that The domain name carried in inquiry request has preferable stability, to ensure the accuracy of dns server testing result.
It wherein, can be more to multiple dns servers when the default DNS server of electronic equipment includes multiple dns servers Thread synchronization sends inquiry request, to shorten the duration inquired all dns servers, promote search efficiency.
Optionally, the determining stability is more than at least one default domain name of predetermined level, including:
A1, from the DNS cache of the electronic equipment, obtain stability be more than predetermined level multiple domain names in each domain The occurrence number of name within a preset period of time, obtains multiple occurrence numbers;
A2, the sequence according to the multiple occurrence number from big to small determine at least one default domain name.
In the embodiment of the present application, may include multiple stability in electronic equipment therefore can more than the domain name of predetermined level In the multiple domain names that stability is more than predetermined level, choosing electronic equipment, occurrence number is from big to small within a preset period of time Multiple domain names, domain name occurrence number is more, shows that the domain name is commonly used in user, wherein preset time period for example can be most Nearly one month, alternatively, nearest 3 months, it is detected in this way, the domain name that user is commonly used can be directed to, makes testing result more Meet the use demand of user.
It optionally, can be different default according to two for each dns server in above-mentioned at least one dns server Domain name sends the first inquiry request and the second inquiry request to the dns server, obtains the first inquiry request corresponding first and looks into Result and corresponding second query result of the second inquiry request are ask, DNS is judged according to the first query result and the second query result Whether server can work normally, if the first query result and the second query result are failure, show that dns server cannot be just Often work.
103, at least one query result that at least one dns server is sent is received, each dns server corresponds to One query result.
In the embodiment of the present application, above-mentioned query result may include two kinds of successful inquiring and inquiry failure, if query result is Success, dns server can feed back the corresponding IP address of domain name, if query result is failure, dns server can feed back comprising with The information of the corresponding error code of failure cause, for example, dns server, which can not parse the inquiry request, corresponds to code " 01 ", DNS Domain name, corresponding code " 02 " etc. is not present in server.
Wherein, if dns server inquires the corresponding IP address of domain name, the IP sent a query to electronic equipment Location shows that the dns server of default setting can work normally, terminates this flow.
If 104, at least one query result is failure, the default DNS server is updated.
Wherein, if the corresponding query result of each dns server is failure at least one dns server, show to write from memory Recognize the equal cisco unity malfunction of dns server, default DNS server can be updated, enables public dns server.
Optionally, in above-mentioned steps 104, the default DNS server is updated, it may include following steps:
Retain the dns server collection, and newly-increased at least one default public dns server is concentrated in dns server, and The dns server collection after will be newly-increased is as the default DNS server of the electronic equipment.
Wherein, it for example can be 114.114.114.114 or 8.8.8.8 to preset public dns server, by will be public Dns server is set as default DNS server altogether, it is ensured that default DNS server can work normally, to keep network smooth Property.
Optionally, in above-mentioned steps 104, the default DNS server is updated, it may include following steps:
By at least one all dns servers preset public dns server and replace the dns server concentration.
In the embodiment of the present application, it is contemplated that when the number of default DNS server is more, if there are dns server inquiry is different Often, it needs to inquire multiple dns servers successively, can just inquire public dns server, to which entire DNS query mistake can be caused Journey is longer, therefore, can be by least one all dns servers preset public dns server and replace the dns server concentration Afterwards, the dns server that cisco unity malfunction is no longer included in default DNS server can be direct when electronic equipment is inquired Public dns server is inquired, to enable the smooth online of electronic equipment.
As can be seen that the dns server configuration method described in the embodiment of the present application, by obtaining domain name analysis system Dns server collection, sets dns server collection to the default DNS server of electronic equipment, and dns server collection includes at least one A dns server, each dns server at least one dns server send inquiry request, and the inquiry request is used for Corresponding dns server is indicated to electronic equipment feedback query as a result, receiving at least one of at least one dns server transmission Query result, each dns server corresponds to a query result, if at least one query result is failure, to acquiescence DNS clothes Business device is updated, it is thus possible to when inquiry exception occurs in default DNS server, keeps network fluency.
Consistent with the abovely, referring to Fig. 2, being a kind of reality of dns server configuration method provided by the embodiments of the present application Apply a flow diagram.Dns server configuration method described in the present embodiment, it may include following steps:
201, domain name analysis system dns server collection is obtained, sets the dns server collection to the acquiescence of electronic equipment Dns server, the dns server collection include at least one dns server.
202, each dns server at least one dns server sends inquiry request, the inquiry request Corresponding dns server is used to indicate to the electronic equipment feedback query result.
203, at least one query result that at least one dns server is sent is received, each dns server corresponds to One query result.
If 204, at least one query result is failure, retain the dns server collection, and in dns server Concentrate it is newly-increased it is at least one preset public dns server, and will it is newly-increased after the dns server collection as the electronic equipment Default DNS server.
Wherein, the specific descriptions of above-mentioned steps 201-204 are referred to dns server configuration side described in above-mentioned Figure 1B Method, details are not described herein.
As can be seen that the dns server configuration method described in the embodiment of the present application, by obtaining domain name analysis system Dns server collection, sets dns server collection to the default DNS server of electronic equipment, and dns server collection includes at least one A dns server, each dns server at least one dns server send inquiry request, and the inquiry request is used for Corresponding dns server is indicated to electronic equipment feedback query as a result, receiving at least one of at least one dns server transmission Query result, each dns server corresponds to a query result, if at least one query result is failure, retains DNS service Device collection, and dns server concentrate it is newly-increased it is at least one preset public dns server, and will it is newly-increased after the dns server Collect the default DNS server as electronic equipment, it is thus possible to when inquiry exception occurs in default DNS server, keeps network Fluency.
Consistent with the abovely, referring to Fig. 3, being a kind of reality of dns server configuration method provided by the embodiments of the present application Apply a flow diagram.Dns server configuration method described in the present embodiment, it may include following steps:
301, domain name analysis system dns server collection is obtained, sets the dns server collection to the acquiescence of electronic equipment Dns server, the dns server collection include at least one dns server.
302, each dns server at least one dns server sends inquiry request, the inquiry request Corresponding dns server is used to indicate to the electronic equipment feedback query result.
303, at least one query result that at least one dns server is sent is received, each dns server corresponds to One query result.
If 304, at least one query result is failure, at least one default public dns server is replaced into institute State all dns servers of dns server concentration.
Wherein, the specific descriptions of above-mentioned steps 301-304 are referred to dns server configuration side described in above-mentioned Figure 1B Method, details are not described herein.
By obtaining domain name analysis system dns server collection, it sets dns server collection to the acquiescence DNS of electronic equipment Server, dns server collection include at least one dns server, each dns server at least one dns server Inquiry request is sent, the inquiry request is used to indicate corresponding dns server to electronic equipment feedback query as a result, receiving extremely At least one query result that a few dns server is sent, each dns server correspond to a query result, if at least one A query result is failure, by least one all DNS for presetting public dns server and replacing the dns server concentration Server keeps network fluency it is thus possible to when inquiry exception occurs in default DNS server.
Consistent with the abovely, referring to Fig. 4, Fig. 4 is a kind of electronic equipment provided by the embodiments of the present application, including:Processing Device and memory;And one or more programs, one or more of programs are stored in the memory, and by with It is set to and is executed by the processor, described program includes the instruction for executing following steps:
Domain name analysis system dns server collection is obtained, sets the dns server collection to the acquiescence DNS of electronic equipment Server, the dns server collection include at least one dns server;
Each dns server at least one dns server sends inquiry request, and the inquiry request is used for Indicate corresponding dns server to the electronic equipment feedback query result;
At least one query result that at least one dns server is sent is received, each dns server corresponds to one Query result;
If at least one query result is failure, the default DNS server is updated.
In a possible example, sent in each dns server at least one dns server In terms of inquiry request, described program further includes the instruction for executing following steps:
Determine that stability is more than at least one default domain name of predetermined level;
Inquiry is sent according at least one default domain name at least one dns server Multi-thread synchronization to ask It asks, each default domain name corresponds to a dns server.
In a possible example, it is more than at least one default domain name side of predetermined level in the determining stability Face, described program include the instruction for executing following steps:
From the DNS cache of the electronic equipment, obtains stability and be more than each domain name in multiple domain names of predetermined level Occurrence number within a preset period of time obtains multiple occurrence numbers;
According to the sequence of the multiple occurrence number from big to small, at least one default domain name is determined.
In a possible example, aspect is updated to the default DNS server described, described program is also wrapped Include the instruction for executing following steps:
Retain the dns server collection, and newly-increased at least one default public dns server is concentrated in dns server, and The dns server collection after will be newly-increased is as the default DNS server of the electronic equipment.
In a possible example, aspect is updated to the default DNS server described, described program is also wrapped Include the instruction for executing following steps:
By at least one all dns servers preset public dns server and replace the dns server concentration.
Consistent with the abovely, it is the device for implementing above-mentioned dns server configuration method below, it is specific as follows:
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of dns server configuration device provided in this embodiment.The DNS Server configuration device may include:Setting unit 501, transmission unit 502, receiving unit 503 and updating unit 504, wherein
Setting unit 501 sets the dns server collection to electricity for obtaining domain name analysis system dns server collection The default DNS server of sub- equipment, the dns server collection include at least one dns server;
Transmission unit 502 sends inquiry request for each dns server at least one dns server, The inquiry request is used to indicate corresponding dns server to the electronic equipment feedback query result;
Receiving unit 503, at least one query result sent for receiving at least one dns server are each Dns server corresponds to a query result;
Updating unit 504, if being failure at least one query result, to the default DNS server into Row update.
Optionally, each dns server described at least one dns server sends inquiry request side Face, the transmission unit 502 are specifically used for:
Determine that stability is more than at least one default domain name of predetermined level;
Inquiry is sent according at least one default domain name at least one dns server Multi-thread synchronization to ask It asks, each default domain name corresponds to a dns server.
Optionally, in terms of at least one default domain name that the determining stability is more than predetermined level, the transmission is single Member 502 is specifically used for:
From the DNS cache of the electronic equipment, obtains stability and be more than each domain name in multiple domain names of predetermined level Occurrence number within a preset period of time obtains multiple occurrence numbers;
According to the sequence of the multiple occurrence number from big to small, at least one default domain name is determined.
Optionally, aspect is updated to the default DNS server described, the updating unit 504 is specifically used for:
Retain the dns server collection, and newly-increased at least one default public dns server is concentrated in dns server, and The dns server collection after will be newly-increased is as the default DNS server of the electronic equipment.
Optionally, aspect is updated to the default DNS server described, the updating unit 504 is specifically used for:
By at least one all dns servers preset public dns server and replace the dns server concentration.
As can be seen that the dns server configuration device described in the embodiment of the present application, by obtaining domain name analysis system Dns server collection, sets dns server collection to the default DNS server of electronic equipment, and dns server collection includes at least one A dns server, each dns server at least one dns server send inquiry request, and the inquiry request is used for Corresponding dns server is indicated to electronic equipment feedback query as a result, receiving at least one of at least one dns server transmission Query result, each dns server corresponds to a query result, if at least one query result is failure, to acquiescence DNS clothes Business device is updated, it is thus possible to when inquiry exception occurs in default DNS server, keeps network fluency.
It is understood that the function of each program module of the dns server configuration device of the present embodiment can be according to above-mentioned Method specific implementation in embodiment of the method, specific implementation process are referred to the associated description of above method embodiment, this Place repeats no more.
The embodiment of the present application also provides another electronic equipments, as shown in fig. 6, for convenience of description, illustrate only with The relevant part of the embodiment of the present application, particular technique details do not disclose, please refer to the embodiment of the present application method part.The electronics Equipment can be include mobile phone, tablet computer, PDA (personal digital assistant, personal digital assistant), POS The arbitrary terminal device such as (point of sales, point-of-sale terminal), vehicle-mounted computer.
Fig. 6 shows the block diagram with the part-structure of electronic equipment provided in an embodiment of the present invention.As shown in fig. 6, electric Sub- equipment 610 may include control circuit, which may include storage and processing circuit 630.Storage and processing electricity Road 630 can be with memory, such as hard drive memory, and nonvolatile memory (such as flash memory or is used to form solid-state driving Other electrically programmable read only memories of device etc.), volatile memory (such as either statically or dynamically random access memory etc.) Deng the embodiment of the present application is not restricted.Processing circuit in storage and processing circuit 630 can be used for control electronics 610 Operating.The processing circuit can microprocessor based on one or more, microcontroller, digital signal processor, Base-Band Processing Device, power management unit, audio codec chip, application-specific integrated circuit, display-driver Ics etc. are realized.
Storage and processing circuit 630 can be used for running the software in electronic equipment 610, such as the Internet browser application journey Sequence, voice over internet protocol (voice over internet protocol, VOIP) call application program, Email Application program, media play-back application, operation system function etc..These softwares can be used for executing some control operations, example Such as, the Image Acquisition based on camera, the ambient light measurement based on ambient light sensor, based on proximity sensor close to sensing Device measures, the information display function that the positioning indicators such as status indicator lamp based on light emitting diode are realized, based on touch The touch event of sensor detects, function associated with information is shown on multiple (such as layering) displays, with execution The associated operation of wireless communication function, operation associated with collecting and generating audio signal, is pressed with collection and treatment button Other functions etc. in the associated control operation of event data and electronic equipment 610 are pressed, the embodiment of the present application does not limit System.
Electronic equipment 610 can also include input-output circuit 642.Input-output circuit 642 can be used for that electronics is made to set Outputting and inputting for standby 610 realization data, that is, allow electronic equipment 610 to allow electronic equipment from outer equipment receiving data and also 610 export data to external equipment from electronic equipment 610.Input-output circuit 642 may further include sensor 632. Sensor 632 may include ambient light sensor, the proximity sensor based on light and capacitance, and touch sensor is (for example, be based on light Touch sensor and/or capacitive touch sensors, sonic sensor, wherein touch sensor can be touching display screen A part can also be used as a touch sensor arrangement and independently use), acceleration transducer and other sensors etc..
Input-output circuit 642 can also include one or more displays, such as display 614.Display 614 can To include liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, using other aobvious Show combination one or several kinds of in the display of technology.Display 614 may include touch sensor array (that is, display 614 can be touching display screen).Touch sensor can be by transparent touch sensor electrode (such as tin indium oxide (ITO) Electrode) capacitive touch sensors that are formed of array, or can be the touch sensor formed using other touching techniques, example Such as sound wave touch-control, pressure sensible touch, resistive touch, optical touch etc., the embodiment of the present application is not restricted.
Electronic equipment 610 can also include audio component 636.Audio component 636 can be used for providing for electronic equipment 610 Audio input and output function.Audio component 36 in electronic equipment 10 may include loud speaker, microphone, buzzer, tone Generator and other components for generating and detecting sound.
Telecommunication circuit 638 can be used for providing the ability with external device communication for electronic equipment 610.Telecommunication circuit 638 May include analog- and digital- input-output interface circuit, and the radio communication circuit based on radiofrequency signal and/or optical signal. Radio communication circuit in telecommunication circuit 638 may include radio-frequency transceiver circuitry, power amplifier circuit, low noise amplification Device, switch, filter and antenna.For example, the radio communication circuit in telecommunication circuit 638 may include for passing through transmitting The circuit of near-field communication (near field communication, NFC) is supported with near-field coupling electromagnetic signal is received.Example Such as, telecommunication circuit 638 may include near-field communication aerial and near-field communication transceiver.Telecommunication circuit 638 can also include honeycomb Telephone transceiver and antenna, wireless lan transceiver circuit and antenna etc..
Electronic equipment 610 can further include battery, power management circuitry and other input-output units 640.It is defeated Enter-output unit 640 may include button, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera, hair Optical diode and other positioning indicators etc..
User can input a command for the operation of control electronics 610 by input-output circuit 642, and can be with Using the output data of input-output circuit 642 status information and other outputs from electronic equipment 610 are received to realize.
In earlier figures 1B, Fig. 2 or embodiment shown in Fig. 3, each step method flow can the structure based on the mobile phone it is real It is existing.
In earlier figures 4, embodiment shown in fig. 5, each unit function can be realized based on the structure of the mobile phone.
The embodiment of the present application also provides a kind of computer storage media, wherein computer storage media storage is for electricity The computer program that subdata exchanges, it is any as described in above method embodiment which so that computer is executed A kind of some or all of dns server configuration method step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side Some or all of any type dns server configuration method described in method embodiment step.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed 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, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, involved action and module 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, it may refer to the associated description of other embodiment.
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, for example, the unit division, it is only a kind of Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component 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 by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product When, it can be stored 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 the method for the application Step.And memory above-mentioned includes:USB flash disk, read-only memory (read-only memory, ROM), random access memory The various media that can store program code such as (random access memory, RAM), mobile hard disk, magnetic disc or CD.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer-readable memory, memory May include:Flash disk, ROM, 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; Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications 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 dns server configuration method, which is characterized in that the method includes:
Domain name analysis system dns server collection is obtained, sets the dns server collection to the acquiescence DNS service of electronic equipment Device, the dns server collection include at least one dns server;
Each dns server at least one dns server sends inquiry request, and the inquiry request is used to indicate Corresponding dns server is to the electronic equipment query result;
At least one query result that at least one dns server is sent is received, each dns server corresponds to an inquiry As a result;
If at least one query result is failure, the default DNS server is updated.
2. according to the method described in claim 1, it is characterized in that, described each at least one dns server Dns server sends inquiry request, including:
Determine that stability is more than at least one default domain name of predetermined level;
Inquiry request is sent at least one dns server Multi-thread synchronization according at least one default domain name, often One default domain name corresponds to a dns server.
3. according to the method described in claim 2, it is characterized in that, the determining stability is more than at least one of predetermined level Default domain name, including:
From the DNS cache of the electronic equipment, stability is obtained more than each domain name in multiple domain names of predetermined level pre- If the occurrence number in the period obtains multiple occurrence numbers;
According to the sequence of the multiple occurrence number from big to small, at least one default domain name is determined.
4. according to claim 1-3 any one of them methods, which is characterized in that described to be carried out to the default DNS server Update, including:
Retain the dns server collection, and newly-increased at least one default public dns server is concentrated in the dns server, and The dns server collection after will be newly-increased is as the default DNS server of the electronic equipment.
5. according to claim 1-3 any one of them methods, which is characterized in that described to be carried out to the default DNS server Update, including:
By at least one all dns servers preset public dns server and replace the dns server concentration.
6. a kind of dns server configuration device, which is characterized in that described device includes:
Setting unit sets the dns server collection to electronic equipment for obtaining domain name analysis system dns server collection Default DNS server, the dns server collection includes at least one dns server;
Transmission unit sends inquiry request for each dns server at least one dns server, described to look into It askes request and is used to indicate corresponding dns server to the electronic equipment feedback query result;
Receiving unit, at least one query result sent for receiving at least one dns server, each DNS service Device corresponds to a query result;
Updating unit is updated the default DNS server if being failure at least one query result.
7. device according to claim 6, which is characterized in that described every at least one dns server In terms of one dns server sends inquiry request, the transmission unit is specifically used for:
Determine that stability is more than at least one default domain name of predetermined level;
Inquiry request is sent at least one dns server Multi-thread synchronization according at least one default domain name, often One default domain name corresponds to a dns server.
8. the device described according to claim 6 or 7, which is characterized in that be updated to the default DNS server described Aspect, the updating unit are specifically used for:
Retain the dns server collection, and newly-increased at least one default public dns server is concentrated in dns server, and will be new Default DNS server of the dns server collection as the electronic equipment after increasing.
9. a kind of electronic equipment, which is characterized in that including:Processor and memory;And one or more programs, it is one Or multiple programs are stored in the memory, and be configured to be executed by the processor, described program includes being used for Such as the instruction of any one of claim 1-5 methods.
10. a kind of computer readable storage medium, which is characterized in that it is used to store computer program, wherein the computer Program makes computer execute method as described in any one in claim 1-5.
CN201810516023.6A 2018-05-25 2018-05-25 DNS server configuration method and related product Active CN108769286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810516023.6A CN108769286B (en) 2018-05-25 2018-05-25 DNS server configuration method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810516023.6A CN108769286B (en) 2018-05-25 2018-05-25 DNS server configuration method and related product

Publications (2)

Publication Number Publication Date
CN108769286A true CN108769286A (en) 2018-11-06
CN108769286B CN108769286B (en) 2021-10-01

Family

ID=64006557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810516023.6A Active CN108769286B (en) 2018-05-25 2018-05-25 DNS server configuration method and related product

Country Status (1)

Country Link
CN (1) CN108769286B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819060A (en) * 2018-12-15 2019-05-28 深圳壹账通智能科技有限公司 Method for detecting abnormality, device, computer installation and storage medium
WO2020088170A1 (en) * 2018-11-01 2020-05-07 Oppo广东移动通信有限公司 Domain name system configuration method and related apparatus
CN112055377A (en) * 2020-09-16 2020-12-08 威海新北洋数码科技有限公司 Self-service equipment and networking control method thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332680A1 (en) * 2009-06-24 2010-12-30 Broadcom Corporation Fault tolerance approaches for dns server failures
CN103327135A (en) * 2013-06-27 2013-09-25 贝壳网际(北京)安全技术有限公司 Domain name resolution method, device and client
CN103546590A (en) * 2013-10-18 2014-01-29 北京奇虎科技有限公司 Method and device for choosing DNS (domain name server)
CN103929330A (en) * 2014-04-22 2014-07-16 中国科学院计算技术研究所 Domain name service quality evaluation method and system
CN104883282A (en) * 2015-06-19 2015-09-02 中国互联网络信息中心 Method and system for monitoring DNS server of terminal
CN106453685A (en) * 2016-11-15 2017-02-22 中国移动通信集团江苏有限公司 Method for resolving with public DNS (Domain Name System) server, system and server
CN106888280A (en) * 2017-03-29 2017-06-23 北京奇虎科技有限公司 DNS update methods, apparatus and system
CN107682465A (en) * 2017-06-24 2018-02-09 平安科技(深圳)有限公司 Domain name mapping device, method and computer-readable recording medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332680A1 (en) * 2009-06-24 2010-12-30 Broadcom Corporation Fault tolerance approaches for dns server failures
CN103327135A (en) * 2013-06-27 2013-09-25 贝壳网际(北京)安全技术有限公司 Domain name resolution method, device and client
CN103546590A (en) * 2013-10-18 2014-01-29 北京奇虎科技有限公司 Method and device for choosing DNS (domain name server)
CN103929330A (en) * 2014-04-22 2014-07-16 中国科学院计算技术研究所 Domain name service quality evaluation method and system
CN104883282A (en) * 2015-06-19 2015-09-02 中国互联网络信息中心 Method and system for monitoring DNS server of terminal
CN106453685A (en) * 2016-11-15 2017-02-22 中国移动通信集团江苏有限公司 Method for resolving with public DNS (Domain Name System) server, system and server
CN106888280A (en) * 2017-03-29 2017-06-23 北京奇虎科技有限公司 DNS update methods, apparatus and system
CN107682465A (en) * 2017-06-24 2018-02-09 平安科技(深圳)有限公司 Domain name mapping device, method and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭毓银: "基于Packet Tracer软件的DNS服务器实验设计", 《实验技术与管理》 *

Cited By (3)

* 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
CN109819060A (en) * 2018-12-15 2019-05-28 深圳壹账通智能科技有限公司 Method for detecting abnormality, device, computer installation and storage medium
CN112055377A (en) * 2020-09-16 2020-12-08 威海新北洋数码科技有限公司 Self-service equipment and networking control method thereof

Also Published As

Publication number Publication date
CN108769286B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN106331213B (en) A kind of domain name system DNS processing method and processing device
CN108701043A (en) A kind of processing method and processing device of display
CN108769286A (en) Dns server configuration method and related product
CN109583356A (en) Fingerprint identification method and Related product
CN104794396A (en) Cross-site script vulnerability detection method and device
CN108769377A (en) Method of controlling antenna and Related product
CN108874466A (en) Control call method, electronic device and computer readable storage medium
CN108683444A (en) Data transmission method and related product
CN109274833A (en) The method of adjustment and Related product of electromagnetic interference
CN109283996A (en) Display control method and Related product
CN108541080A (en) First electronic equipment and the second electronic equipment carry out the method and Related product of Hui Lian
CN109348528A (en) Display control method and Related product
CN110427741A (en) Fingerprint identification method and Related product
CN108777741A (en) antenna switching control method and related product
CN110475020A (en) Apparatus control method and Related product
CN108769401A (en) Signal detecting method and related product
CN108573169A (en) Nearest task list display methods and device, storage medium, electronic equipment
CN107346483A (en) Setting method of alarm, device, storage medium and electronic equipment
CN104202301A (en) Numerical value transferring method and device
US20200310771A1 (en) Application Processing Method for Terminal Device, and Terminal Device
CN106055598A (en) Information display method and apparatus
CN109271312A (en) Game test method and Related product
CN106371896B (en) Virutal machine memory configuration method and device, mobile terminal
CN104898838A (en) Incoming call responding method and apparatus for handheld device
CN107577933A (en) Using login method and device, computer equipment, computer-readable recording medium

Legal Events

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