CN105763668B - A kind of domain name analytic method and device - Google Patents
A kind of domain name analytic method and device Download PDFInfo
- Publication number
- CN105763668B CN105763668B CN201610109492.7A CN201610109492A CN105763668B CN 105763668 B CN105763668 B CN 105763668B CN 201610109492 A CN201610109492 A CN 201610109492A CN 105763668 B CN105763668 B CN 105763668B
- Authority
- CN
- China
- Prior art keywords
- domain name
- address
- domain
- name information
- message
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention provides a kind of domain name analytic method and device, this method comprises: receiving the domain name mapping message from domain name request equipment, and the dns query message domain name table by carrying in domain name mapping message;If there are domain name information in domain name table, the dns response message for carrying the corresponding IP address of domain name information is sent to domain name request equipment;If domain name information is not present in domain name table, the corresponding IP address of domain name information is obtained from dns server;The corresponding relationship of domain name information and the IP address is recorded in domain name table, and the dns response message for carrying the IP address is sent to domain name request equipment.According to the technical solution of the present invention, manpower consumption can be saved, and mitigates the load of dns server.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of domain name analytic methods and device.
Background technique
SDN (Software Defined Network, software defined network) is a kind of new network framework, and core is thought
Think be separated network equipment control plane and forwarding plane, network flow is flexibly controlled by SDN controller.
In SDN, when user equipment (such as virtual machine etc.) needs to access service server, it is based on service server pair
The domain-name information of outer offer, user equipment send to DNS (Domain Name System, domain name system) server and carry the domain
The DNS request message of name information, and receive the DNS response message of the IP address of the carrying service server of dns server return.
IP address based on the service server, user equipment can send service message to service server, by the service server
Handle the service message.
In above process, each user equipment is individually to the IP address of dns server requested service server, this is just
It needs administrator to configure the address information of dns server on each user equipment in advance, causes manpower workload larger.And
It is every time primary to dns server application and in the IP address of the same service server of multiple user equipment requests, it leads
It causes the load of dns server larger, influences the process performance of dns server.
Summary of the invention
The present invention provides a kind of domain name analytic method, is applied to SDN controller, which comprises
The domain name mapping message from domain name request equipment is received, and the domain name carried in message is parsed by domain name
Information inquiry field famous-brand clock, domain name table are used to record the corresponding relationship of domain-name information and IP address;
If there are domain name information in domain name table, the domain is carried to domain name request equipment transmission
The dns response message of the corresponding IP address of name information;
If domain name information is not present in domain name table, domain name is obtained from domain name system DNS server
The corresponding IP address of information;The corresponding relationship of domain name information and the IP address is recorded in domain name table, and to institute
It states domain name request equipment and sends the dns response message for carrying the IP address.
The present invention provides a kind of domain name mapping device, and domain name resolver is applied to SDN controller, and domain name
Resolver includes:
Enquiry module disappears for receiving the domain name mapping message from domain name request equipment, and by domain name parsing
The dns query message domain name table carried in breath, domain name table are used to record the corresponding relationship of domain-name information and IP address;
Communication module, for inquiring in domain name table there are when domain name information when the enquiry module, then to
Domain name request equipment sends the dns response message for carrying the corresponding IP address of domain name information;When the inquiry mould
Block inquires in domain name table there is no when domain name information, then obtains domain name letter from domain name system DNS server
Corresponding IP address is ceased, and sends the dns response message for carrying the IP address to domain name request equipment;
Maintenance module, for getting the corresponding IP address of domain name information from dns server in the communication module
Later, the corresponding relationship of domain name information and the IP address is recorded in domain name table.
Based on the above-mentioned technical proposal, SDN controller can safeguard that domain-name information is corresponding with IP address in domain name table and close
System, when the corresponding IP address of domain name request device request domain-name information, if there are the domain-name informations in domain name table, so that it may
The corresponding IP address of the domain-name information is directly sent to domain name request equipment, and no longer requests the domain name to be believed to dns server
Cease corresponding IP address.In this way, configuring the address information of dns server in domain name request equipment without administrator, domain name is asked
Equipment is asked to the corresponding IP address of SDN controller request domain-name information, to save manpower consumption;Once also, SDN controller side
Domain name table in there are the corresponding IP address of certain domain name information, regardless of which subsequent domain name request equipment requests this domain name to be believed again
Corresponding IP address is ceased, no longer to dns server application, and then the load of dns server is alleviated, improves dns server
Process performance.
Detailed description of the invention
Fig. 1 is the application scenarios schematic diagram of the domain name analytic method in one embodiment of the present invention;
Fig. 2 is the flow chart of the domain name analytic method in one embodiment of the present invention;
Fig. 3 is the hardware structure diagram of the SDN controller in one embodiment of the present invention;
Fig. 4 is the structure chart of the domain name mapping device in one embodiment of the present invention.
Specific embodiment
In term used in this application merely for the sake of for the purpose of describing particular embodiments, rather than limit the application.This Shen
Please it is also intended to the "an" of singular used in claims, " described " and "the" including most forms, unless
Context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to comprising one or more
Associated any or all of project listed may combine.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, in addition, used word " if " can be construed to " ... when " or " when ... "
Or " in response to determination ".
Aiming at the problems existing in the prior art, a kind of domain name analytic method, this method are proposed in the embodiment of the present invention
It can be applied to SDN controller.In one example, the application scenarios schematic diagram of the embodiment of the present invention can be as shown in Figure 1, domain
Name request equipment can be user equipment or load-balancing device.User equipment can be virtual machine etc., accessible business
The business that server provides.Load-balancing device is for providing load balancing service.Service server, which can be, not to be controlled by SDN
The independent equipment (as shown in Figure 1) of device control, is also possible to the virtual machine etc. controlled by SDN controller, mentions for user equipment
For business.
In the embodiment of the present invention, domain name table can be configured on SDN controller, the domain name table is for recording domain-name information and IP
The corresponding relationship of location is as shown in table 1 a kind of example of domain name table, is sky when the domain name table is initial.Wherein, in domain name table
The IP address of record refers to the IP address of the corresponding service server of domain-name information.
Table 1
Domain-name information | IP address |
www.aaa.com | 192.168.212.100 |
www.bbb.com | 10.0.0.100 |
Under above-mentioned application scenarios, as described in Figure 2, which be may comprise steps of:
Step 201, the domain name mapping message from domain name request equipment is received.
Step 202, by the dns query message domain name table carried in the domain name mapping message, if inquiring in domain name table
There are the domain-name informations, then follow the steps 203;If inquiring in domain name table, there is no the domain-name informations, then follow the steps 204.
Step 203, the corresponding IP address of the domain-name information (i.e. domain-name information correspondence is carried to the transmission of domain name request equipment
Service server IP address) dns response message.
Step 204, the corresponding IP address of the domain-name information is obtained from dns server, domain name letter is recorded in domain name table
The corresponding relationship of breath and the IP address, and the dns response message for carrying the IP address is sent to domain name request equipment.
In Fig. 1, domain name request equipment can be user equipment or load-balancing device, individually below with user equipment
For load-balancing device, above-mentioned steps 201- step 204 is described in detail.
Situation one, domain name request equipment are user equipmenies.
In a kind of feasible embodiment, in order to save manpower consumption, SDN controller can issue stream to each user equipment
Table, the flow table are used to indicate user equipment and the DNS request message for carrying domain-name information are encapsulated in domain name mapping message, and will
SDN controller is given in domain name mapping message.Based on this, user equipment is based on service server when accessing service server
The domain-name information externally provided, user equipment generates the DNS request message comprising the domain-name information, due to the DNS request message
It can be matched to the flow table, therefore, which is encapsulated in domain name mapping message by user equipment, and by domain name solution
SDN controller is given in analysis message.
Wherein, domain name mapping message can be the packet_in message of carrying DNS request message, and in DNS request message
Carry the domain-name information of user equipment requests, such as www.aaa.com, www.ccc.com.
It is that (User Datagram Protocol is used a UDP based on DNS request message for the generating process of flow table
User data datagram protocol) message, source port is the mark of first port, and destination port is the features such as the mark of second port, SDN control
Device processed can issue a flow table for each user equipment, and the match options of the flow table can be with are as follows: and protocol type is UDP message,
Source port is the mark of first port, and destination port is the mark of second port;The Action option of the flow table can be with are as follows: will hit
The message of match options is encapsulated in packet_in message, and SDN controller will be given in packet_in message.
In step 202, SDN controller, can be from the domain name mapping message after receiving domain name mapping message
DNS request message is parsed, and parses domain-name information from the DNS request message, and utilizes 1 institute of dns query message table
The domain name table shown.For example, it is assumed that the domain-name information is www.aaa.com, then, query result is that there are the domain names in domain name table
Information, existing subscriber's device request crosses the corresponding IP address of this domain-name information before this illustrates, thens follow the steps 203.Assuming that should
Domain-name information is www.ccc.com, then, query result is there is no the domain-name information in domain name table, this explanation does not have also before
There are user equipment requests to cross the corresponding IP address of this domain-name information, thens follow the steps 204.
In step 203, SDN controller directly carries the corresponding IP address of the domain-name information to user equipment transmission
Dns response message.
For example, SDN controller is after using www.aaa.com inquiry field famous-brand clock (such as table 1), it is available
The corresponding IP address of www.aaa.com is 192.168.212.100, at this point, SDN controller by www.aaa.com and
192.168.212.100 it carries in DNS response message, and is sent out after the DNS response message is encapsulated in packet_out message
Give user equipment.
In step 204, the creation of SDN controller carries the DNS request message of the domain-name information, and sends out to dns server
The DNS request message is given, and receives the DNS response message for carrying the corresponding IP address of the domain-name information of dns server return,
To get the corresponding IP address of the domain-name information from dns server.Later, the domain-name information is recorded in domain name table and is somebody's turn to do
The corresponding relationship of IP address, and the dns response message for carrying the IP address is sent to user equipment.
In this step, the IP address of dns server can be obtained ahead of time in SDN controller, and with obtaining the IP of dns server
The mode of location can specifically include but be not limited to such as under type: mode one, the IP address that dns server is directly obtained from local
(that is, the IP address configured in advance of dns server is on SDN controller).Alternatively, mode two, SDN controller pass through DHCP
The IP of (Dynamic Host Configuration Protocol, dynamic host configuration protocol) server acquisition dns server
Address.
For example, SDN controller is learnt in table 1 and is not present after using www.ccc.com inquiry field famous-brand clock (such as table 1)
Www.ccc.com, at this point, SDN controller sets the user for oneself inventing the IP address that one is used for requested service server
It is standby, and the DNS request message of a carrying www.ccc.com is created, the DNS request message is sent to dns server.
Subsequent dns server can will carry domain name letter after receiving the DNS request message from SDN controller
The DNS response message of the IP address (such as 192.168.212.200) of breath (such as www.ccc.com) and service server is sent to
SDN controller.
SDN controller records the domain name letter that DNS response message carries after receiving DNS response message in domain name table
The corresponding relationship of breath and IP address, as shown in table 2.SDN controller carries www.ccc.com and 192.168.212.200
In DNS response message, and user equipment is sent to after DNS response message is encapsulated in packet_out message.
Table 2
Domain-name information | IP address |
www.aaa.com | 192.168.212.100 |
www.bbb.com | 10.0.0.100 |
www.ccc.com | 192.168.212.200 |
Situation two, domain name request equipment are load-balancing devices.
In practical applications, LB (Load Balance, load balancing) service can be provided by load-balancing device.In order to
Load balancing service is provided, can be the multiple service servers of same business configuration, for example, service server 1 and business service
Device 2 provides business 1 jointly, and domain-name information is www.aaa.com, and business 1 is externally presented an IP address and (is properly termed as floating
IP address), therefore the pass corresponding with 192.168.212.100 (floating IP address) configuration www.aaa.com on a dns
System.Service server 1 has itself corresponding IP address (referred to as real IP address) again with service server 2, such as service server 1
Corresponding real IP address is 192.168.212.101, and the corresponding real IP address of service server 2 is
192.168.212.102。
Load-balancing device can provide load balancing service for the user equipment inside SDN, or outside SDN
User equipment provides load balancing service.
In a kind of existing implementation, can on load-balancing device corresponding relationship shown in manual configuration table 3.
When user equipment access business 1, user equipment knows that domain-name information is www.aaa.com, obtains from dns server
The corresponding IP address of www.aaa.com is 192.168.212.100, and is to load-balancing device transmission purpose IP address
192.168.212.100 service message.Load-balancing device is receiving the industry that purpose IP address is 192.168.212.100
It is engaged in after message, by the content of inquiry table 3, knows that real IP address is 192.168.212.101 and 192.168.212.102,
And service message can carry out load balancing between 192.168.212.101 and 192.168.212.102.Utilize load balancing
Algorithm, that load-balancing device selects processing business message is 192.168.212.101 or 192.168.212.102, then will
Service message is sent to the corresponding service server 1 of 192.168.212.101 or the corresponding business service of 192.168.212.102
Device 2 is handled.In this approach, if floating IP address changes, need to delete the content of table 3, and again negative
Carry the corresponding relationship of manual configuration floating IP address and real IP address on equalizing equipment.
Table 3
Floating IP address | Real IP address |
192.168.212.100 | 192.168.212.101、192.168.212.102 |
As it can be seen that in the above method, needing administrator is corresponding shown in manual configuration table 3 on load-balancing device to close
System, causes manpower workload larger, and be easily configured mistake.In view of the above-mentioned problems, in embodiments of the present invention, it can be by SDN
Controller obtain floating IP address (192.168.212.100) and real IP address (192.168.212.101,
192.168.212.102), and floating IP address and real IP address are sent to load-balancing device, by load-balancing device
Corresponding relationship shown in Maintenance Table 3.
The process of real IP address is obtained for SDN controller, can be obtained using existing way, for example, in advance in SDN
The corresponding real IP address of configuration service 1 on controller is directly obtained from local by SDN controller.
Floating IP address is obtained for SDN controller, and floating IP address is handed down to the process of load-balancing device, it can
To use above-mentioned steps 201- step 204, floating IP address is handed down to load-balancing device.
Specifically, load-balancing device sends the domain name mapping message of carrying domain-name information (usually to SDN controller
DNS request message), SDN controller executes above-mentioned steps 201, that is, the DNS request message from load-balancing device is received, it
Afterwards, domain-name information is parsed from DNS request message, and utilizes the dns query message domain name table.If inquiring domain name table
Middle there are the domain-name informations, execute step 203.Otherwise, step 204 is executed.
In step 203, SDN controller is directly sent with carrying the corresponding IP of the domain-name information to load-balancing device
The dns response message (usually DNS response message) of location.
In step 204, the creation of SDN controller carries the DNS request message of the domain-name information, and sends out to dns server
The DNS request message (the IP address mode for obtaining dns server is similar to above situation one, and this will not be detailed here) is given, and is connect
The DNS response message for carrying the corresponding IP address of the domain-name information that dns server returns is received, to obtain from dns server
To the corresponding IP address of the domain-name information.Later, the corresponding relationship of the domain-name information Yu the IP address is recorded in domain name table, and
The dns response message for carrying the IP address is sent to load-balancing device.
Further, in the embodiment of the present invention, for situation one and situation two, due to the corresponding business service of domain-name information
The IP address of device can change, therefore, in order to ensure that the domain-name information recorded in domain name table corresponding IP address is newest IP
Location, for each domain-name information recorded in domain name table, SDN controller can with the corresponding IP of periodic request domain-name information
Location, such as every 5 minutes corresponding IP address of domain-name information of request, in this way, when the corresponding IP address of domain-name information becomes
The IP address in IP address more new domain name table when change, after variation can be used.
In order to periodically request the corresponding IP address of domain-name information, in a kind of feasible pattern, record in domain name table
It can also be first ageing timer of correspondence setting, the first aging after domain-name information and the corresponding relationship of IP address
The ageing time of timer can configure based on practical experience, if ageing time is 5 minutes.In the first ageing timer time-out
When, SDN controller obtains the corresponding IP address of the domain-name information (for example, the creation of SDN controller carries the domain from dns server
The DNS request message of name information, sends the DNS request message to dns server, and the carrying for receiving dns server return should
The DNS response message of the corresponding IP address of domain-name information).If the IP address currently obtained (carries in DNS response message
IP address) it is identical as the IP address recorded in the corresponding relationship, then SDN controller determines the corresponding IP address of the domain-name information not
It changes, directly updates the ageing time of the first ageing timer, i.e. the first ageing timer reclocking.If currently obtained
The IP address taken and the IP address recorded in the corresponding relationship are different, then SDN controller determines the corresponding IP address of domain-name information
It changes, and using the IP address recorded in the IP address replacement corresponding relationship currently obtained, and updates the first aging timing
The ageing time of device.
Based on aforesaid way, when the IP address of the corresponding service server of domain-name information changes, SDN controller can
The IP address recorded in domain name table to be updated to newest IP address, so that being supplied to the IP address of user equipment in time
It is newest IP address, guarantees the normal access of user equipment.
In the embodiment of the present invention, for situation one and situation two, multiple dns servers, a DNS service usually can configure
Device is primary dns server, and other dns servers are alternative DNS server, and SDN controller can obtain primary dns server
IP address and each alternative DNS server IP address.
Above-mentioned SDN controller sends the process of DNS request message to dns server, refers to SDN controller to primary DNS
Server sends DNS request message.After sending DNS request message, if do not received in preset time (such as 10 seconds)
DNS response message, then SDN controller sends DNS request message to primary dns server again, if within a preset time still
DNS response message is not received, it is determined that primary dns server breaks down.IP address based on alternative DNS server, SDN
Controller sends DNS request message to alternative DNS server, and sends the processed of DNS request message to alternative DNS server
Journey, identical as to the primary dns server transmission treatment process of DNS request message, details are not described herein.Based on aforesaid way,
It can timely be switched to alternative DNS server when primary dns server breaks down and be handled, guarantee dns server
Reliability.
In the embodiment of the present invention, for situation one and situation two, since the storage resource of domain name table is limited, in order to
The storage resource of reasonable employment domain name table records the domain name for each domain-name information recorded in domain name table in domain name table
It can also be second ageing timer of correspondence setting, the second aging timing after the corresponding relationship of information and IP address
The ageing time of device can configure based on practical experience, as long as guaranteeing that the ageing time of the second ageing timer is greater than the first aging
The ageing time of timer, if ageing time is 20 minutes.Before the second ageing timer time-out, if SDN is controlled
Device receives the domain name mapping message comprising the domain-name information, then updates the ageing time of the second ageing timer, i.e., second is old
Change timer reclocking.In the second ageing timer time-out, then SDN controller can delete the corresponding relationship.Above-mentioned place
Reason mode can delete corresponding relationship from domain name table in time, can save the storage resource of domain name table.
In the embodiment of the present invention, for situation two, SDN controller is determining that the corresponding IP address of domain-name information changes
Later, if it is determined that load-balancing device is for providing the domain-name information corresponding load balancing service, then SDN controller may be used also
The IP address after variation is sent to load-balancing device.
That is, during SDN controller periodically requests domain-name information corresponding IP address, if it is determined that domain name letter
It ceases corresponding IP address to change, then SDN controller can also judge whether load-balancing device provides the domain-name information pair
The load balancing service answered.In practical applications, it will record which domain-name information load-balancing device provides on SDN controller
Corresponding load balancing service, based on this record, SDN controller may determine that whether load-balancing device provides IP address
The corresponding load balancing service of changed domain-name information.Assuming that load-balancing device provide www.aaa.com and
The load balancing service of www.ddd.com, then when the corresponding IP address of www.aaa.com changes, SDN controller may be used also
The IP address after variation is sent to load-balancing device.
Based on aforesaid way, for the corresponding domain-name information of load balancing service, when the corresponding IP address hair of domain-name information
When changing, the IP address after variation can be supplied to load-balancing device.In this manner it is ensured that load balancing service can
It continues to use, the delete operation of SDN controller side caused by avoiding load balancing service unavailable.As the corresponding IP of domain-name information
When address changes, load balancing service will not be deleted, will not be after deletion, again based on the IP address after variation
Load balancing service is created, the workload of user maintenance is mitigated.
Based on the above-mentioned technical proposal, SDN controller can safeguard that domain-name information is corresponding with IP address in domain name table and close
System, when the corresponding IP address of domain name request device request domain-name information, if there are the domain-name informations in domain name table, so that it may
The corresponding IP address of the domain-name information is directly sent to domain name request equipment, and no longer requests the domain name to be believed to dns server
Cease corresponding IP address.In this way, configuring the address information of dns server in domain name request equipment without administrator, domain name is asked
Equipment is asked to the corresponding IP address of SDN controller request domain-name information, to save manpower consumption;Once also, SDN controller side
Domain name table in there are the corresponding IP address of certain domain name information, regardless of which subsequent domain name request equipment requests this domain name to be believed again
Corresponding IP address is ceased, no longer to dns server application, and then the load of dns server is alleviated, improves dns server
Process performance.
Based on inventive concept same as the above method, a kind of domain name mapping device is additionally provided in the embodiment of the present invention,
The domain name mapping device can be applied to SDN controller.The domain name mapping device can be by software realization, can also be by hard
The mode of part or software and hardware combining is realized.It taking software implementation as an example, is by its institute as the device on a logical meaning
SDN controller processor, corresponding computer program instructions are formed in reading non-volatile storage.From hardware layer
For face, as shown in figure 3, a kind of hardware structure diagram of the SDN controller where domain name mapping device proposed by the present invention, is removed
Outside processor shown in Fig. 3, nonvolatile memory, SDN controller can also include other hardware, such as be responsible for processing message
Forwarding chip, network interface, memory etc.;From hardware configuration, which is also possible to be distributed apparatus, can
It can include multiple interface cards, to carry out the extension of Message processing in hardware view.
As shown in figure 4, being the structure chart of domain name mapping device proposed by the present invention, which includes:
Enquiry module 11 is parsed for receiving the domain name mapping message from domain name request equipment, and by domain name
The dns query message domain name table carried in message, domain name table are used to record the corresponding relationship of domain-name information and IP address;
Communication module 12, for inquiring in domain name table there are when domain name information when the enquiry module 11,
The dns response message for carrying the corresponding IP address of domain name information is then sent to domain name request equipment;It is looked into when described
When asking module 11 and inquiring in domain name table there is no domain name information, then obtain from domain name system DNS server described in
The corresponding IP address of domain-name information, and the dns response message for carrying the IP address is sent to domain name request equipment;
Maintenance module 13, for getting the corresponding IP of domain name information from dns server in the communication module 12
Behind address, the corresponding relationship of domain name information and the IP address is recorded in domain name table.
In the embodiment of the present invention, the communication module 12 is also used to when it is user equipment that domain name, which requests equipment,
Before the enquiry module 11 receives the domain name mapping message from domain name request equipment, Xiang Suoshu user equipment issues flow table,
The flow table is used to indicate the user equipment and the DNS request message for carrying domain-name information is encapsulated in domain name mapping message,
And domain name is parsed and gives the SDN controller in message.
The maintenance module 13 is also used to record domain name information in domain name table corresponding with the IP address
It is first ageing timer of correspondence setting after relationship;
The communication module 12 is also used in the first ageing timer time-out, obtains institute from the dns server
State the corresponding IP address of domain-name information;
The maintenance module 13 is also used to the IP address phase recorded in the IP address currently obtained and the corresponding relationship
Meanwhile then updating the ageing time of first ageing timer;Remember in the IP address currently obtained and the corresponding relationship
When the IP address difference of record, it is determined that the corresponding IP address of domain name information changes, and using the IP currently obtained
The IP address recorded in the corresponding relationship is replaced in location, and updates the ageing time of first ageing timer.
The communication module 12 is also used to determining the domain when it is load-balancing device that domain name, which requests equipment,
After the corresponding IP address of name information changes, if it is determined that it is corresponding that the load-balancing device is used to provide the described domain-name information
Load balancing service, then the IP address after variation is sent to load-balancing device.
The maintenance module 13 is also used to record domain name information in domain name table corresponding with the IP address
It is second ageing timer of correspondence setting after relationship;Before the second ageing timer time-out, if institute
It states enquiry module 11 and receives the domain name mapping message comprising domain name information, then update the old of second ageing timer
Change the time;In the second ageing timer time-out, then the corresponding relationship is deleted;Wherein, the second ageing timer is old
Change ageing time of the time greater than the first ageing timer.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close
And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which is stored in a storage medium, if including
Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair
Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment,
Module or process in attached drawing are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment
It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On
The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.The embodiments of the present invention
Serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Disclosed above is only several specific embodiments of the invention, and still, the present invention is not limited to this, any ability
What the technical staff in domain can think variation should all fall into protection scope of the present invention.
Claims (8)
1. a kind of domain name analytic method, which is characterized in that the method is applied to software defined network SDN controller, the side
Method includes:
The domain name mapping message from domain name request equipment is received, and the domain-name information carried in message is parsed by domain name
Inquiry field famous-brand clock, domain name table are used to record the corresponding relationship of domain-name information and IP address;
If there are domain name information in domain name table, domain name letter is carried to domain name request equipment transmission
Cease the dns response message of corresponding IP address;
If domain name information is not present in domain name table, domain name information is obtained from domain name system DNS server
Corresponding IP address;The corresponding relationship of domain name information and the IP address is recorded in domain name table, and to the domain
Name request equipment sends the dns response message for carrying the IP address;
After the corresponding relationship for recording domain name information and the IP address in domain name table, the method also includes:
For first ageing timer of correspondence setting;In the first ageing timer time-out, obtained from the dns server
Take the corresponding IP address of domain name information;
If the IP address currently obtained and the IP address recorded in the corresponding relationship are identical, it is fixed to update first aging
When device ageing time;
If the IP address currently obtained and the IP address recorded in the corresponding relationship are different, it is determined that domain name information pair
The IP address answered changes, and replaces the IP address recorded in the corresponding relationship using the IP address currently obtained, and more
The ageing time of new first ageing timer.
2. the method according to claim 1, wherein being connect when domain name request equipment is user equipment
Before receiving the domain name mapping message from domain name request equipment, the method also includes:
Flow table is issued to the user equipment, the flow table is used to indicate the user equipment and asks the DNS for carrying domain-name information
It asks message to be encapsulated in domain name mapping message, and domain name is parsed and gives the SDN controller in message.
3. the method according to claim 1, wherein when domain name request equipment be load-balancing device when,
The method also includes:
After determining that the corresponding IP address of domain name information changes, if it is determined that the load-balancing device is for mentioning
For the corresponding load balancing service of domain name information, then the IP address after variation is sent to the load-balancing device.
4. the method according to claim 1, wherein in domain name table record domain name information with it is described
After the corresponding relationship of IP address, the method also includes:
For second ageing timer of correspondence setting;Before the second ageing timer time-out, if received
Domain name mapping message comprising domain name information then updates the ageing time of second ageing timer;Described second
When ageing timer time-out, then the corresponding relationship is deleted;
Wherein, the ageing time of the second ageing timer is greater than the ageing time of the first ageing timer.
5. a kind of domain name mapping device, which is characterized in that domain name resolver is controlled applied to software defined network SDN
Device, and domain name resolver includes:
Enquiry module parses in message for receiving the domain name mapping message from domain name request equipment, and by domain name
The dns query message domain name table of carrying, domain name table are used to record the corresponding relationship of domain-name information and IP address;
Communication module, for inquiring in domain name table there are when domain name information when the enquiry module, then Xiang Suoshu
Domain name request equipment sends the dns response message for carrying the corresponding IP address of domain name information;When the enquiry module is looked into
It askes out in domain name table there is no when domain name information, then obtains domain name information pair from domain name system DNS server
The IP address answered, and the dns response message for carrying the IP address is sent to domain name request equipment;
Maintenance module, for after the communication module gets the corresponding IP address of domain name information from dns server,
The corresponding relationship of domain name information and the IP address is recorded in domain name table;
The maintenance module, be also used to record in domain name table domain name information and the IP address corresponding relationship it
It afterwards, is first ageing timer of correspondence setting;
The communication module is also used in the first ageing timer time-out, obtains domain name from the dns server
The corresponding IP address of information;
The maintenance module, when the IP address for being also used to record in the IP address currently obtained and the corresponding relationship is identical,
Then update the ageing time of first ageing timer;The IP recorded in the IP address and the corresponding relationship currently obtained
When the difference of address, it is determined that the corresponding IP address of domain name information changes, and is replaced using the IP address currently obtained
The IP address recorded in the corresponding relationship, and update the ageing time of first ageing timer.
6. device according to claim 5, which is characterized in that
The communication module is also used to when it is user equipment that domain name, which requests equipment, is come from enquiry module reception
Before the domain name mapping message of domain name request equipment, Xiang Suoshu user equipment issues flow table, and the flow table is used to indicate the use
The DNS request message for carrying domain-name information is encapsulated in domain name mapping message by family equipment, and domain name is parsed in message
Give the SDN controller.
7. device according to claim 5, which is characterized in that
The communication module is also used to determining domain name information when it is load-balancing device that domain name, which requests equipment,
After corresponding IP address changes, if it is determined that it is corresponding negative that the load-balancing device is used to provide the described domain-name information
Balancing service is carried, then the IP address after variation is sent to load-balancing device.
8. device according to claim 5, which is characterized in that
The maintenance module, be also used to record in domain name table domain name information and the IP address corresponding relationship it
It afterwards, is second ageing timer of correspondence setting;Before the second ageing timer time-out, if the inquiry
Module receives the domain name mapping message comprising domain name information, then updates the ageing time of second ageing timer;
In the second ageing timer time-out, then the corresponding relationship is deleted;
Wherein, the ageing time of the second ageing timer is greater than the ageing time of the first ageing timer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610109492.7A CN105763668B (en) | 2016-02-26 | 2016-02-26 | A kind of domain name analytic method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610109492.7A CN105763668B (en) | 2016-02-26 | 2016-02-26 | A kind of domain name analytic method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105763668A CN105763668A (en) | 2016-07-13 |
CN105763668B true CN105763668B (en) | 2019-09-17 |
Family
ID=56331414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610109492.7A Active CN105763668B (en) | 2016-02-26 | 2016-02-26 | A kind of domain name analytic method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105763668B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603742B (en) * | 2016-12-14 | 2019-04-26 | 北京邮电大学 | A kind of update method and device of IP address and domain name corresponding relationship |
CN106878482B (en) * | 2017-01-03 | 2020-01-03 | 新华三技术有限公司 | Network address translation method and device |
CN106878193B (en) * | 2017-02-10 | 2022-03-22 | 新华三技术有限公司 | Load sharing method and device |
CN106888268A (en) * | 2017-03-24 | 2017-06-23 | 杭州迪普科技股份有限公司 | A kind of analysis method and device of domain name |
CN107231409B (en) * | 2017-05-08 | 2020-01-03 | 北京三快在线科技有限公司 | DNS data processing method and device, storage medium and computer equipment |
CN108737588B (en) * | 2018-03-29 | 2022-02-15 | 北京小米移动软件有限公司 | Domain name resolution method and device |
US20210385187A1 (en) * | 2018-10-15 | 2021-12-09 | Huawei Technologies Co., Ltd. | Method and device for performing domain name resolution by sending key value to grs server |
CN109347996A (en) * | 2018-12-10 | 2019-02-15 | 中共中央办公厅电子科技学院 | A kind of DNS domain name acquisition system and method |
CN111327713B (en) * | 2018-12-13 | 2022-06-14 | 中国移动通信集团广西有限公司 | DNS (Domain name Server) analysis method and device |
CN111866203B (en) * | 2019-04-29 | 2022-04-19 | 贵州白山云科技股份有限公司 | Domain name resolution method and device, readable storage medium and equipment |
CN110445641A (en) * | 2019-07-11 | 2019-11-12 | 烽火通信科技股份有限公司 | The main/standby switching method and system of dns-proxy server |
CN110730251B (en) * | 2019-09-10 | 2022-11-29 | 北京字节跳动网络技术有限公司 | Method, device, medium and electronic equipment for analyzing domain name |
CN113821461B (en) * | 2021-09-24 | 2023-10-27 | 牙木科技股份有限公司 | Domain name resolution caching method, DNS server and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610294A (en) * | 2009-07-15 | 2009-12-23 | 浪潮电子信息产业股份有限公司 | A kind of method of utilizing intelligent DNS to improve website visiting speed |
CN102014173A (en) * | 2010-11-01 | 2011-04-13 | 蓝汛网络科技(北京)有限公司 | Domain name redirecting control method, module and system |
CN102611763A (en) * | 2011-01-25 | 2012-07-25 | 中国移动通信集团公司 | DNS (Domain Name Server) inquiring method and equipment |
CN102882791A (en) * | 2012-10-30 | 2013-01-16 | 杭州迪普科技有限公司 | Method and device for processing DNS (Domain Name Server) business |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9059884B2 (en) * | 2011-01-20 | 2015-06-16 | Openwave Mobility, Inc. | Routing of IP traffic directed at domain names using DNS redirection |
-
2016
- 2016-02-26 CN CN201610109492.7A patent/CN105763668B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610294A (en) * | 2009-07-15 | 2009-12-23 | 浪潮电子信息产业股份有限公司 | A kind of method of utilizing intelligent DNS to improve website visiting speed |
CN102014173A (en) * | 2010-11-01 | 2011-04-13 | 蓝汛网络科技(北京)有限公司 | Domain name redirecting control method, module and system |
CN102611763A (en) * | 2011-01-25 | 2012-07-25 | 中国移动通信集团公司 | DNS (Domain Name Server) inquiring method and equipment |
CN102882791A (en) * | 2012-10-30 | 2013-01-16 | 杭州迪普科技有限公司 | Method and device for processing DNS (Domain Name Server) business |
Also Published As
Publication number | Publication date |
---|---|
CN105763668A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105763668B (en) | A kind of domain name analytic method and device | |
CN107078969B (en) | Realize computer equipment, the system and method for load balancing | |
US9614810B2 (en) | Address allocation processing method, apparatus and system | |
US7818454B2 (en) | Host migration system | |
US8433779B2 (en) | Computer system for allocating IP address to communication apparatus in computer subsystem newly added and method for newly adding computer subsystem to computer system | |
US9450912B2 (en) | Method and device for accessing application server | |
EP2566129A1 (en) | Method, apparatus and system for acquiring media access control address | |
WO2014123831A1 (en) | Method and apparatus for providing migration of cloud components across address domains | |
US20180217852A1 (en) | System service reloading method and apparatus | |
EP2824872A1 (en) | Host providing system and communication control method | |
JP6972714B2 (en) | Data acquisition programs, equipment, and methods | |
CN110474802B (en) | Equipment switching method and device and service system | |
US11743325B1 (en) | Centralized load balancing of resources in cloud edge locations embedded in telecommunications networks | |
US20150142921A1 (en) | Server System, Server, Server Control Method, and Non-Transitory Computer-Readable Medium Containing Server Control Program | |
CN106470251A (en) | Domain name analytic method and virtual DNS authority server | |
CN106464745A (en) | Dns server, client and data synchronization method | |
US9521109B2 (en) | Systems, methods, and computer-readable media for allocation and renewal of IP addresses | |
CN106411742A (en) | Message transmission method and device | |
CN103997479A (en) | Asymmetric service IP proxy method and equipment | |
US9130938B2 (en) | Method, switch, and system for processing a message | |
US9819545B2 (en) | Telecommunications node configuration management | |
CN102857547B (en) | The method and apparatus of distributed caching | |
CN109743357A (en) | A kind of successional implementation method of business access and device | |
CN107360095B (en) | Method for realizing port forwarding in router based on client host name | |
US8266257B1 (en) | Systems and methods for reducing the amount of time required to reconnect to a computing network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |