CN106487938B - The retransmission method and device of domain name - Google Patents

The retransmission method and device of domain name Download PDF

Info

Publication number
CN106487938B
CN106487938B CN201510524792.7A CN201510524792A CN106487938B CN 106487938 B CN106487938 B CN 106487938B CN 201510524792 A CN201510524792 A CN 201510524792A CN 106487938 B CN106487938 B CN 106487938B
Authority
CN
China
Prior art keywords
domain name
equipment
destination address
conversion link
forwarding table
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
Application number
CN201510524792.7A
Other languages
Chinese (zh)
Other versions
CN106487938A (en
Inventor
高春生
武云飞
魏煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201510524792.7A priority Critical patent/CN106487938B/en
Priority to PCT/CN2016/086010 priority patent/WO2017032145A1/en
Publication of CN106487938A publication Critical patent/CN106487938A/en
Application granted granted Critical
Publication of CN106487938B publication Critical patent/CN106487938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Abstract

The present invention provides a kind of retransmission method of domain name and devices, wherein this method comprises: receiving the request message that the equipment connecting with home gateway is sent, wherein carry domain name to be forwarded in request message;The conversion link and destination address that there is corresponding relationship with the lookup mark of equipment are searched from preconfigured domain name forwarding table, wherein the lookup mark of equipment includes: the device type and/or domain name expression formula of equipment;If find with equipment lookup mark have corresponding relationship conversion link and destination address, send destination address for domain name according to conversion link, through the invention, solve the problems, such as in the related technology cannot the domain name to different business carry out classification control.

Description

The retransmission method and device of domain name
Technical field
The present invention relates to the communications fields, in particular to the retransmission method and device of a kind of domain name.
Background technique
IPTV service and internet business are the basic services of domestic consumer, in home gateway configuration, usually configure one Routing virtual link is for surfing the Internet, and IPTV service is then realized by way of configuring bridge joint virtual link bundling port.For IPTV service, lower on-hook top box PPPOE dialing or dynamic host configuration protocol (Dynamic Host Configuration Protocol, referred to as DHCP) obtain big net address.Current family gateway equipment requires to hang under different ports different more Equipment, i.e. IPTV service can only be carried out in fixed port, and internet business is carried out in other ports, not only bad for industry Business extension also relates to the problem of lower multiple Web TV (abbreviation IPTV) equipment of extension will distribute multiple big net address.
On the other hand, the equipment for being configured with multirouting link, there is no the method for suitable control domain name forwarding and Strategy cannot achieve the personalized customization of business.
Summary of the invention
The present invention provides a kind of retransmission method of domain name and device, at least solve in the related technology cannot be to not of the same trade or business The domain name of business carries out the problem of classification control.
According to an aspect of the invention, there is provided a kind of retransmission method of domain name, comprising: reception is connect with home gateway Equipment send request message, wherein domain name to be forwarded is carried in the request message;Turn from preconfigured domain name Deliver conversion link and destination address that middle lookup has corresponding relationship with the lookup mark of the equipment, wherein the equipment Lookup mark include: the equipment device type and/or domain name expression formula;It is identified if finding with the lookup of the equipment Conversion link and destination address with corresponding relationship then send the destination for domain name according to the conversion link Location.
Further, the lookup of the equipment is identified as the device type of the equipment, wherein described from preconfigured The conversion link and destination address searched in domain name forwarding table with the lookup mark of the equipment with corresponding relationship include: from institute State the source address that the equipment is obtained in request message;Obtain the equipment that there is corresponding relationship with the source address of the equipment The device type;It searches to have with the device type of the equipment from domain name forwarding table and turn described in corresponding relationship Send out link and the destination address.
Further, before receiving the request message that the equipment connecting with home gateway is sent, further includes: set to be described Back-up matches the source address;Receive the facility information that the equipment is sent from the source address, wherein the facility information is used In the device type for identifying the equipment;Obtain the device type of the equipment of the facility information mark;Store the source The corresponding relationship of address and the facility information.
Further, the lookup of the equipment is identified as the device type of the equipment, wherein described from preconfigured The conversion link and destination address searched in domain name forwarding table with the lookup mark of the equipment with corresponding relationship include: from institute State the type identification information obtained in request message for identifying the device type of the equipment;Obtain the type identification information The device type of the equipment identified;It is searched from domain name forwarding table with the device type of the equipment with corresponding The conversion link and the destination address of relationship.
Further, the lookup mark with the equipment is being searched from preconfigured domain name forwarding table with corresponding pass Before the conversion link and destination address of system, further includes: receive configuration information, wherein the configuration information is used to indicate at least One group has the device type of corresponding relationship, conversion link, destination address;At least one set that the configuration information is indicated Device type, conversion link, destination address with corresponding relationship configure in domain name forwarding table.
Further, the reception configuration information includes: and receives dynamic host configuration protocol DHCP server to send really Recognize message, wherein customized Optional Field carries the configuration information in the confirmation message.
Further, the lookup of the equipment is identified as the domain name expression formula of the equipment, wherein described from being pre-configured with Domain name forwarding table in search with the equipment lookup mark have corresponding relationship conversion link and destination address include: from Domain name is obtained in the request message;It is searched and the matched domain name expression formula of domain name in domain name forwarding table; If finding the described and matched domain name expression formula of domain name, obtains from domain name forwarding table and matched with domain name Domain name expression formula have corresponding relationship the conversion link and the destination address.
Further, described search in domain name forwarding table with the matched domain name expression formula of domain name includes following One of: search whether there is the domain name expression formula for meeting first condition in domain name forwarding table, wherein described to meet first The domain name expression formula of condition is that the character of domain name expression formula is included in domain name;It is described if it exists to meet first condition Domain name expression formula, then using the domain name expression formula for meeting first condition as matched with domain name described in finding Domain name expression formula;Search whether there is the domain name expression formula for meeting second condition in domain name forwarding table, wherein described full The domain name expression formula of sufficient second condition is that the character of domain name expression formula is identical as the character in domain name;It is described if it exists Meet the domain name expression formula of second condition, then using the domain name expression formula for meeting second condition as described in finding and institute State the matched domain name expression formula of domain name;Search whether there is the domain name expression for meeting third condition in domain name forwarding table Formula, wherein the domain name expression formula for meeting second condition is to be not present and the word in domain name in domain name expression formula Identical and domain name expression formula character is accorded with to be not included in domain name;The domain name table for meeting third condition if it exists Up to formula, then expressed using the domain name expression formula for meeting third condition as described in finding with the matched domain name of domain name Formula.
Further, the lookup of the equipment is identified as the domain name expression of the device type and the equipment of the equipment Formula, wherein described search from preconfigured domain name forwarding table has turning for corresponding relationship with the lookup mark of the equipment It sends out link and destination address includes: the source address and domain name for obtaining the equipment from the request message;Acquisition and institute State equipment source address have corresponding relationship the equipment the device type, and from domain name forwarding table search with The device type of the equipment has the first conversion link and the first destination address of corresponding relationship;In domain name forwarding table Lookup and the matched domain name expression formula of domain name, if the described and matched domain name expression formula of domain name is found, from institute State the second conversion link and second for obtaining in domain name forwarding table and there is corresponding relationship with the matched domain name expression formula of domain name Destination address;Judge first conversion link and whether second conversion link identical and first destination address with Whether second destination address is identical;If first conversion link is identical as second conversion link and described first Destination address is identical as second destination address, then using first conversion link and the first destination address as finding There is the conversion link and destination address of corresponding relationship with the lookup mark of the equipment.
Further, the lookup of the equipment is identified as the domain name expression of the device type and the equipment of the equipment Formula, wherein described search from preconfigured domain name forwarding table has turning for corresponding relationship with the lookup mark of the equipment It sends out link and destination address includes: the type identification obtained from the request message for identifying the device type of the equipment Information and domain name;The device type for the equipment that the type identification information is identified is obtained, and is turned from domain name Deliver the first conversion link and the first destination address that middle lookup has corresponding relationship with the device type of the equipment;Described Lookup and the matched domain name expression formula of domain name in domain name forwarding table, if finding the described and matched domain name table of domain name Up to formula, then the second forwarding that there is corresponding relationship with the matched domain name expression formula of domain name is obtained from domain name forwarding table Link and the second destination address;Judge whether first conversion link and second conversion link are identical and described first Whether destination address and second destination address are identical;If first conversion link is identical as second conversion link, And first destination address is identical as second destination address, then makees first conversion link and the first destination address For the conversion link and destination address with the lookup mark of the equipment with corresponding relationship found.
Further, searching from preconfigured domain name forwarding table described has pair with the lookup of equipment mark Before the conversion link and destination address that should be related to, further includes: be configured to indicate that the strategy letter of selection domain name forwarding table Breath, wherein the policy information is used to indicate following one: for selecting that there is corresponding relationship with the device type of the equipment Conversion link and destination address domain name forwarding table;Forwarding chain for selecting that there is corresponding relationship with the domain name of the equipment The domain name forwarding table on road and destination address;It is corresponding for selecting to have with the domain name of the device type of the equipment and the equipment The conversion link of relationship and the domain name forwarding table of destination address.
According to another aspect of the present invention, a kind of retransmission unit of domain name is provided, comprising: the first receiving module is used for Receive the request message that the equipment connecting with home gateway is sent, wherein domain name to be forwarded is carried in the request message; Searching module has turning for corresponding relationship for searching the lookup with the equipment from preconfigured domain name forwarding table and identifying Send out link and destination address, wherein the lookup mark of the equipment includes: the device type and/or domain name expression of the equipment Formula;Sending module, if for finding the conversion link and destination address that there is corresponding relationship with the lookup mark of the equipment, Then the destination address is sent by domain name according to the conversion link.
Further, the lookup of the equipment is identified as the device type of the equipment, and the searching module includes: first Acquiring unit, for obtaining the source address of the equipment from the request message;Second acquisition unit, for obtain with it is described The source address of equipment has the device type of the equipment of corresponding relationship;First searching unit is used for from domain name The conversion link and the destination address that there is corresponding relationship with the device type of the equipment are searched in forwarding table.
Further, described device further include: distribution module, for receiving what the equipment connecting with home gateway was sent Before request message, the source address is distributed for the equipment;Second receiving module, for receiving the equipment from the source The facility information sent on location, wherein the facility information is used to identify the device type of the equipment;Module is obtained, is used for Obtain the device type of the equipment of the facility information mark;Memory module, for storing the source address and described setting The corresponding relationship of standby information.
Further, the lookup of the equipment is identified as the device type of the equipment, and the searching module includes: third Acquiring unit, for obtaining the type identification information for identifying the device type of the equipment from the request message;The Four acquiring units, for obtaining the device type for the equipment that the type identification information is identified;Second searching unit from The conversion link that there is corresponding relationship with the device type of the equipment and the purpose are searched in domain name forwarding table Address.
Further, described device further include: third receiving module, for being looked into from preconfigured domain name forwarding table It looks for before the conversion link and destination address that there is corresponding relationship with the lookup mark of the equipment, receives configuration information, wherein The configuration information is used to indicate at least one set of device type with corresponding relationship, conversion link, destination address;First configuration Module, at least one set of device type, conversion link, purpose with corresponding relationship for indicating the configuration information Address configuration is in domain name forwarding table.
Further, the reception configuration information includes: and receives dynamic host configuration protocol DHCP server to send really Recognize message, wherein customized Optional Field carries the configuration information in the confirmation message.
Further, the lookup of the equipment is identified as the domain name expression formula of the equipment, and the searching module includes: Five acquiring units, for obtaining domain name from the request message;Third searching unit, in domain name forwarding table Middle lookup and the matched domain name expression formula of domain name;6th acquiring unit, if being matched for finding described with domain name Domain name expression formula, then obtaining from domain name forwarding table has corresponding relationship with domain name matched domain name expression formula The conversion link and the destination address.
Further, the third searching unit is searched and the matched domain name table of domain name in domain name forwarding table Include following one up to formula: searching whether there is the domain name expression formula for meeting first condition in domain name forwarding table, wherein The domain name expression formula for meeting first condition is that the character of domain name expression formula is included in domain name;It is described if it exists Meet the domain name expression formula of first condition, then using the domain name expression formula for meeting first condition as described in finding and institute State the matched domain name expression formula of domain name;Search whether there is the domain name expression for meeting second condition in domain name forwarding table Formula, wherein the domain name expression formula for meeting second condition is the character in the character and domain name of domain name expression formula It is identical;The domain name expression formula for meeting second condition if it exists, then using the domain name expression formula for meeting second condition as The matched domain name expression formula of the described and domain name found;It searches whether to exist in domain name forwarding table and meets third The domain name expression formula of condition, wherein the domain name expression formula for meeting second condition be domain name expression formula in there is no with Character in domain name is identical and the character of domain name expression formula is not included in domain name;It is described if it exists to meet the The domain name expression formula of three conditions, then using the domain name expression formula for meeting third condition as described in finding and domain name Matched domain name expression formula.
Further, the lookup of the equipment is identified as the domain name expression of the device type and the equipment of the equipment Formula, the searching module include: the 7th acquiring unit, for obtaining source address and the institute of the equipment from the request message State domain name;First processing units are set described in the equipment for having corresponding relationship with the source address of the equipment for obtaining Standby type, and the first conversion link that there is corresponding relationship with the device type of the equipment is searched from domain name forwarding table With the first destination address;The second processing unit, for being searched and the matched domain name table of domain name in domain name forwarding table Up to formula, if finding described with the matched domain name expression formula of domain name, acquisition and the domain from domain name forwarding table The matched domain name expression formula of name has the second conversion link and the second destination address of corresponding relationship;First judging unit, is used for Judge first conversion link and whether second conversion link identical and first destination address and second mesh Address it is whether identical;First determination unit, and if institute identical as second conversion link for first conversion link It is identical as second destination address to state the first destination address, then using first conversion link and the first destination address as looking into The conversion link and destination address with equipment lookup mark with corresponding relationship that be finding.
Further, the lookup of the equipment is identified as the domain name expression of the device type and the equipment of the equipment Formula, the searching module includes: the 8th acquisition module, for obtaining from the request message for identifying setting for the equipment The type identification information and domain name of standby type;Third processing unit is identified for obtaining the type identification information The device type of the equipment, and search with the device type of the equipment from domain name forwarding table with corresponding relationship First conversion link and the first destination address;Fourth processing unit, for lookup and domain name in domain name forwarding table Matched domain name expression formula, if the described and matched domain name expression formula of domain name is found, from domain name forwarding table Obtain the second conversion link and the second destination address that there is corresponding relationship with the matched domain name expression formula of domain name;Second sentences Disconnected unit, for judging first conversion link and whether second conversion link identical and first destination address It is whether identical as second destination address;Second determination unit, if for first conversion link and second forwarding Link is identical and first destination address is identical as second destination address, then by first conversion link and first Destination address is as the conversion link and destination address with the lookup mark of the equipment with corresponding relationship found.
Further, described device further include: the second configuration module is used for described from preconfigured domain name forwarding table Before the lookup mark of middle lookup and the equipment has the conversion link and destination address of corresponding relationship, it is configured to indicate that choosing It selects the policy information of domain name forwarding table, wherein the policy information is used to indicate following one: being set for selecting with described Standby device type has the conversion link of corresponding relationship and the domain name forwarding table of destination address;For selecting and the equipment Domain name has the conversion link of corresponding relationship and the domain name forwarding table of destination address;For selecting and the device type of the equipment There is the conversion link of corresponding relationship and the domain name forwarding table of destination address with the domain name of the equipment.
Through the invention, the request message sent using the equipment connecting with home gateway is received, wherein the request report Domain name to be forwarded is carried in text;Searching from preconfigured domain name forwarding table has pair with the lookup of equipment mark The conversion link and destination address that should be related to, wherein the equipment lookup mark include: the equipment device type and/ Or domain name;If finding the conversion link and destination address that there is corresponding relationship with the lookup mark of the equipment, press Domain name is sent to according to the conversion link mode of the destination address, solving in the related technology cannot be to not of the same trade or business The domain name of business carries out the problem of classification control, meets the classification control of user's domain name under multiple business scene, does not require to use Family carries out specifically configured and port and uses limitation.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the retransmission method of domain name according to an embodiment of the present invention;
Fig. 2 is the structural block diagram of the retransmission unit of domain name according to an embodiment of the present invention;
Fig. 3 is the alternative construction block diagram one of the retransmission unit of domain name according to an embodiment of the present invention;
Fig. 4 is the alternative construction block diagram two of the retransmission unit of domain name according to an embodiment of the present invention;
Fig. 5 is the alternative construction block diagram three of the retransmission unit of domain name according to an embodiment of the present invention;
Fig. 6 is the structural block diagram of third receiving module according to an embodiment of the present invention;
Fig. 7 is the alternative construction block diagram five of the retransmission unit of domain name according to an embodiment of the present invention;
Fig. 8 is the alternative construction block diagram six of the retransmission unit of domain name according to an embodiment of the present invention;
Fig. 9 is the alternative construction block diagram seven of the retransmission unit of domain name according to an embodiment of the present invention;
Figure 10 is the alternative construction block diagram eight of the retransmission unit of domain name according to an embodiment of the present invention;
Figure 11 is the flow diagram one of the domain name retransmission method of alternative embodiment of the present invention;
Figure 12 is the flow diagram two of the domain name retransmission method of alternative embodiment of the present invention;
Figure 13 is the flow diagram three of the domain name retransmission method of alternative embodiment of the present invention;
Figure 14 is that the equipment domain name forwarding table of alternative embodiment of the present invention obtains module work flow chart;
Figure 15 is that the description domain name forwarding table of alternative embodiment of the present invention obtains module work flow chart;
Figure 16 is the domain name forwarding module work flow diagram of alternative embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
A kind of retransmission method of domain name is provided in the present embodiment, and Fig. 1 is turning for domain name according to an embodiment of the present invention The flow chart of forwarding method, as shown in Figure 1, the process includes the following steps:
Step S102 receives the request message that the equipment connecting with home gateway is sent, wherein carry in request message Domain name to be forwarded;
Step S104, searching from preconfigured domain name forwarding table has turning for corresponding relationship with the lookup mark of equipment Send out link and destination address, wherein the lookup mark of equipment includes: the device type and/or domain name expression formula of equipment;
Step S106, if finding the conversion link and destination address that there is corresponding relationship with the lookup mark of equipment, Destination address is sent by domain name according to conversion link.
Through the invention, the request message sent using the equipment connecting with home gateway is received, wherein the request report Domain name to be forwarded is carried in text;Searching from preconfigured domain name forwarding table has pair with the lookup of equipment mark The conversion link and destination address that should be related to, wherein the equipment lookup mark include: the equipment device type and/ Or domain name;If finding the conversion link and destination address that there is corresponding relationship with the lookup mark of the equipment, press Domain name is sent to according to the conversion link mode of the destination address, solving in the related technology cannot be to not of the same trade or business The domain name of business carries out the problem of classification control, meets the classification control of user's domain name under multiple business application scenarios, should not It asks user to carry out specifically configured and port and uses limitation.
Optionally, the lookup mark of equipment can be divided into three kinds of application scenarios, the first application scenarios is the lookup of equipment When being identified as the device type of equipment, second of application scenarios is identified as domain name for the lookup that the lookup of equipment is identified as equipment When, the third application scenarios is identified as the device type and domain name of equipment for the lookup that the lookup of equipment is identified as equipment.Under Face is respectively further described above-mentioned three kinds of application scenarios according in the optional embodiment of the present embodiment.
In the first application scenarios, when the lookup of equipment is identified as the device type of equipment, according to the present embodiment can It selects in embodiment, the forwarding chain that there is corresponding relationship with the lookup mark of equipment is searched from preconfigured domain name forwarding table Road and destination address include:
S11 obtains the source address of equipment from request message;
S12 obtains the device type for the equipment for having corresponding relationship with the source address of equipment;
S13 searches the conversion link for having corresponding relationship with the device type of equipment and destination from domain name forwarding table Location.
According to the optional embodiment of the present embodiment, the request message for receiving the equipment transmission connecting with home gateway it Before, further includes:
S21 distributes source address for equipment;
S22, the facility information that receiving device is sent from source address, wherein the equipment that facility information is used to identify equipment Type;
S23 obtains the device type of the equipment of facility information mark;
S24 stores the corresponding relationship of source address and facility information.
According to the optional embodiment of the present embodiment, the lookup mark with equipment is searched from preconfigured domain name forwarding table Knowing conversion link and destination address with corresponding relationship includes:
S31 obtains the type identification information for identifying the device type of equipment from request message;
S32 obtains the device type for the equipment that type identification information is identified;
S33 searches the conversion link for having corresponding relationship with the device type of equipment and destination from domain name forwarding table Location.
In the optional embodiment according to the present embodiment, when the lookup of equipment is identified as the device type of equipment, In The conversion link and destination address that there is corresponding relationship with the lookup mark of equipment are searched from preconfigured domain name forwarding table Before, further includes:
S41 receives configuration information, wherein configuration information be used to indicate at least one set of device type with corresponding relationship, Conversion link, destination address;
At least one set of configuration information instruction is had the device type of corresponding relationship, conversion link, destination address by S42 Configuration is in domain name forwarding table.
Optionally, receiving configuration information can be to receive the confirmation confirmation message that Dynamic Host Configuration Protocol server is sent, in the present embodiment In can be ACK message, wherein customized Optional Field (if ACK message is then OPTION field) in the confirmation message Carry configuration information.
Second of application scenarios according to an embodiment of the present invention, when the lookup of equipment is identified as the domain name expression formula of equipment, The conversion link and destination address that there is corresponding relationship with the lookup mark of equipment are searched from preconfigured domain name forwarding table Include:
S51 obtains domain name from request message;
S52 is searched and the matched domain name expression formula of domain name in domain name forwarding table;
S53, if finding with the matched domain name expression formula of domain name, acquisition and the matched domain of domain name from domain name forwarding table Name expression formula has the conversion link and destination address of corresponding relationship.
Optionally, it in second of application scenarios, is searched and the matched domain name expression formula packet of domain name in domain name forwarding table Include following one:
Search whether there is the domain name expression formula for meeting first condition in domain name forwarding table, wherein meet first condition Domain name expression formula be domain name expression formula character be included in domain name in;Meet the domain name expression formula of first condition if it exists, then Using the domain name expression formula for meeting first condition as finding and domain name matched domain name expression formula;
Search whether there is the domain name expression formula for meeting second condition in domain name forwarding table, wherein meet second condition Domain name expression formula be domain name expression formula character it is identical as the character in domain name;Meet the domain name expression of second condition if it exists Formula, then using the domain name expression formula for meeting second condition as finding and domain name matched domain name expression formula;
Search whether there is the domain name expression formula for meeting third condition in domain name forwarding table, wherein meet second condition Domain name expression formula be to be not included in domain name expression formula there is no character identical as the character in domain name and domain name expression formula In domain name;Meet the domain name expression formula of third condition if it exists, then using the domain name expression formula for meeting third condition as finding With the matched domain name expression formula of domain name.
The third application scenarios according to an embodiment of the present invention, the lookup of equipment are identified as the device type and equipment of equipment Domain name expression formula, from preconfigured domain name forwarding table search with equipment lookup mark have corresponding relationship forwarding chain Road and destination address include:
S61 obtains the source address and domain name of equipment from request message;
S62, obtains the device type for the equipment for having corresponding relationship with the source address of equipment, and looks into from domain name forwarding table Look for the first conversion link and the first destination address that there is corresponding relationship with the device type of equipment;
S63, lookup and the matched domain name expression formula of domain name in domain name forwarding table, if finding and the matched domain name of domain name Expression formula, then from domain name forwarding table obtain with the matched domain name expression formula of domain name have corresponding relationship the second conversion link and Second destination address;
S64, judges the first conversion link and whether the second conversion link identical and the first destination address and the second destination Whether location is identical;
S65, if the first conversion link is identical as the second conversion link and the first destination address and the second destination address phase Together, then using the first conversion link and the first destination address as turn with the lookup mark of equipment with corresponding relationship found Send out link and destination address.
In third according to an embodiment of the present invention under application scenarios, lookup and equipment from preconfigured domain name forwarding table Lookup mark have corresponding relationship conversion link and destination address include:
S71 obtains type identification information and domain name for identifying the device type of equipment from request message;
S72 obtains the device type for the equipment that type identification information is identified, and lookup and equipment from domain name forwarding table Device type have corresponding relationship the first conversion link and the first destination address;
S73, lookup and the matched domain name expression formula of domain name in domain name forwarding table, if finding and the matched domain name of domain name Expression formula, then from domain name forwarding table obtain with the matched domain name expression formula of domain name have corresponding relationship the second conversion link and Second destination address;
S74, judges the first conversion link and whether the second conversion link identical and the first destination address and the second destination Whether location is identical;
S75, if the first conversion link is identical as the second conversion link and the first destination address and the second destination address phase Together, then using the first conversion link and the first destination address as turn with the lookup mark of equipment with corresponding relationship found Send out link and destination address.
Based on above-mentioned three kinds of application scenarios, in an alternative embodiment of the invention, forwarded from preconfigured domain name Before searching the conversion link and destination address for having corresponding relationship with the lookup mark of equipment in table, the method for the present embodiment is also May include: the policy information for being configured to indicate that selection domain name forwarding table, wherein policy information is used to indicate following one: For selecting the domain name forwarding table of the conversion link that there is corresponding relationship with the device type of equipment and destination address;For selecting There is the conversion link of corresponding relationship and the domain name forwarding table of destination address with the domain name of equipment;For selecting and the equipment of equipment The domain name of type and equipment has the conversion link of corresponding relationship and the domain name forwarding table of destination address.That is, for this Three kinds of application scenarios in embodiment can carry out the sequence of priority according to the policy information, i.e. the matching of domain name expression formula can To be that the matching of device type or the matching of domain name or device type are matched with domain name simultaneously.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) method that executes each embodiment of the present invention.
A kind of retransmission unit of domain name is additionally provided in the present embodiment, and the device is for realizing above-described embodiment and preferably Embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " The combination of software and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or The realization of the combination of person's software and hardware is also that may and be contemplated.
Fig. 2 is the structural block diagram of the retransmission unit of domain name according to an embodiment of the present invention, as shown in Fig. 2, the device includes: First receiving module 20, the request message sent for receiving the equipment connecting with home gateway, wherein carried in request message There is domain name to be forwarded;Searching module 22, for searching the lookup mark tool with equipment from preconfigured domain name forwarding table There are the conversion link and destination address of corresponding relationship, wherein the lookup mark of equipment includes: device type and/or the domain of equipment Name expression formula;Sending module 24, if for finding the conversion link and purpose that there is corresponding relationship with the lookup mark of equipment Address then sends destination address for domain name according to conversion link.
Fig. 3 is the alternative construction block diagram one of the retransmission unit of domain name according to an embodiment of the present invention, as shown in figure 3, setting When standby lookup is identified as the device type of equipment, the device in addition to including all modules shown in Fig. 2, also wrap by searching module 22 It includes: first acquisition unit 30, for obtaining the source address of equipment from request message;Second acquisition unit 32 is obtained with first Unit 30 is of coupled connections, for obtaining the device type for the equipment for having corresponding relationship with the source address of equipment;First searches list Member 34, is of coupled connections with second acquisition unit 32, for being searched from domain name forwarding table with the device type of equipment with corresponding The conversion link and destination address of relationship.
Fig. 4 is the alternative construction block diagram two of the retransmission unit of domain name according to an embodiment of the present invention, as shown in figure 4, the dress It sets in addition to including all modules shown in Fig. 3, device further include: distribution module 40, for what is connect in reception with home gateway Before the request message that equipment is sent, source address is distributed for equipment;Second receiving module 42, is of coupled connections with distribution module 40, The facility information sent from source address for receiving device, wherein facility information is used to identify the device type of equipment;It obtains Module 44, the device type of the equipment for obtaining facility information mark;Memory module 46, with 42 company of coupling of the second receiving module It connects, for storing the corresponding relationship of source address and facility information.
Fig. 5 is the alternative construction block diagram three of the retransmission unit of domain name according to an embodiment of the present invention, as shown in figure 5, setting When standby lookup is identified as the device type of equipment, the device in addition to including all modules shown in Fig. 2, also wrap by searching module 22 It includes: third acquiring unit 50, for obtaining the type identification information for identifying the device type of equipment from request message;The Four acquiring units 52, are of coupled connections with third acquiring unit 50, the equipment for obtaining the equipment that type identification information is identified Type;Second searching unit 54, be of coupled connections with the 4th acquiring unit 52, sets for searching from domain name forwarding table with equipment Standby type has the conversion link and destination address of corresponding relationship.
Fig. 6 is the structural block diagram of third receiving module according to an embodiment of the present invention, as shown in fig. 6, in the lookup of equipment When being identified as the device type of equipment, the device is in addition to including Fig. 2 to Fig. 5 all modules shown in any one, device further include: Third receiving module 60, for searching the lookup mark with equipment from preconfigured domain name forwarding table with corresponding relationship Conversion link and destination address before, receive configuration information, wherein configuration information, which is used to indicate, at least one set of has corresponding close The device type of system, conversion link, destination address;First configuration module 62, is of coupled connections with third receiving module 60, and being used for will There is at least one set of configuration information instruction the device type of corresponding relationship, conversion link, destination address configuration to forward in domain name In table.
According in the optional embodiment for being originally embodiment, when the lookup of equipment is identified as the device type of equipment, Receiving configuration information includes: the ACK message for receiving Dynamic Host Configuration Protocol server and sending, wherein customized OPTION field in ACK message Carry configuration information.
Fig. 7 is the alternative construction block diagram five of the retransmission unit of domain name according to an embodiment of the present invention, as shown in fig. 7, setting When standby lookup is identified as the device type of equipment, the device in addition to including all modules shown in Fig. 2, also wrap by searching module 22 It includes: the 5th acquiring unit 70, for obtaining domain name from request message;Third searching unit 72, with 70 coupling of the 5th acquiring unit Connection is closed, for searching and the matched domain name expression formula of domain name in domain name forwarding table;6th acquiring unit 74 is searched with third Unit 72 is of coupled connections, if for finding with the matched domain name expression formula of domain name, acquisition and domain name from domain name forwarding table Matched domain name expression formula has the conversion link and destination address of corresponding relationship.
Optional embodiment according to the present invention, when the lookup of equipment is identified as the device type of equipment, third is searched single It includes following one that member, which is searched in domain name forwarding table with the matched domain name expression formula of domain name: being searched whether in domain name forwarding table In the presence of the domain name expression formula for meeting first condition, wherein the domain name expression formula for meeting first condition is the character of domain name expression formula Included in domain name;Meet the domain name expression formula of first condition if it exists, then will meet the domain name expression formula of first condition as Find with the matched domain name expression formula of domain name;Search whether there is the domain name table for meeting second condition in domain name forwarding table Up to formula, wherein it is identical as the character in domain name for the character of domain name expression formula to meet the domain name expression formula of second condition;If it exists Meet the domain name expression formula of second condition, then it is matched with domain name using the domain name expression formula for meeting second condition as what is found Domain name expression formula;Search whether there is the domain name expression formula for meeting third condition in domain name forwarding table, wherein meet Article 2 The domain name expression formula of part is not include in domain name expression formula there is no character identical as the character in domain name and domain name expression formula In domain name;Meet the domain name expression formula of third condition if it exists, then will meet the domain name expression formula of third condition as lookup Arrive with the matched domain name expression formula of domain name.
Fig. 8 is the alternative construction block diagram six of the retransmission unit of domain name according to an embodiment of the present invention, the lookup mark of equipment For the device type of equipment and the domain name expression formula of equipment, as shown in figure 8, the lookup in equipment is identified as the device type of equipment When, for the device in addition to including all modules shown in Fig. 2, searching module 22 includes: the 7th acquiring unit 80, for reporting from request The source address and domain name of equipment are obtained in text;First processing units 82 are of coupled connections with the 7th acquiring unit 20, for obtain with The source address of equipment has the device type of the equipment of corresponding relationship, and the device type with equipment is searched from domain name forwarding table The first conversion link and the first destination address with corresponding relationship;The second processing unit 84 is coupled with first processing units 82 Connection, for the lookup in domain name forwarding table and the matched domain name expression formula of domain name, if finding and the matched domain name table of domain name Up to formula, then the second conversion link that there is corresponding relationship with the matched domain name expression formula of domain name and the are obtained from domain name forwarding table Two destination addresses;First judging unit 86, is of coupled connections with the second processing unit 84, for judging the first conversion link and second Whether conversion link is identical and whether the first destination address and the second destination address are identical;First determination unit 88, sentences with first Disconnected unit 86 is of coupled connections, and if first destination address identical as the second conversion link for the first conversion link and the second mesh Address it is identical, then have using the first conversion link and the first destination address as the lookup mark with equipment found corresponding The conversion link and destination address of relationship.
Fig. 9 is the alternative construction block diagram seven of the retransmission unit of domain name according to an embodiment of the present invention, the lookup mark of equipment For the device type of equipment and the domain name expression formula of equipment, as shown in figure 9, the lookup in equipment is identified as the device type of equipment When, for the device in addition to including all modules shown in Fig. 2, searching module 22 includes: the 8th acquiring unit 90, for reporting from request The type identification information and domain name for identifying the device type of equipment are obtained in text;Third processing unit 92 is obtained with the 8th Unit 90 is of coupled connections, and obtains with the 8th, for obtaining the device type for the equipment that type identification information is identified, and from domain name The first conversion link and the first destination address that there is corresponding relationship with the device type of equipment are searched in forwarding table;Fourth process Unit 94 is of coupled connections with third processing unit 92, is used for lookup and the matched domain name expression formula of domain name in domain name forwarding table, If find with the matched domain name expression formula of domain name, obtaining from domain name forwarding table has with the matched domain name expression formula of domain name The second conversion link and the second destination address of corresponding relationship;Second judgment unit 96 is of coupled connections with fourth processing unit 94, For judge whether identical the first conversion link and the second conversion link and the first destination address and the second destination address whether phase Together;Second determination unit 98, is of coupled connections with second judgment unit 96, if being used for the first conversion link and the second conversion link phase With and the first destination address it is identical as the second destination address, then using the first conversion link and the first destination address as finding With equipment lookup mark have corresponding relationship conversion link and destination address.
Figure 10 is the alternative construction block diagram eight of the retransmission unit of domain name according to an embodiment of the present invention, the lookup mark of equipment The equipment class of equipment is identified as in the lookup of equipment as shown in Figure 10 for the device type of equipment and the domain name expression formula of equipment When type, the device is in addition to including all modules shown in Fig. 2, device further include: the second configuration module 100, for from preparatory Before searching the conversion link and destination address that there is corresponding relationship with the lookup mark of equipment in the domain name forwarding table of configuration, match Set the policy information for being used to indicate selection domain name forwarding table, wherein policy information is used to indicate following one: for selecting and setting Standby device type has the conversion link of corresponding relationship and the domain name forwarding table of destination address;For selecting and the domain name of equipment The domain name forwarding table of conversion link and destination address with corresponding relationship;For selecting and the device type of equipment and equipment Domain name has the conversion link of corresponding relationship and the domain name forwarding table of destination address.
This programme is described in detail below with reference to alternative embodiment of the invention, this alternative embodiment describes one kind The method that channel control is carried out under family gateway equipment multi-service scene, and describe a kind of be directed under different business scene and carry out The strategy of domain name forwarding, solves domain name forwarding problems under multi-service scene, meets different business demand scenes.This is optional Embodiment carries out the configuration of domain name forwarding table by certain agreement, as controlled domain name by DHCP protocol or TR069 agreement Forwarding, TR069 agreement are one of the technical specifications developed by DSL forum, and full name is " CPE wide area network management agreement ", Referred to as customer terminal equipment wide area network management agreement.For the domain name request of LAN side equipment, nslookup forwarding table carries out domain name Forwarding.This alternative embodiment proposes the domain name concept of forwarding table, defines domain name forwarding table information, and solve relevant information Acquisition modes.
The domain name forwarding table of this alternative embodiment include following information: device type, domain name expression formula, priority policy, Conversion link and IP address list.
Wherein, device type indicates to hang standby type information under home gateway, is one that standby safety certification is hung under Part, device type information can pass through DHCP protocol dynamic acquisition.For the distinct device hung under family gateway equipment, use DHCP mode obtains address, and home gateway hangs standby type information under the DHCP OPTION60 acquisition of information by agreement, i.e., Detect PC equipment or STB equipment etc..In addition, device type information can also pass through Tr069 protocol configuration.
Domain name expression formula indicates the matched domain-name information of needs, and for being matched with domain name request address, which can It can also be with fuzzy matching with absolute matches.Such as issuing domain name addresses is " * iptv* ", as long as then containing in domain name addresses " iptv " character then representative domain name expression formula successful match.
Priority policy expression is forwarded according to which kind of mode of priority, i.e., device type is preferential or domain name expression formula is excellent First.Priority policy can be arranged or modify by home gateway default configuration or by Tr069 agreement.Such as it is arranged preferential Matching unit type then carries out the forwarding of domain-name information as long as device type matching, and priority match domain name expression formula is such as arranged Domain name expression formula successful match then carries out the forwarding of domain-name information, device type and domain name expression formula if being set as compatibility mode Equal successful match just carries out the forwarding of domain-name information.
Conversion link indicates the path of domain name forwarding, that is, exists empty by which in the case where a plurality of virtual flow-line link Quasi- routing link forwarding.If IPTV service is forwarded by the virtual flow-line link of IPTV, the void that internet business passes through INTERNET Quasi- routing link forwarding.
IP address list indicates purpose domain name/IP address information, that is, the purpose IP address forwarded.It can be one or more IP address, or empty, empty situation indicates that the domain name request of successful match does not forward.The case where multiple IP address, indicates to divide Domain name request message is not forwarded to multiple IP address.
If priority policy is configured to priority match device type, domain name matching condition is reduced to device type letter Breath, i.e. domain name forwarding table are degraded are as follows:
Device type, conversion link and IP address list.
It is equipment domain name forwarding table that this alternative embodiment, which defines this forwarding entry,.Domain is carried out by matching unit information The forwarding of name.For the distinct device hung under family gateway equipment, address is obtained using DHCP mode, home gateway passes through agreement DHCP OPTION60 acquisition of information under hang standby type information, that is, detect PC equipment or STB equipment.Home gateway is dynamic Standby information table is hung under state maintenance.Such as the domain name request message that PC equipment is sent, by surfing the Internet, virtual link is forwarded, The domain name request that STB equipment is sent, is forwarded by IPTV virtual flow-line link.
If priority policy is configured to priority match domain name expression formula, domain name matching condition is reduced to domain name expression formula Information, i.e. domain name forwarding table are degraded are as follows: domain name expression formula, conversion link and IP address list.
This alternative embodiment defines this forwarding entry as description domain name forwarding table, and description domain name forwarding table is by obtaining domain Name expression formula, conversion link and IP address list generate.The acquisition modes for describing domain name forwarding table can be dynamic by DHCP protocol State obtains.Since DHCP standard agreement does not include the configuration to domain name, this patent extends DHCP OPTION field, passes through Customized DHCP OPTION issues description domain name forwarding table information.I.e. virtual flow-line chain road direction server obtain address when It waits and description field famous-brand clock information is issued by server.In addition, the acquisition of description domain name forwarding table can also be obtained by Tr069 agreement It takes.
By this optional embodiment, the classification control of domain name under the integrated services scenes such as user's online or IPTV is met System, dynamic implement different data business separation.Do not require user to carry out specifically configured and port using limitation, Project Realization and Deployment is simple, at low cost, has certain guidance and promotional value for the promotion of access device integrated service.
The concrete application and implementing procedure of this alternative embodiment are as follows:
Figure 11 is the flow diagram one of the domain name retransmission method of alternative embodiment of the present invention, as shown in figure 11, optional reality Example 1 is applied to include the following steps:
Step S1101 routes virtual link to server and gets IP address and domain-name information;
Home gateway is prefabricated or configures two routing virtual links for carrying out internet business and IPTV service by medium. Routing link obtains IP address and domain-name information to server by DHCP.
Step S1102 gives down and hangs back-up with address;
Processing mode based on this alternative embodiment, LAN side equipment can arbitrarily be articulated in the LAN mouth of home gateway, LAN side By DHCP protocol to home gateway applied address, equipment domain name forwarding table obtains after module receives and obtains facility information equipment, After carrying out facility information safety check, gives down and hang back-up with IP address.
Step S1103, according to the facility information generating device domain name forwarding table of acquisition;
Equipment domain name forwarding table forwards for realizing distinct device to different routing links, wherein the forwarding of equipment domain name Table contains device type, conversion link and purpose IP address link table information.Such as the equipment domain name forwarding table of acquisition are as follows:
Meaning is the domain name request that STB is sent to be forwarded by IPTV virtual flow-line link, purpose IP address is 10.10.10.10, the domain name request sent for PC equipment, is forwarded by INTERNT virtual flow-line link, and purpose IP address is 20.20.20.20。
Step S1104 handles the domain name request of LAN side, forwards according to equipment domain name forwarding table;
The domain name request message for parsing LAN side is matched to equipment by MAC, VLAN and IP address information for obtaining message Type information is forwarded according to equipment domain name forwarding table.
Step S105 handles domain name server (DNS) response message, is forwarded to LAN side equipment;
The DNS response message that resolution server is replied extracts message information, such as IP address and TTL time, and message is turned It is dealt into LAN side.
So far, process terminates.
Figure 12 is the flow diagram two of the domain name retransmission method of alternative embodiment of the present invention, as shown in figure 12, optional reality Applying example 2 includes:
Step S1201, routing virtual link initiate DHCP request to server and carry customized OPTION request;
Customized OPTION information is carried in the embodiment in DHCP request message, such as customized OPTION is 224.Hair Request OPTION224 is carried when playing DHCP request in OPTION55.Certainly, it can be supported in the process pair The request of OPTION121 or other correlation OPTION.
Step S1202, resolution server reply message, obtain IP address, and generate description field according to customized OPTION Name forwarding table;
Customized OPTION information is carried in the ACK message of Dynamic Host Configuration Protocol server then to parse such as OPTION 224 OPTION224 acquisition of information domain name forwarding information, configuration description domain name forwarding table.Describing domain name forwarding table includes following information: Domain name expression formula, conversion link and IP address list.Wherein domain name expression formula can be accurate domain name and be also possible to obscure domain name, Domain name purpose IP address list can be an IP address and be also possible to multiple domain name/IP address.Such as issue following information:
First entry representation passes through the routing chain of IPTV as long as the information for containing " iptv " in domain name request message Road is forwarded, and the purpose IP address of forwarding is 10.10.10.10;Second entry representation domain name request message carries The domain name request of " zte.com.cn " is forwarded by IPTV routing link, and the purpose IP address of forwarding is 20.20.20.20;Third Item indicates forwarding by INTERNET routing link comprising " test.com " in domain name request message, and purpose IP address is 30.30.30.30.Article 4 indicates that the domain name forwarding entry of front does not have to turn in matched situation by INTERNT routing link Hair, the purpose IP address of forwarding is 40.40.40 and 50.50.50.50.The same equipment may be implemented by this control mode The domain name request of different business be sent to different routing virtual link or different name servers.It is advantageously implemented business Particularization customization.
Step S1203 obtains domain name forwarding priority;
The forwarding of equipment domain name is carried out preferentially by domain name forwarding priority or description domain name forwards preferential control.Such as equipment The preferential then priority match facility information of domain name forwarding forwards, and priority match domain name expression formula is believed if description domain name forwarding is preferential Breath.
Step S1204 obtains equipment domain name forwarding table;
The acquisition of device Domain name domain name forwarding table in example 1 the step of 102-103 it is identical.If you do not need to according to equipment Domain name forwarding table forwards this step that can ignore.
Step S1205 forwards domain name request according to domain name forwarding table;
For the domain name request message of LAN side, nslookup forwarding table is turned according to the match condition of domain name forwarding table Hair.
Step S1206 handles domain name server (DNS) response message, is forwarded to LAN side equipment.
So far, process terminates.
Figure 13 is the flow diagram three of the domain name retransmission method of alternative embodiment of the present invention, as shown in figure 13, optional reality Example 3 is applied to include the following steps:
Step S1301, Tr069 management medium issues domain name forwarding entry;
Domain name forwarding entry includes domain name addresses expression formula, purpose routing link and purpose IP address chained list.
As the Tr069 node of definition issues parameter:
InternetGatewayDevice.WANDevice.DNSForward.Dnspara=*iptv *
InternetGatewayDevice.WANDevice.DNSForward.WanInst=IPTV
InternetGatewayDevice.WANDevice.DNSForward.IPList=10.10. 10.10
The expression of representative domain name is for " * iptv* ", conversion link IPTV, purpose IP address 10.10.10.
Step S1302, Tr069 management medium issues equipment domain name forwarding entry;
Equipment domain name forwarding entry includes device type, purpose routing link and purpose IP address chained list.
Step S1303, Tr069 management medium issues the device type for allowing to access;
Access device type is controlled in this way, if setting allows to access STB and PC, then other types are set It is standby to access, realize equipment safety access control.
Step S1304, Tr069 management medium issues domain name forwarding priority;
By issuing domain name forwarding priority, domain name mode, i.e., preferential domain name forwarding table or equipment domain name forwarding table are set.
Step S1305, processing LAN side domain name request are forwarded according to description domain name forwarding table or equipment domain name forwarding table.
This example is to realize description domain name forwarding table or equipment domain name forwarding table by Tr069 configuration mode.Can and it is real Example 1 and the mixing application of example 2, realization had both been supported to generate description domain name forwarding table by DHCP protocol dynamic control, and had supported to pass through Dynamic acquisition device type generating device domain name forwarding table is supported to realize domain name in such a way that Tr069 manages the issuing of medium again Forwarding table.
So far, process terminates.
Figure 14 is that the equipment domain name forwarding table of alternative embodiment of the present invention obtains module work flow chart, as shown in figure 14, It is as follows that equipment domain name forwarding table obtains block process:
Step S1401 handles the address acquisition request of LAN side;
For the DHCP request message of LAN side, which hangs the information such as standby MAC, VLAN and device type under obtaining.
Step S1402, facility information are examined;
Network can be accessed for which equipment, can be realized by carrier customization, it can also be by managing medium Which equipment access configuration allows to access.Address is distributed for the equipment for allowing to access, the equipment for not allowing to access not is distributed Address.
Step S1403, recording equipment information simultaneously distribute address to equipment;
The facility information of record includes MAC, VLAN, device type and IP address.
Step S1404, generating device domain name forwarding table;
Check that equipment domain name forwarding table whether there is same item, and if so, timer is updated, if there is no then Equipment domain name forwarding table is created, and equipment domain name forwarding table ageing time is set;
So far, process terminates.
Figure 15 is that the description domain name forwarding table of alternative embodiment of the present invention obtains module work flow chart, as shown in figure 15, It is as follows that domain name forwarding table acquisition block process is described:
Step S1501, description domain name forwarding table acquisition modes selection;
The acquisition of description domain name forwarding table includes DHCP mode dynamic acquisition or management medium configuration;
Step S1502, is obtained by DHCP protocol;
This customized DHCP OPTION of acquisition modes, gets domain name forwarding table information by the OPTION;
Step S1503 manages medium by Tr069 and configures domain-name information;
It is realized by way of fuzzy configuration, that is, configures certain class domain name and pass through certain routing link to specific domain name IP Location forwarding;
Step S1504 generates description domain name forwarding table;
So far, process terminates.
Figure 16 is the domain name forwarding module work flow diagram of alternative embodiment of the present invention, and as shown in figure 16, domain name forwards mould Block workflow includes:
Step S1601, receives domain name request message;
Step S1602, extract equipment information and domain name request information;
Step S1603, the selection of domain name forwarding table priority;
Default first matches domain name forwarding table matching unit domain name forwarding table again on realizing, can also pass through management medium configuration Forwarding priority.
Step S1604 is forwarded according to description domain name forwarding table or equipment domain name forwarding table;
Step S1605 parses DNS response message, sends LAN side for DNS response message.
So far, process terminates.
Using optional embodiment of the present invention, home gateway is carried out different business and is realized by routing mode.And it is different Type equipment can arbitrarily be plugged on some or it is LAN mouthfuls multiple, enhance scalability.On the other hand, plan is forwarded according to domain name Slightly, the message of different business is forwarded to different channels, reduces the impact and forwarding mistake of different interchannel messages.In addition, Standby identification is hung under by the DHCP OPTION60 information realization of agreement, may be implemented to hang standby safety control under System, that is, related service cannot be carried out by controlling undesirable equipment, by obtaining facility information generating device domain name forwarding table, The acquisition of description domain name forwarding table is realized by the mode of customized OPTION mode or Tr069 protocol configuration.Using this The personalized customization of special domain name may be implemented in the domain name retransmission method of alternative embodiment, meets the business such as online or IPTV point From scene requirement.Using the family gateway equipment that this alternative embodiment is realized, flexibly, it is convenient to realize for configuration, at low cost, has wide Market application prospect.
Certainly, the present embodiment can also have other embodiments, can such as mix mentioned using this alternative embodiment it is several The method for realizing domain name forwarding.And every kind of method has much variable examples, such as passes through the implementation of equipment domain name forwarding table, It is forwarded according to different equipment by different routing links in this example, medium can also be managed by Tr069 and carried out Configuration, as the certain domain name of certain class equipment requests to be asked by different routing links or to the certain domain name of certain routing link It asks.In addition, this alternative embodiment should be mentioned that multiple services domain name forwarding scene, for the single business field of a routing link Scape this patent be also it is applicable, such as allow to access certain domain names by the control of domain name forwarding table or forbid certain domain names, or control It makes to the particular address of the more domain name addresses of single routing link and sends domain name request.
The present embodiment is proposed to be respectively used to carry out the method for different business by configuring a plurality of routing link, and is proposed The strategy for controlling domain name forwarding proposes the several method of creation domain name forwarding table, by different domain name request messages by not Same routing virtual link is forwarded, and realizes the control of the classification to different business or certain domain name.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned module be located at it is more In a processor.
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can To be arranged to store the program code for executing following steps:
S1 receives the request message that the equipment connecting with home gateway is sent, wherein carry in request message to be forwarded Domain name;
S2 searches the conversion link for having corresponding relationship with the lookup mark of equipment from preconfigured domain name forwarding table And destination address, wherein the lookup mark of equipment includes: the device type and/or domain name of equipment;
S3, if find with equipment lookup mark have corresponding relationship conversion link and destination address, according to turn It sends out link and sends destination address for domain name.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (4)

1. a kind of retransmission method of domain name characterized by comprising
Receive the request message that the equipment connecting with home gateway is sent, wherein carry in the request message to be forwarded Domain name;
From preconfigured domain name forwarding table search with the equipment lookup mark have corresponding relationship conversion link and Destination address, wherein the lookup mark of the equipment includes the device type and domain name expression formula of the equipment;
If the conversion link and destination address that there is corresponding relationship with the lookup mark of the equipment are found, according to described turn It sends out link and sends the destination address for domain name;
The conversion link that there is corresponding relationship with the lookup mark of the equipment is being searched from preconfigured domain name forwarding table Before destination address, further includes:
Receive configuration information, wherein the configuration information is used to indicate at least one set of device type with corresponding relationship, forwarding Link, destination address;
At least one set that the configuration information is indicated has the device type of corresponding relationship, conversion link, destination address Configuration is in domain name forwarding table;
The lookup of the equipment is identified as the device type of the equipment and the domain name expression formula of the equipment, wherein it is described from Conversion link and the destination that there is corresponding relationship with the lookup mark of the equipment are searched in preconfigured domain name forwarding table Location includes:
The source address and domain name of the equipment are obtained from the request message;Obtaining has with the source address of the equipment The device type of the equipment of corresponding relationship, and lookup and the device type of the equipment have from domain name forwarding table The first conversion link and the first destination address of corresponding relationship;It is searched and the matched domain of domain name in domain name forwarding table Name expression formula, if finding described with the matched domain name expression formula of domain name, acquisition and institute from domain name forwarding table State the second conversion link and the second destination address that the matched domain name expression formula of domain name has corresponding relationship;Judge described first turn Send out link with second conversion link whether identical and described first destination address and second destination address whether phase Together;If first conversion link the first destination address identical and described with second conversion link and second purpose Address is identical, then using first conversion link and the first destination address as the lookup mark tool with the equipment found There are the conversion link and destination address of corresponding relationship;
Alternatively,
The type identification information and domain name for identifying the device type of the equipment are obtained from the request message;It obtains The device type for the equipment for taking the type identification information to be identified, and search from domain name forwarding table and set with described Standby device type has the first conversion link and the first destination address of corresponding relationship;In domain name forwarding table search with The matched domain name expression formula of domain name, if the described and matched domain name expression formula of domain name is found, from domain name The second conversion link that there is corresponding relationship with the matched domain name expression formula of domain name and the second destination are obtained in forwarding table Location;Judge first conversion link and whether second conversion link identical and first destination address and described the Whether two destination addresses are identical;If first conversion link the first destination identical and described with second conversion link Location is identical as second destination address, then using first conversion link and the first destination address as find with it is described The lookup mark of equipment has the conversion link and destination address of corresponding relationship.
2. the method according to claim 1, wherein it is described from preconfigured domain name forwarding table search with The lookup mark of the equipment has before the conversion link and destination address of corresponding relationship, further includes:
Be configured to indicate that selection domain name forwarding table policy information, wherein the policy information be used to indicate selection with The domain name of the device type of the equipment and the equipment has the domain name forwarding of the conversion link and destination address of corresponding relationship Table.
3. a kind of retransmission unit of domain name characterized by comprising
First receiving module, the request message sent for receiving the equipment connecting with home gateway, wherein the request message In carry domain name to be forwarded;
Searching module, for searching the lookup mark with the equipment from preconfigured domain name forwarding table with corresponding relationship Conversion link and destination address, wherein the equipment lookup mark include the equipment device type and domain name expression Formula;
Sending module, if for finding conversion link and the destination that there is corresponding relationship with the lookup mark of the equipment Location then sends the destination address for domain name according to the conversion link;
Third receiving module, for having pair with the lookup of equipment mark being searched from preconfigured domain name forwarding table Before the conversion link and destination address that should be related to, configuration information is received, wherein the configuration information is used to indicate at least one set Device type, conversion link with corresponding relationship, destination address;
First configuration module, at least one set of device type with corresponding relationship for indicating the configuration information, Conversion link, destination address configuration are in domain name forwarding table;
The lookup of the equipment is identified as the device type of the equipment and the domain name expression formula of the equipment, the searching module Include:
7th acquiring unit, for obtaining the source address and domain name of the equipment from the request message;First processing Unit, for obtaining the device type for the equipment that there is corresponding relationship with the source address of the equipment, and from described The first conversion link and the first destination address that there is corresponding relationship with the device type of the equipment are searched in domain name forwarding table; The second processing unit, for the lookup in domain name forwarding table and the matched domain name expression formula of domain name, if finding institute It states and the matched domain name expression formula of domain name, then acquisition and the matched domain name expression of domain name from domain name forwarding table Formula has the second conversion link and the second destination address of corresponding relationship;First judging unit, for judging first forwarding Whether whether identical and described first destination address and second destination address are identical with second conversion link for link; First determination unit, if being used for first conversion link the first destination address identical and described with second conversion link It is identical as second destination address, then it is set using first conversion link and the first destination address as what is found with described Standby lookup mark has the conversion link and destination address of corresponding relationship;
Alternatively,
8th acquiring unit, for obtaining the type identification for identifying the device type of the equipment from the request message Information and domain name;Third processing unit, for obtaining the equipment class for the equipment that the type identification information is identified Type, and the first conversion link that there is corresponding relationship with the device type of the equipment and the are searched from domain name forwarding table One destination address;Fourth processing unit is used for lookup and the matched domain name expression formula of domain name in domain name forwarding table, If finding the described and matched domain name expression formula of domain name, obtains from domain name forwarding table and matched with domain name Domain name expression formula have corresponding relationship the second conversion link and the second destination address;Second judgment unit, for judging It states the first conversion link and whether second conversion link identical and first destination address and second destination address It is whether identical;Second determination unit, if identical as second conversion link and described first for first conversion link Destination address is identical as second destination address, then using first conversion link and the first destination address as finding There is the conversion link and destination address of corresponding relationship with the lookup mark of the equipment.
4. device according to claim 3, which is characterized in that described device further include:
Second configuration module has for identifying in the lookup searched from preconfigured domain name forwarding table with the equipment Before having the conversion link and destination address of corresponding relationship, it is configured to indicate that the policy information of selection domain name forwarding table, Wherein, the domain name of the policy information is used to indicate selection and the equipment device type and the equipment has corresponding relationship Conversion link and destination address domain name forwarding table.
CN201510524792.7A 2015-08-24 2015-08-24 The retransmission method and device of domain name Active CN106487938B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510524792.7A CN106487938B (en) 2015-08-24 2015-08-24 The retransmission method and device of domain name
PCT/CN2016/086010 WO2017032145A1 (en) 2015-08-24 2016-06-16 Domain name forwarding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510524792.7A CN106487938B (en) 2015-08-24 2015-08-24 The retransmission method and device of domain name

Publications (2)

Publication Number Publication Date
CN106487938A CN106487938A (en) 2017-03-08
CN106487938B true CN106487938B (en) 2019-11-26

Family

ID=58099448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510524792.7A Active CN106487938B (en) 2015-08-24 2015-08-24 The retransmission method and device of domain name

Country Status (2)

Country Link
CN (1) CN106487938B (en)
WO (1) WO2017032145A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124370B (en) * 2017-05-05 2020-01-03 网宿科技股份有限公司 Set top box and flow management and control method and service request flow management and control system thereof
CN109151085B (en) * 2017-06-15 2022-06-10 中兴通讯股份有限公司 Method and device for sending domain name query request
CN108650179B (en) * 2018-04-17 2021-10-22 达闼科技(北京)有限公司 Method for configuring forwarding table, forwarding device and computer readable storage medium
CN112039729B (en) * 2020-08-28 2022-04-01 中移(杭州)信息技术有限公司 Device identification method, server, electronic device, and storage medium
CN113242329B (en) * 2021-04-30 2022-03-18 平安证券股份有限公司 Mapping relation sending method and device based on fuzzy matching and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137011A (en) * 2011-02-18 2011-07-27 华为技术有限公司 Message forwarding method, device and system for network
CN102739603A (en) * 2011-03-31 2012-10-17 国际商业机器公司 Method and device for single sign-on
CN103051740A (en) * 2012-12-13 2013-04-17 上海牙木通讯技术有限公司 Domain name resolution method, domain name system (DNS) server and domain name resolution system
CN104243627A (en) * 2014-08-29 2014-12-24 华为技术有限公司 Domain name resolution method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120782A1 (en) * 2001-02-26 2002-08-29 Douglas Dillon Transparent proxying enhancement
US7962597B2 (en) * 2008-03-31 2011-06-14 Amazon Technologies, Inc. Request routing based on class
CN102833364A (en) * 2012-08-22 2012-12-19 深圳市共进电子股份有限公司 Domain name resolution agent method and gateway device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137011A (en) * 2011-02-18 2011-07-27 华为技术有限公司 Message forwarding method, device and system for network
CN102739603A (en) * 2011-03-31 2012-10-17 国际商业机器公司 Method and device for single sign-on
CN103051740A (en) * 2012-12-13 2013-04-17 上海牙木通讯技术有限公司 Domain name resolution method, domain name system (DNS) server and domain name resolution system
CN104243627A (en) * 2014-08-29 2014-12-24 华为技术有限公司 Domain name resolution method, device and system

Also Published As

Publication number Publication date
CN106487938A (en) 2017-03-08
WO2017032145A1 (en) 2017-03-02

Similar Documents

Publication Publication Date Title
CN106487938B (en) The retransmission method and device of domain name
CN104219127B (en) A kind of creation method and equipment of virtual network example
CN102484639B (en) A method and host node for multiple NAT64 environments
US10897489B2 (en) Managing content casting
KR101995145B1 (en) Method operating in a fixed access network and ues
US20030033379A1 (en) Intelligent central directory for soft configuration of IP services
CN103841024B (en) A kind of home gateway realizes the method and home gateway of data distribution
CN101180860A (en) Traffic diversion in an ethernet-based access network
CN102035900B (en) NAT (network address translation) traversal method, system and relay server by relay mode
WO2004051948A1 (en) Internet connection system and server for routing connection to client device
WO2016019645A1 (en) Method and system for turning on a data communication network, and storage medium
CN109361606A (en) A kind of message handling system and the network equipment
CN109194525A (en) A kind of network node configuration method and management node
CN101072138A (en) Method and device for providing multi public network service for small networks
CN106131235A (en) A kind of IP address configuration method
CN105915383A (en) Remote router configuration method
CN103460676A (en) Flow routing protocol by querying a remote server
CN103561122B (en) IPv6 address collocation method, IPv6 client and server
CN106357838A (en) Method and device for distributing IP (Internet protocol) address
CN110198229A (en) Network collocating method and device, storage medium and electronic device
CN107148020A (en) WiFi shared systems and its method, Wireless Communication Equipment and router
CN107360089A (en) A kind of method for routing foundation, business datum conversion method and device
CN105637806B (en) Network topology determines method and apparatus, centralized network status information storage equipment
CN104734877B (en) A kind of method, apparatus and system obtaining configuration server information
CN102291367B (en) Method, the Apparatus and system of amendment terminal network parameter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190925

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing Software Co., Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant before: ZTE Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant