CN110213394A - A kind of configuration method of dns server, configuration device and network system - Google Patents
A kind of configuration method of dns server, configuration device and network system Download PDFInfo
- Publication number
- CN110213394A CN110213394A CN201811630674.4A CN201811630674A CN110213394A CN 110213394 A CN110213394 A CN 110213394A CN 201811630674 A CN201811630674 A CN 201811630674A CN 110213394 A CN110213394 A CN 110213394A
- Authority
- CN
- China
- Prior art keywords
- dns server
- domain name
- visited
- list
- dns
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3015—Name registration, generation or assignment
- H04L61/3025—Domain name generation or assignment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention relates to a kind of configuration method of dns server, configuration device and network systems.The configuration method of the dns server includes: to send domain name to be visited to the first dns server;Judge that the domain name to be visited whether there is in the first list;If the domain name to be visited is present in first list, second dns server corresponding with the domain name to be visited is judged whether there is;Second dns server corresponding with the domain name to be visited if it exists, then whether judgement is succeeded by second dns server access domain name;If accessing domain name success by second dns server, second dns server is removed into first list.Configuration method, configuration device and the network system of dns server of the invention improve the configuration success rate of dns server, to substantially increase the performance of equipment and the experience of user by establishing the first list.
Description
Technical field
The present invention relates to IP (Internet Protocol, Internet protocol) network fields, more particularly to one kind.
Background technique
With the rapid development of Internet technology, IP (Internet Protocol, Internet protocol) network is also achieved
Very big progress, in an ip network, domain name system (Domain Name System, DNS) become mostly important on internet
One of infrastructure service.DNS system provides basic service for numerous network applications, and major function is exactly to be readily able to people's note
Domain name (Domain Name) and the IP address identifiable in network recalled are converted.Domain is converted between domain name and IP address
Name parsing, the equipment for executing domain name mapping are referred to as dns server.It, can be with by the query service of domain name system DNS server
The entrance of required website or resource is found, and then is accessed to website or resource.
Usual DNS system is divided into recursion (Recursive) and iterative (Iterative) two there are two types of principle is inquired
Kind.Wherein, recursion inquiry is to go to ask by DNS proxy, and the method asked is to use Interative mode, and the latter is direct by the machine
Do the inquiry of Interactive formula.It can be seen from upper example during our general inquiry titles, actually both are looked into
Inquiry mode all be interaction there is.Recursion (Recursive): query pattern from DNS client to DNS Server, it is this
Mode is that the package to be inquired is seen off and asked, waits for the correct response of correct name, and this mode only handles response and returns
Package whether be correctly to respond or that be the error messages that can not find the title.
Iterative (Iterative): the query pattern between DNS Server, by institute on the end Client or DNS Server
It sending out and asks, this mode send package to go out to ask, the data back that responds is not necessarily last correct name location, but
It is not response as noted earlier is error messages back, it is partial information that he, which responds back, is told in your institute's nslookup
The address information of the name server in next stage domain, then again to the inquiry title to be parsed is gone on this name server, instead
Double action is made until finding final information.
And terminal network side after PDN connection activation can generally give terminal multiple dns server address, terminal default
It will use dns server of first dns server as highest priority, terminal successfully passes the dns server and gets
After the IP address of certain domain name, other subsequent low priority dns servers would not be reattempted.
Since terminal blindly trusts the IP address that dns server returns, if first dns server returns to end
After holding a wrong IP address, the terminal access IP address is caused to go wrong.
Therefore, how effectively avoiding terminal from only attempting, network caused by a dns server is inaccessible to ask
Topic just becomes one of those skilled in the art's urgent problem to be solved.
Summary of the invention
The object of the present invention is to provide a kind of configuration method of dns server, the configuration device of dns server and network systems
System, to improve the performance of dns server.
To achieve the above object, the present invention provides a kind of configuration method of dns server, comprising: sends domain name to be visited
To the first dns server;Judge that the domain name to be visited whether there is in the first list;If the domain name to be visited is present in
In first list, then second dns server corresponding with the domain name to be visited is judged whether there is;If it exists with it is described
Corresponding second dns server of domain name to be visited, then whether judgement is succeeded by second dns server access domain name;If
Domain name success is accessed by second dns server, then second dns server is removed into first list.
In certain embodiments, the configuration method of the dns server further include:
Second dns server corresponding with the domain name to be visited if it does not exist, then judgement passes through first DNS service
Whether device access domain name succeeds;
If accessing domain name success by first dns server, the domain name to be visited is established in the second list
With the corresponding relationship of first dns server.
In certain embodiments, described that the domain name to be visited and first dns server are established in the second list
Corresponding relationship the step of include:
Judge in second list with the presence or absence of the domain name to be visited;
If there are the domain name to be visited in second list, by first dns server with it is described to be visited
Domain name establishes corresponding relationship;
If the domain name to be visited is not present in second list, created in second list described to be visited
Domain name, and first dns server and newly-built domain name to be visited are established into corresponding relationship.
In certain embodiments, the configuration method of the dns server further include: moved by second dns server
After first list, the domain name to be visited pass corresponding with second dns server is established in the second list
System.
In certain embodiments, the configuration method of the dns server further include:
If the domain name to be visited is not present in first list, judge the domain name to be visited whether there is in
It is in the second list;
If the domain name to be visited is present in second list, by the second list with the domain name to be visited
Corresponding dns server accesses.
The present invention also provides a kind of configuration devices of dns server, comprising: sending module, for sending domain name to be visited
To the first dns server;First judgment module, for judging that the domain name to be visited whether there is in the first list;Second
Judgment module, for when the domain name to be visited is present in first list, judge whether there is with it is described to be visited
Corresponding second dns server of domain name;Third judgment module, for when there is twoth DNS corresponding with the domain name to be visited
When server, judgement accesses whether domain name succeeds by second dns server;Remove module, for when passing through described the
When two dns servers access domain name success, second dns server is removed into first list.
In certain embodiments, the configuration device of the dns server further include:
4th judgment module, for when there is no second dns server corresponding with the domain name to be visited, judgement to be logical
Cross whether the first dns server access domain name succeeds;
Corresponding relationship processing module is used for when accessing domain name success by first dns server, in the second list
The middle corresponding relationship for establishing the domain name to be visited Yu first dns server.
In certain embodiments, the corresponding relationship processing module is also used to second dns server removing institute
After stating the first list, the corresponding relationship of the domain name to be visited Yu second dns server is established in the second list.
In certain embodiments, the configuration device of the dns server further include:
5th judgment module, for being not present in first list when the domain name to be visited, judgement is described wait visit
Ask that domain name whether there is in being in the second list;
Domain name access module, for being present in second list when the domain name to be visited, by the second list
Dns server corresponding with the domain name to be visited accesses.
The present invention also provides a kind of network systems, including terminal, dns server and such as aforementioned described in any item DNS
The configuration device of server.
In conclusion the configuration method of dns server of the present invention, the configuration device of dns server and network system
System, compared with prior art, has the advantage that
In the configuration method of dns server of the invention, by establishing the first list, to inaccessible domain name and accordingly
Dns server recorded, when request access to be recorded in inaccessible domain name when, traversed by the first list corresponding
Dns server in this way, substantially increases DNS service to be confirmed whether that there are addressable dns servers
The probability of device configuration successful, and then improve the performance of dns server and the experience of user.
In addition, by establishing the second list, addressable domain name is carried out with dns server it is corresponding, thus access second
When domain name in list, it can be directly configured to dns server corresponding with the domain name, to improve the configuration of dns server
Efficiency, while also improving the experience of user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description simply to be introduced, it is clear that, the accompanying drawings in the following description is the present invention
Some embodiments for those of ordinary skill in the art without any creative labor, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of the first embodiment of the configuration method of dns server of the invention;
Fig. 2 is the flow diagram of second of embodiment of the configuration method of dns server of the invention;
Fig. 3 is the flow diagram of the third embodiment of the configuration method of dns server of the invention;
Fig. 4 is the flow diagram of the 4th kind of embodiment of the configuration method of dns server of the invention;
Fig. 5 is the structural schematic diagram of the first embodiment of the configuration device of dns server of the invention;
Fig. 6 is the structural schematic diagram of second of embodiment of the configuration device of dns server of the invention;
Fig. 7 is the structural schematic diagram of the third embodiment of the configuration device of dns server of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
It should be noted that, in this document, the relational terms (if present) such as " first ", " second ", " third " is only
Only it is used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying these realities
There are any actual relationship or orders between body or operation.It should be understood that the term used in this way is in the appropriate case
Can be interchanged, so as to the embodiment of the present invention described herein, such as can in addition to those of illustrate or describe herein with
Outer sequence is implemented.
In addition, the terms "include", "comprise", " having " or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or the terminal device that include a series of elements not only include those elements, but also
Including other elements that are not explicitly listed, or further include for this process, method, article or terminal device institute it is intrinsic
Element.
In the absence of more restrictions, the element limited by sentence " including ... " or " including ... ", is not arranged
Except there is also other elements in process, method, article or the terminal device for including the element.In addition, herein,
" being greater than ", " being less than ", " being more than " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. be interpreted as including this number.
Furthermore as used in herein, singular " one ", "one" and "the" are intended to also include plural number shape
Formula, unless having opposite instruction in context it will be further understood that term "comprising", " comprising " show that there are the spies
Sign, step, operation, element, component, project, type, and/or group, but it is not excluded for one or more other features, step, behaviour
Work, element, component, project, the presence of type, and/or group, appearance or addition term "or" used herein and "and/or" quilt
Be construed to inclusive, or mean any one or any combination therefore, " A, B or C " or " A, B and/or C " mean " with
Descend any one: A;B;C;A and B;A and C;B and C;A, B and C " is only when element, function, step or the combination of operation are in certain sides
When inherently mutually exclusive under formula, it just will appear the exception of this definition.
Below in conjunction with FIG. 1 to FIG. 7, technical solution of the present invention is described in detail with specifically embodiment.Below this
Several specific embodiments can be combined with each other, may be no longer superfluous in some embodiments for the same or similar concept or process
It states.
As shown in Figure 1, a kind of embodiment of the configuration method for dns server provided by the present invention, with reference to Fig. 1, institute
The configuration method for stating dns server includes:
Step S10 sends domain name to be visited to the first dns server;
Step S20 judges that the domain name to be visited whether there is in the first list;
If the domain name to be visited is present in first list, S30 is thened follow the steps, that is, is judged whether there is and institute
State corresponding second dns server of domain name to be visited;
Second dns server corresponding with the domain name to be visited if it exists, thens follow the steps S40, i.e. judgement passes through institute
State whether the second dns server access domain name succeeds;
If accessing domain name success by second dns server, S50 is thened follow the steps, by second dns server
Remove first list.
It will be appreciated by those skilled in the art that DNS is computer domain name system (Domain Name System or Domain
Name Service) abbreviation.DNS is the service for carrying out domain name and corresponding IP address (IP address) conversion
Device.The table an of domain name and corresponding IP address (IP address) is saved in DNS, to parse the domain name of message.
Domain name is the title of a certain computer or calculating unit on Internet, for identifying the electronics of computer when data are transmitted
Orientation (sometimes referred to as geographical location).What domain name was formed by a string with the name that point separates, organization name is generally comprised, and begin
Eventually include two to three letter suffix, with indicate tissue type or the domain where country.
DNS is made of Domain Name Resolver and name server.Name server, which refers to preserve in the network, to be owned
The domain name of host and corresponding IP address, and there is the server that domain name is converted to IP address function.Wherein domain name must correspond to
One IP address, an IP address can have multiple domain names, and IP address not necessarily has domain name.Domain name system uses similar catalogue
The hierarchical organization of tree.Name server is usually the server side in Client/Server pattern, and there are mainly two types of forms for it:
Primary server and forwarding server.The process that domain name is mapped as IP address is known as " domain name mapping ".
It is one-to-one (or many-one) between domain name and IP address on internet, it is real that DNS repeating query can also be used
It is existing one-to-many, although domain name is remembered convenient for people, IP address is only recognized between machine, the conversion work between them is known as domain name
Parsing, domain name mapping needs are completed by special domain name resolution server, and DNS is exactly the server for carrying out domain name mapping.DNS
Name is for searching computer and service by user-friendly title in the TCP/IP networks such as Internet.When user is answering
When with inputting DNS name in program, this name resolving can be associated other information, such as IP address by DNS service.Cause
For the network address that you input in online is to have found corresponding IP address by domain name analysis system parsing, in such ability
Net.In fact, domain name eventually points to be IP.
IP is made of 32 bits in IPV4, this 32 bit is divided into 4 groups every group 8 binary systems
Number, this 8 binary numbers are converted to decimal number, be exactly we have seen that IP address, range is between 0~255.Cause
For it is exactly 0~255 that 8 binary numbers, which are converted into decimal numeral maximum magnitude,.Trial operation is started, will replace in the future
In the IPV6 of IPv4, an IP address will be indicated with 128 bits.
For example, what is commonly entered is network address, and here it is a domain names in fact when we are when online, and we count
Computer on calculation machine network can only can be just mutually distinguishable each other with IP address.For another example, we go in a WEB server to ask
A WEB page is sought, we can input network address either corresponding IP address in a browser, such as we will go up Sina website,
We can input network address in the address field of IE, can also input IP address, but so IP address we do not remember or
Say it is to be difficult to remember, so there is the saying of domain name, such domain name meeting let us is readily remembered.
DNS (DNS management system) domain name separates a string of words by dot or abbreviation forms, each domain name is right
Answer an only IP address, the system of the method for this name or such management domain name is called DNS management system.
In the present embodiment, first list refers to the domain name saved in DNS system and corresponding IP
The table of address (IP address), to parse the domain name of message.As described in the background art, in the prior art, terminal
The problem of excessively relying on first dns server, i.e. terminal default will use first dns server as highest priority
Dns server, terminal successfully pass after the dns server gets the IP address of certain domain name, and it is subsequent would not to reattempt other
Low priority dns server.
Therefore, in the present embodiment, the IP of the certain domain names returned by dns server is recorded by first list
The not available situation in location.In practical application, first determine whether domain name to be visited is that be registered as in the first list can not
The case where access, if it is inaccessible to be registered as domain name before, it is corresponding with the domain name to judge whether there is other servers,
If there are other servers corresponding with the domain name, other servers are traversed, and judge whether accessible success, if traversed
There is the accessible success of other servers in Cheng Zhong, then accessible successful dns server is removed described first
List.And if traverse other servers, cannot access success, then record the domain name in the first list.To there is access again
When the request of the domain name, circulation executes aforementioned each step, and to have determined whether there is, other servers are accessible successfully should
Domain name.
It should be noted that the first dns server, the second dns server in the present embodiment may each comprise a DNS
Server also may include multiple dns servers, by the description of the first dns server and the second dns server merely to
It distinguishes, does not limit its quantity, also do not limit the scope of the invention.
Fig. 2 shows the flow diagram of second of embodiment of the configuration method of dns server of the invention, such as Fig. 2
It is shown, in the present embodiment, the configuration method of the dns server further include: executing the step S50: by the 2nd DNS
After server removes first list, step S80 is continued to execute, the domain name to be visited and institute are established in the second list
State the corresponding relationship of the second dns server.
It should be noted that corresponding relationship of the second list in the present embodiment to record dns server and domain name,
That is which dns server can carry out the access of domain name by.Unlike the first list, the first list is to remember
The dns server list of inaccessible domain name is recorded, and the second list is used to record the dns server list of accessible domain name.
That is, in the present embodiment, due to the domain name of the accessible request of the second dns server, by second
Dns server removes the first list, and the corresponding relationship of domain name Yu the dns server is established in the second list, subsequent
When requesting access to the domain name, it can be accessed by the dns server.
Specifically, the process that the corresponding relationship of domain name and dns server is established in the second list may include: first to judge
Whether domain name is had existed in second list, if it exists domain name, then directly by domain name and the dns server
It is associated, that is, establishes the corresponding relationship of the domain name Yu the dns server.If domain name is not present in the second list,
The domain name then can be first established in the second list, and the dns server and newly-established domain name are subjected to corresponding relationship
In addition, it is necessary to explanation, whether the IP address that dns server returns be can be used, i.e. the standard of success or not, with
Whether the IP address can set up TCP connection as standard in finite number of time N.The present invention is without limitation.
The configuration method of the dns server of the present embodiment, by establish inaccessible domain name and dns server first
List is inquired the dns server or other dns servers in the first list in advance, is passed through when requesting inaccessible domain name
Traverse all dns servers, it is determined whether there is a situation where it is accessible, thus solve in the prior art, due to only according to
Rely in first dns server and caused by inaccessible domain name the case where, and then substantially increase the performance of equipment, while
Greatly improve the experience of user.
Fig. 3 shows the flow diagram of the third embodiment of the configuration method of dns server of the invention, such as Fig. 3
It is shown, the configuration method of the dns server further include:
S30 is being executed the step, second dns server corresponding with the domain name to be visited, then execute step if it does not exist
Rapid S60, i.e. judgement access whether domain name succeeds by first dns server;
If accessing domain name success by first dns server, S70 is thened follow the steps, i.e., is established in the second list
The corresponding relationship of the domain name to be visited and first dns server.
In specific implementation, the domain name to be visited and described first the step S70: is established in the second list
The step of corresponding relationship of dns server includes:
Judge in second list with the presence or absence of the domain name to be visited;
If there are the domain name to be visited in second list, by first dns server with it is described to be visited
Domain name establishes corresponding relationship;
If the domain name to be visited is not present in second list, created in second list described to be visited
Domain name, and first dns server and newly-built domain name to be visited are established into corresponding relationship.
It is subsequent when visiting again the domain name by establishing the corresponding relationship of domain name and dns server in the second list
It is directly carried out by corresponding dns server, so as to shorten the time of configuration, improves the efficiency of configuration and the success of configuration
Rate.
Fig. 4 shows the flow diagram of the 4th kind of embodiment of the configuration method of dns server of the invention, such as Fig. 4
It is shown, in certain embodiments, the configuration method of the dns server further include:
If after executing the step S20, judging that the domain name to be visited is not present in first list, then executing step
Rapid S90 judges that the domain name to be visited whether there is in being in the second list;
If the domain name to be visited is present in second list, S100 is thened follow the steps, i.e., by the second list
Dns server corresponding with the domain name to be visited accesses.
That is, in practical applications, if domain name to be visited is recorded in the second list, i.e., the domain name is it
Therefore preceding accessible domain name can directly be accessed by the corresponding relationship in the second list, without carrying out it
Therefore the traversal of his dns server substantially increases the allocative efficiency of dns server, to improve the experience of user.
The present invention also provides a kind of configuration devices of dns server, as shown in Figure 5-Figure 7.With reference to Fig. 5, the DNS service
The configuration device of device includes:
Sending module 10, for sending domain name to be visited to the first dns server;
First judgment module 20, for judging that the domain name to be visited whether there is in the first list;
Second judgment module 30, for judging whether to deposit when the domain name to be visited is present in first list
In second dns server corresponding with the domain name to be visited;
Third judgment module 40, for when there is second dns server corresponding with the domain name to be visited, judgement to be logical
Cross whether the second dns server access domain name succeeds;
Remove module 50, for when accessing domain name success by second dns server, the 2nd DNS to be taken
Business device removes first list.
In the present embodiment, the IP address of the certain domain names returned by dns server is recorded by first list not
The case where can using.In practical application, first determine whether domain name to be visited whether be registered as in the first list it is inaccessible
The case where, if it is inaccessible to be registered as domain name before, it is corresponding with the domain name to judge whether there is other servers, if having
Other servers are corresponding with the domain name, then traverse other servers, and judge whether accessible success, if in ergodic process
In, there is a situation where the accessible success of other servers, then accessible successful dns server is removed into first table
It is single.And if traverse other servers, cannot access success, then record the domain name in the first list.To there is access should again
When the request of domain name, circulation executes aforementioned each step, to have determined whether there is the accessible successfully domain of other servers
Name.
It should be noted that the first dns server, the second dns server in the present embodiment may each comprise a DNS
Server also may include multiple dns servers, by the description of the first dns server and the second dns server merely to
It distinguishes, does not limit its quantity, also do not limit the scope of the invention.
As shown in fig. 6, in a second embodiment, the configuration device of the dns server can also include:
4th judgment module 60, for when there is no second dns server corresponding with the domain name to be visited, judgement
Access whether domain name succeeds by first dns server;
Corresponding relationship processing module 70 is used for when accessing domain name success by first dns server, in the second table
The corresponding relationship of the domain name to be visited Yu first dns server is established in list.
In other embodiments, the corresponding relationship processing module 70 is also used to remove by second dns server
After first list, the corresponding relationship of the domain name to be visited Yu second dns server is established in the second list.
Corresponding relationship of second list to record dns server and domain name in the present embodiment, that is to say, that by which
A little dns servers can carry out the access of domain name.Unlike the first list, the first list is to record inaccessible domain name
Dns server list, and the second list is used to record the dns server list of accessible domain name.
That is, in the present embodiment, due to the domain name of the accessible request of the second dns server, by second
Dns server removes the first list, and the corresponding relationship of domain name Yu the dns server is established in the second list, subsequent
When requesting access to the domain name, it can be accessed by the dns server.
Specifically, the process that the corresponding relationship of domain name and dns server is established in the second list may include: first to judge
Whether domain name is had existed in second list, if it exists domain name, then directly by domain name and the dns server
It is associated, that is, establishes the corresponding relationship of the domain name Yu the dns server.If domain name is not present in the second list,
The domain name then can be first established in the second list, and the dns server and newly-established domain name are subjected to corresponding relationship
In addition, it is necessary to explanation, whether the IP address that dns server returns be can be used, i.e. the standard of success or not, with
Whether the IP address can set up TCP connection as standard in finite number of time N.The present invention is without limitation.
The configuration device of the dns server of the present embodiment, by establish inaccessible domain name and dns server first
List is inquired the dns server or other dns servers in the first list in advance, is passed through when requesting inaccessible domain name
Traverse all dns servers, it is determined whether there is a situation where it is accessible, thus solve in the prior art, due to only according to
Rely in first dns server and caused by inaccessible domain name the case where, and then substantially increase the performance of equipment, while
Greatly improve the experience of user.
As shown in fig. 7, in the third embodiment, the configuration device of the dns server can also include:
5th judgment module 80, for being not present in first list when the domain name to be visited, judgement it is described to
Access domain name whether there is in being in the second list;
Domain name access module 90 passes through the second list for being present in second list when the domain name to be visited
In dns server corresponding with the domain name to be visited access.
The present invention also provides a kind of network systems, including terminal, dns server and such as aforementioned described in any item DNS
The configuration device of server.The working principle of the configuration device of dns server in the network system can refer to previously with regard to
The description of the configuration method of dns server, details are not described herein.
The configuration method of dns server of the present invention, the configuration device of dns server and network system, and it is existing
Technology is compared, and is had the advantage that and is established the first list and the second list, records inaccessible domain name and DNS service respectively
The corresponding relationship of the corresponding relationship of device and addressable domain name and dns server judges in advance when carrying out domain name access
With the presence or absence of in inaccessible domain name inventory, if so, traversing corresponding dns server, successively to determine whether there is
The accessible domain name of dns server, thus solve the case where depending on first dns server unduly in the prior art, from
And the performance of dns server is substantially increased, and then improve the experience of user.
It should be understood by those skilled in the art that, the various embodiments described above can provide as method, apparatus or computer program production
Product.Complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in these embodiments
Form.The all or part of the steps in method that the various embodiments described above are related to can instruct relevant hardware complete by program
At the program can store in the storage medium that computer equipment can be read, for executing the various embodiments described above method
The all or part of the steps.
The various embodiments described above are referring to the method according to embodiment, equipment (system) and computer program product
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Program instruction generates a machine to the processor of computer equipment, so that the finger executed by the processor of computer equipment
It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of function.
It is discussed in detail although the contents of the present invention have passed through above preferred embodiment, but it should be appreciated that above-mentioned
Description is not considered as limitation of the present invention.After those skilled in the art have read above content, for of the invention
A variety of modifications and substitutions all will be apparent.Therefore, protection scope of the present invention should be limited to the appended claims.
Claims (10)
1. a kind of configuration method of dns server characterized by comprising
Domain name to be visited is sent to the first dns server;
Judge that the domain name to be visited whether there is in the first list;
If the domain name to be visited is present in first list, judge whether there is corresponding with the domain name to be visited
Second dns server;
Second dns server corresponding with the domain name to be visited if it exists, then judgement is accessed by second dns server
Whether domain name succeeds;
If accessing domain name success by second dns server, second dns server is removed into first table
It is single.
2. the configuration method of dns server as described in claim 1, which is characterized in that further include:
Second dns server corresponding with the domain name to be visited if it does not exist, then judgement is visited by first dns server
Ask whether domain name succeeds;
If accessing domain name success by first dns server, the domain name to be visited and institute are established in the second list
State the corresponding relationship of the first dns server.
3. the configuration method of dns server as claimed in claim 2, which is characterized in that described to establish institute in the second list
The step of stating domain name to be visited and the corresponding relationship of first dns server include:
Judge in second list with the presence or absence of the domain name to be visited;
If there are the domain names to be visited in second list, by first dns server and the domain name to be visited
Establish corresponding relationship;
If the domain name to be visited is not present in second list, the domain to be visited is created in second list
Name, and first dns server and newly-built domain name to be visited are established into corresponding relationship.
4. the configuration method of dns server as described in claim 1, which is characterized in that further include: by the 2nd DNS
After server removes first list, the domain name to be visited and second dns server are established in the second list
Corresponding relationship.
5. the configuration method of dns server as described in claim 1, which is characterized in that further include:
If the domain name to be visited is not present in first list, judge that the domain name to be visited whether there is in being
In second list;
If the domain name to be visited is present in second list, by opposite with the domain name to be visited in the second list
The dns server answered accesses.
6. a kind of configuration device of dns server characterized by comprising
Sending module, for sending domain name to be visited to the first dns server;
First judgment module, for judging that the domain name to be visited whether there is in the first list;
Second judgment module, for when the domain name to be visited is present in first list, judging whether there is and institute
State corresponding second dns server of domain name to be visited;
Third judgment module, for when there is second dns server corresponding with the domain name to be visited, judgement to pass through described
Whether the second dns server access domain name succeeds;
Remove module, for when accessing domain name success by second dns server, second dns server to be moved
Except first list.
7. the configuration device of dns server as claimed in claim 6, which is characterized in that further include:
4th judgment module, for when there is no second dns server corresponding with the domain name to be visited, judgement to pass through institute
State whether the first dns server access domain name succeeds;
Corresponding relationship processing module, for being built in the second list when accessing domain name success by first dns server
Found the corresponding relationship of the domain name to be visited Yu first dns server.
8. the configuration device of dns server as claimed in claim 7, which is characterized in that the corresponding relationship processing module is also
For establishing the domain name to be visited in the second list after second dns server is removed first list
With the corresponding relationship of second dns server.
9. the configuration device of dns server as claimed in claim 6, which is characterized in that further include:
5th judgment module judges the domain to be visited for being not present in first list when the domain name to be visited
Name is with the presence or absence of in being in the second list;
Domain name access module, for being present in second list when the domain name to be visited, by the second list with institute
The corresponding dns server of domain name to be visited is stated to access.
10. a kind of network system, which is characterized in that including terminal, dns server and as claim in any one of claims 6-9
Dns server configuration device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811630674.4A CN110213394B (en) | 2018-12-29 | 2018-12-29 | DNS server configuration method, device and network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811630674.4A CN110213394B (en) | 2018-12-29 | 2018-12-29 | DNS server configuration method, device and network system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110213394A true CN110213394A (en) | 2019-09-06 |
CN110213394B CN110213394B (en) | 2023-09-01 |
Family
ID=67780030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811630674.4A Active CN110213394B (en) | 2018-12-29 | 2018-12-29 | DNS server configuration method, device and network system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110213394B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110636150A (en) * | 2019-10-24 | 2019-12-31 | 北京小米移动软件有限公司 | Domain name resolution method, domain name resolution device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905574A (en) * | 2012-12-27 | 2014-07-02 | 中国移动通信集团公司 | DNS service access method and DNS data synchronization method and device |
CN106506715A (en) * | 2016-10-14 | 2017-03-15 | 乐视控股(北京)有限公司 | Domain name analytic method and device |
US20180131665A1 (en) * | 2016-11-04 | 2018-05-10 | Neustar, Inc. | Resolving Domain Name System (DNS) Requests Via Proxy Mechanisms |
CN108667946A (en) * | 2017-03-31 | 2018-10-16 | 贵州白山云科技有限公司 | A kind of multiple domain name is mutually standby to parse management method, apparatus and system |
-
2018
- 2018-12-29 CN CN201811630674.4A patent/CN110213394B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905574A (en) * | 2012-12-27 | 2014-07-02 | 中国移动通信集团公司 | DNS service access method and DNS data synchronization method and device |
CN106506715A (en) * | 2016-10-14 | 2017-03-15 | 乐视控股(北京)有限公司 | Domain name analytic method and device |
US20180131665A1 (en) * | 2016-11-04 | 2018-05-10 | Neustar, Inc. | Resolving Domain Name System (DNS) Requests Via Proxy Mechanisms |
CN108667946A (en) * | 2017-03-31 | 2018-10-16 | 贵州白山云科技有限公司 | A kind of multiple domain name is mutually standby to parse management method, apparatus and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110636150A (en) * | 2019-10-24 | 2019-12-31 | 北京小米移动软件有限公司 | Domain name resolution method, domain name resolution device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110213394B (en) | 2023-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11140235B1 (en) | Dynamic optimization of request parameters for proxy server | |
US8321503B2 (en) | Context-specific network resource addressing model for distributed services | |
JP6626211B2 (en) | Method and apparatus for processing short link and short link server | |
US11474992B2 (en) | Domain name registration and management | |
US7558880B2 (en) | Dynamic DNS registration method, domain name solution method, DNS proxy server, and address translation device | |
CN102143243B (en) | Dynamic routing processing method and dynamic routing processing device and home gateway thereof | |
CN104283723B (en) | Network access log processing method and processing device | |
CN108090064A (en) | A kind of data query method, apparatus, data storage server and system | |
CN108183975A (en) | A kind of method and system of domain name mapping | |
CN102546854A (en) | Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server | |
CN109729187B (en) | Proxy communication method, system, device and storage medium | |
TW201724825A (en) | System and method for acquiring, processing and updating global information | |
US20170339252A1 (en) | Generating a response to a client device in an internet of things domain | |
US20020143667A1 (en) | Method and system for inventory management | |
CN109802951A (en) | A kind of message forwarding method, equipment and storage equipment, program product | |
CN105872119A (en) | Method and apparatus for implementing domain name resolution system | |
CN104618388A (en) | Quick registration and login method and corresponding reset server and information server | |
US20170374154A1 (en) | Generating a response to a client device in an internet of things domain | |
US20040181595A1 (en) | Method and apparatus for server load sharing based on foreign port distribution | |
EP1164481A2 (en) | Object identifier based protocols in a distributed data processing system | |
CN110213394A (en) | A kind of configuration method of dns server, configuration device and network system | |
CN106571968A (en) | Business switching method and system | |
US8316045B1 (en) | Database linking system | |
CN107404515A (en) | The processing method and processing device of asynchronous http request | |
CN114553521A (en) | Remote memory access method, device, equipment and 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 |