WO2011107011A1 - Method and customer premise equipment for ipv6-network-based dns redirection - Google Patents
Method and customer premise equipment for ipv6-network-based dns redirection Download PDFInfo
- Publication number
- WO2011107011A1 WO2011107011A1 PCT/CN2011/071171 CN2011071171W WO2011107011A1 WO 2011107011 A1 WO2011107011 A1 WO 2011107011A1 CN 2011071171 W CN2011071171 W CN 2011071171W WO 2011107011 A1 WO2011107011 A1 WO 2011107011A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- dns
- address
- site
- global
- response packet
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4552—Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Definitions
- the present invention relates to network technologies, and in particular, to a DNS redirection method and a client device based on an IPv6 network.
- IPv6 Internet Protocol Version 6, Internet Protocol Version 6
- IPv4 Internet Protocol Version 4, Internet Protocol Version 4
- DNS Domain Name System, i or name system
- RFC Request For Comments 3879
- site-local addresses the current problem to be solved is how to enable DNS redirection for user terminal hosts that have used this approach.
- a DNS resolution server is set in each site network, and the address is the above three well-known site local addresses.
- Embodiments of the present invention provide a DNS redirection method and a client end based on an IPv6 network. Devices to improve the efficiency of DNS redirection technology implementation and address management.
- the embodiment of the present invention provides a DNS redirection method for a domain name system based on an IPv6 network, where the method includes: receiving a DNS request message from a user terminal; and determining a destination site address of the DNS request message as a site local The address is the global DNS address corresponding to the local address of the site; the DNS request is sent to the global DNS address.
- the embodiment of the present invention provides a user equipment of a DNS redirection based on an IPv6 network, where the user equipment includes: a first receiving unit, configured to receive a DNS request message from the user terminal; a unit, configured to determine whether the destination site address of the DNS request message is a site-local address; the first obtaining unit, configured to: when the first determining unit determines that the destination site address of the DNS request message is a site-local address, obtain a site-local address corresponding to The global sending address is used by the first sending unit, and is configured to send a DNS request message to the global DNS address.
- the embodiment of the present invention receives the DNS request message from the user terminal. If the destination site address of the message is the site-local address, the global DNS address corresponding to the site local address is obtained, and the DNS request packet is sent to the global DNS address.
- the user terminal host that has used the site-local address can successfully implement DNS redirection, thereby improving the efficiency of DNS redirection technology implementation and address management.
- 1A is a flowchart of a DNS redirection method of a domain name system based on an IPv6 network according to an embodiment of the present invention
- FIG. 1B is a flowchart of another DNS redirection method of a domain name system based on an IPv6 network according to an embodiment of the present invention
- FIG. 2 is a schematic structural diagram of a user equipment of a DNS redirection based on an IPv6 network according to an embodiment of the present invention
- FIG. 3 is a schematic diagram of a DNS redirection user equipment applied to an IPv6 network according to an embodiment of the present invention. detailed description
- Embodiment 1 is a diagrammatic representation of Embodiment 1:
- a flowchart of a DNS redirection method for a domain name system based on an IPv6 network includes:
- the destination site address of the DNS request is a site-local address
- the DNS request is directly transferred.
- the site local address of the DNS request may be changed to a global DNS address, and then the DNS request is sent to the global DNS address, which may also be understood as , to redirect the DNS request 4 ⁇ text.
- the method may further include: if determining that the destination site address of the DNS request packet is not a site-local address, directly forwarding the DNS request packet.
- the technical solution of the foregoing method embodiment of the present invention adopts receiving a DNS request from a user terminal, and if it determines that the destination site address of the DNS request message is a site-local address, The global DNS address corresponding to the local address of the site is obtained.
- the technical means for sending the DNS request packet to the global DNS address can also be understood as: when the destination address is the site-local address, the global DNS address is redirected to the site-local address. That is, the DNS request message is redirected, so that the operation of the DNS resolution server is set in each site network without performing network deployment, and the user terminal host that has used the site local address can be successfully implemented. DNS redirection, which improves the efficiency of DNS redirection technology implementation and address management.
- FIG. 1B is a flowchart of another method for DNS redirection of a domain name system based on an IPv6 network according to an embodiment of the present invention, where the method may include not only the foregoing steps 101, 102, and 103, but the method may further include :
- determining whether the DNS response message is a redirect response message If the DNS response message is determined to be a redirect response message, go to step 106; if it is determined that the DNS response message is not a redirect response message, go to step 107;
- the technical solution of the foregoing method embodiment of the present invention is to receive a DNS request from the user terminal, and to obtain a global DNS address corresponding to the local address of the site if the destination site address of the DNS request message is a site-local address;
- the technical means for sending a DNS request message by an address may also be understood as: when the destination station address is a site-local address, the global DNS address is redirected to the site-local address, that is, the DNS request is redirected. Therefore, the DNS response packet from the server corresponding to the global DNS address is further received and distributed, so that the user terminal host that has used the site local address can access the network normally, even if the user terminal that sends the DNS request can successfully request the DNS.
- Embodiment 2 Corresponding to the foregoing method embodiment, as shown in FIG. 2, is a schematic structural diagram of a user equipment of a DNS redirection based on an IPv6 network according to an embodiment of the present invention, where the user equipment includes: a first receiving unit 201, configured to receive a DNS request message from the user terminal; the first determining unit 202 is configured to determine whether the destination site address of the DNS request message is a site local address;
- the first obtaining unit 203 is configured to: when the first determining unit 202 determines that the destination site address of the DNS request packet is a site local address, obtain a global DNS address corresponding to the site local address;
- the first sending unit 204 is configured to send a DNS request message to the global DNS address.
- the first sending unit 204 is further configured to: when the first determining unit 202 determines that the destination site address of the DNS request is not a site-local address, directly forward the DNS request.
- the user equipment of the technical solution of the foregoing embodiment of the present invention receives the DNS request from the user terminal, and obtains the global DNS address corresponding to the local address of the site if the destination site address of the DNS request packet is the site-local address;
- the technical means for the DNS address to send the DNS request message can also be understood as: when the destination device address is the site-local address, the local device performs the global DNS address redirection for the site-local address, that is, the DNS request packet is sent. Redirecting, so that there is no need to perform network deployment, and setting up a DNS resolution server in each site network, the user terminal host that has used the site local address can successfully implement DNS redirection, thereby improving DNS redirection technology. Implementation and address management efficiency.
- the client equipment 20 includes the first receiving unit 201, the first determining unit 202, and the first acquiring unit.
- the 203 and the first sending unit 204 may further include: a second receiving unit 205, configured to receive a DNS response packet from the global DNS server 30; and a second determining unit 206, configured to determine whether the DNS response packet is a redirect Response message;
- the second obtaining unit 207 is configured to: when the second determining unit 206 determines that the DNS response is a redirect response packet, obtain an address of the user terminal 10 corresponding to the DNS response packet; and the second sending unit 208 is configured to send to the user terminal The address of 10 sends a DNS response.
- the second sending unit 208 is further configured to: when the second determining unit determines that the DNS response message is not the redirect response message, directly forward the DNS response message.
- the client device may further include: a modifying unit, configured to: after the first obtaining unit 203 obtains the global DNS address corresponding to the site local address, modify the site local address of the DNS request message to the global DNS address, And notifying the first sending unit 204 to send a DNS request message to the global DNS address.
- a modifying unit configured to: after the first obtaining unit 203 obtains the global DNS address corresponding to the site local address, modify the site local address of the DNS request message to the global DNS address, And notifying the first sending unit 204 to send a DNS request message to the global DNS address.
- the Customer Premise Equipment refers to hardware that is physically located on the user side, at least one of the following: a server, a workstation, and a communication hardware (a channel service unit CSU/data service unit DSU, Modem), LAN LAN devices (hubs, bridges, switches), WAN WAN devices (routers).
- the embodiment of the present invention is a CPE that can selectively redirect an IPv6 DNS request.
- the destination site address of the IPv6 DNS request packet is a site-local address
- the global DNS address corresponding to the local address of the site is redirected. Otherwise, the IPv6 DNS request can be directly forwarded.
- the destination station address is a site-local address
- the site-local address is redirected, that is, the global DNS address is redirected to the DNS request packet.
- the DNS response from the server corresponding to the global DNS address is further received and distributed, so that the user terminal host that has used the site local address can access the network normally, even if the user terminal that sends the DNS request can successfully request the DNS.
- the DHCPv6 server Since the IPv6 DNS request sent by the user terminal host can be redirected to the global DNS server through a router or the like, the DHCPv6 server is not required, and the user terminal host does not need to support the DHCPv6 client, and the user terminal host automatically configures the IPv6 address through the router discovery mechanism. After that, the network can be accessed normally by sending a DNS request to the site-local address.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiments of the invention provide a method and a customer premise equipment for Internet-Protocol-Version-6(IPv6)-network-based Domain Name System (DNS) redirection. The method includes: receiving a DNS request message from a user terminal (101); if determining that the destination site address of the DNS request message is a site-local address, then obtaining the global DNS address corresponding to the site-local address (102); transmitting the DNS request message to the global DNS address (103). The invention also provides a customer premise equipment thereby improving the efficiency of the DNS redirection technology implementation and address management.
Description
一种基于 IPv6网络的 DNS重定向方法和用户端设备 技术领域 本发明涉及网络技术, 尤其涉及一种基于 IPv6 网络的 DNS重定向 方法和用户端设备。 TECHNICAL FIELD The present invention relates to network technologies, and in particular, to a DNS redirection method and a client device based on an IPv6 network.
背景技术 Background technique
当前 IPv6 ( Internet Protocol Version 6 , 互联网协议第六版) 网絡演 进还不成熟, 早期由于没有定义类似 IPv4 ( Internet Protocol Version 4 , 互联网协议第四版 ) 网络下的 DNS 地址下发机制, 微软在草案 draft-ietf-ipv6-dns-discovery-06 ( Well known site local unicast addresses for DNS resolver )中定义了三个知名的站点本地地址 ( Site-Local Unicast Addresses ) 作为 DNS ( Domain Name System, i或名 系统 ) 地址 ( fecO:000:0000:ffff: : l , fec0:000:0000:ffff: :2 , fec0:000:0000:ffff: :3 ) , 如果用户终端主机在没有获得 DNS 的情况下, 可以默认使用这三个地 址。 The current IPv6 (Internet Protocol Version 6, Internet Protocol Version 6) network evolution is still immature. In the early days, due to the lack of a DNS address delivery mechanism similar to IPv4 (Internet Protocol Version 4, Internet Protocol Version 4), Microsoft was drafting. Three well-known Site-Local Unicast Addresses are defined in the draft-ietf-ipv6-dns-discovery-06 (Well known site local unicast addresses for DNS resolver) as the DNS (Domain Name System, i or name system) ) address ( fecO:000:0000:ffff: : l , fec0:000:0000:ffff: :2 , fec0:000:0000:ffff: :3 ) , if the user terminal host does not get DNS, you can These three addresses are used by default.
虽然 RFC ( Request For Comments , 请求评议) 3879 已明确提出反 对使用站点本地地址, 但目前需要解决的问题是如何让已使用这种做法 的用户终端主机能成功实现 DNS重定向。在现有技术中,通过网络部署, 在每个站点网络内设置 DNS解析服务器,地址为上述三个知名的站点本 地地址。 Although RFC (Request For Comments) 3879 has explicitly proposed to use site-local addresses, the current problem to be solved is how to enable DNS redirection for user terminal hosts that have used this approach. In the prior art, through the network deployment, a DNS resolution server is set in each site network, and the address is the above three well-known site local addresses.
在实现本发明过程中, 发明人发现现有技术中至少存在如下问题: 由于站点本地地址范围界定不清, 从而导致应用开发者和地址管理者都 难以应对,从而导致现有技术的 DNS重定向技术实现和地址管理的效率 很低。 发明内容 In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art: Since the site local address range is unclear, the application developer and the address manager are difficult to cope with, resulting in the prior art DNS redirection. Technical implementation and address management are inefficient. Summary of the invention
本发明实施例提供一种基于 IPv6 网络的 DNS重定向方法和用户端
设备, 以提高 DNS重定向技术实现和地址管理的效率。 Embodiments of the present invention provide a DNS redirection method and a client end based on an IPv6 network. Devices to improve the efficiency of DNS redirection technology implementation and address management.
一方面, 本发明实施例提供了一种基于 IPv6 网络的域名系统 DNS 重定向方法, 所述方法包括: 接收来自用户终端的 DNS请求报文; 若判 定 DNS请求 艮文的目的站点地址为站点本地地址,则获取站点本地地址 对应的全局 DNS地址; 向全局 DNS地址发送 DNS请求■ ^文。 In an aspect, the embodiment of the present invention provides a DNS redirection method for a domain name system based on an IPv6 network, where the method includes: receiving a DNS request message from a user terminal; and determining a destination site address of the DNS request message as a site local The address is the global DNS address corresponding to the local address of the site; the DNS request is sent to the global DNS address.
另一方面, 本发明实施例提供了一种基于 IPv6 网络的 DNS重定向 的用户端设备, 所述用户端设备包括: 第一接收单元, 用于接收来自用 户终端的 DNS请求 文; 第一判定单元, 用于判定 DNS请求 艮文的目 的站点地址是否为站点本地地址; 第一获取单元, 用于第一判定单元判 定 DNS请求 艮文的目的站点地址为站点本地地址时,获取站点本地地址 对应的全局 DNS地址; 第一发送单元, 用于向全局 DNS地址发送 DNS 请求报文。 On the other hand, the embodiment of the present invention provides a user equipment of a DNS redirection based on an IPv6 network, where the user equipment includes: a first receiving unit, configured to receive a DNS request message from the user terminal; a unit, configured to determine whether the destination site address of the DNS request message is a site-local address; the first obtaining unit, configured to: when the first determining unit determines that the destination site address of the DNS request message is a site-local address, obtain a site-local address corresponding to The global sending address is used by the first sending unit, and is configured to send a DNS request message to the global DNS address.
本发明实施例接收来自用户终端的 DNS请求报文; 若判定 DNS请 求才艮文的目的站点地址为站点本地地址, 则获取站点本地地址对应的全 局 DNS地址; 向全局 DNS地址发送 DNS请求报文, 就可实现使已使用 站点本地地址的用户终端主机可成功实现 DNS 重定向, 从而提高 DNS 重定向技术实现和地址管理的效率。 附图说明 The embodiment of the present invention receives the DNS request message from the user terminal. If the destination site address of the message is the site-local address, the global DNS address corresponding to the site local address is obtained, and the DNS request packet is sent to the global DNS address. The user terminal host that has used the site-local address can successfully implement DNS redirection, thereby improving the efficiency of DNS redirection technology implementation and address management. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1 A是本发明实施例一种基于 IPv6网络的域名系统 DNS重定向方 法流程图; 1A is a flowchart of a DNS redirection method of a domain name system based on an IPv6 network according to an embodiment of the present invention;
图 1B为本发明实施例另一种基于 IPv6网络的域名系统 DNS重定向 方法流程图;
图 2为本发明实施例一种基于 IPv6 网络的 DNS重定向的用户端设 备结构示意图; FIG. 1B is a flowchart of another DNS redirection method of a domain name system based on an IPv6 network according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram of a user equipment of a DNS redirection based on an IPv6 network according to an embodiment of the present invention;
图 3为本发明实施例一种 DNS重定向的用户端设备应用于 IPv6 网 络的示意图。 具体实施方式 FIG. 3 is a schematic diagram of a DNS redirection user equipment applied to an IPv6 network according to an embodiment of the present invention. detailed description
下面结合附图对本发明实施例具有智能卡的电子产品进行详细描 述。 The electronic product with the smart card according to the embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
应当明确, 所描述的实施例仅仅是本发明一部分实施例, 而不是全 部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出 创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。 It should be understood that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一: Embodiment 1:
如图 1A所示, 为本发明实施例一种基于 IPv6网络的域名系统 DNS 重定向方法流程图, 所述方法包括: As shown in FIG. 1A, a flowchart of a DNS redirection method for a domain name system based on an IPv6 network according to an embodiment of the present invention includes:
101、 接收来自用户终端的 DNS请求报文。 101. Receive a DNS request packet from a user terminal.
102、 若判定 DNS请求 4艮文的目的站点地址为站点本地地址, 则获 取站点本地地址对应的全局 DNS地址。 102. If it is determined that the destination site address of the DNS request is a site-local address, obtain a global DNS address corresponding to the site local address.
若判定 DNS请求报文的目的站点地址不是站点本地地址, 则直接转 法 DNS请求 4艮文。 If it is determined that the destination site address of the DNS request message is not a site-local address, then the DNS request is directly transferred.
103、 向全局 DNS地址发送 DNS请求 4艮文。 103. Send a DNS request to the global DNS address.
可选的, 获取站点本地地址对应的全局 DNS 地址后, 可以将 DNS 请求 · ^文的站点本地地址 4爹改为全局 DNS地址, 然后向全局 DNS地址 发送 DNS请求 4艮文, 也可以理解为, 进行重定向该 DNS请求 4艮文。 Optionally, after obtaining the global DNS address corresponding to the local address of the site, the site local address of the DNS request may be changed to a global DNS address, and then the DNS request is sent to the global DNS address, which may also be understood as , to redirect the DNS request 4 艮 text.
可选的, 该方法还可以包括: 若判定 DNS请求报文的目的站点地址 不是站点本地地址, 则直接转发 DNS请求报文。 Optionally, the method may further include: if determining that the destination site address of the DNS request packet is not a site-local address, directly forwarding the DNS request packet.
本发明上述方法实施例技术方案因为采用接收来自用户终端的 DNS 请求 4艮文; 若判定 DNS请求报文的目的站点地址为站点本地地址, 则获
取站点本地地址对应的全局 DNS地址; 向全局 DNS地址发送 DNS请求 报文的技术手段, 也可以理解为, 对目的站地址为站点本地地址时, 对 站点本地地址进行全局 DNS地址的重定向, 即该对该 DNS请求 4艮文进 行重定向, 从而无须再执行通过网络部署, 在每个站点网络内设置 DNS 解析服务器的操作, 就可以实现使已使用站点本地地址的用户终端主机 可成功实现 DNS重定向, 从而提高 DNS重定向技术实现和地址管理的 效率。 The technical solution of the foregoing method embodiment of the present invention adopts receiving a DNS request from a user terminal, and if it determines that the destination site address of the DNS request message is a site-local address, The global DNS address corresponding to the local address of the site is obtained. The technical means for sending the DNS request packet to the global DNS address can also be understood as: when the destination address is the site-local address, the global DNS address is redirected to the site-local address. That is, the DNS request message is redirected, so that the operation of the DNS resolution server is set in each site network without performing network deployment, and the user terminal host that has used the site local address can be successfully implemented. DNS redirection, which improves the efficiency of DNS redirection technology implementation and address management.
可选的, 如图 1B所示, 为本发明实施例另一种基于 IPv6 网络的域 名系统 DNS重定向方法流程图, 所述方法不但可以包括上述步骤 101、 102、 103 , 该方法还可以包括: Optionally, as shown in FIG. 1B, which is a flowchart of another method for DNS redirection of a domain name system based on an IPv6 network according to an embodiment of the present invention, where the method may include not only the foregoing steps 101, 102, and 103, but the method may further include :
104、 接收来自全局 DNS地址对应的^ E务器的 DNS响应 艮文; 104. Receive a DNS response message from a server corresponding to the global DNS address.
105、 判断 DNS响应报文是否为重定向响应报文: 若判定 DNS响应 报文为重定向响应报文, 转步骤 106; 若判定 DNS响应报文不是重定向 响应 文, 转步骤 107 ; 105, determining whether the DNS response message is a redirect response message: If the DNS response message is determined to be a redirect response message, go to step 106; if it is determined that the DNS response message is not a redirect response message, go to step 107;
106、 获取 DNS响应 文对应的用户终端的地址, 并向该用户终端 的地址发送 DNS响应 ^艮文; 106. Obtain an address of the user terminal corresponding to the DNS response file, and send a DNS response to the address of the user terminal.
107、 直接转发 DNS响应 4艮文。 107, direct forwarding DNS response 4 艮 text.
本发明上述方法实施例技术方案因为采用接收来自用户终端的 DNS 请求 · ^文; 若判定 DNS请求报文的目的站点地址为站点本地地址, 则获 取站点本地地址对应的全局 DNS地址; 向全局 DNS地址发送 DNS请求 艮文的技术手段, 也可以理解为, 对目的站地址为站点本地地址时, 对 站点本地地址进行全局 DNS地址的重定向, 即该对该 DNS请求 4艮文进 行重定向, 从而进一步接收来自全局 DNS地址对应的服务器的 DNS响 应报文并分发,使已使用站点本地地址的用户终端主机可正常访问网络, 即使发送 DNS请求的用户终端能成功请求到 DNS。 The technical solution of the foregoing method embodiment of the present invention is to receive a DNS request from the user terminal, and to obtain a global DNS address corresponding to the local address of the site if the destination site address of the DNS request message is a site-local address; The technical means for sending a DNS request message by an address may also be understood as: when the destination station address is a site-local address, the global DNS address is redirected to the site-local address, that is, the DNS request is redirected. Therefore, the DNS response packet from the server corresponding to the global DNS address is further received and distributed, so that the user terminal host that has used the site local address can access the network normally, even if the user terminal that sends the DNS request can successfully request the DNS.
实施例二:
对应于上述方法实施例,如图 2所示,为本发明实施例一种基于 IPv6 网络的 DNS重定向的用户端设备结构示意图, 所述用户端设备包括: 第一接收单元 201, 用于接收来自用户终端的 DNS请求报文; 第一判定单元 202, 用于判定 DNS请求报文的目的站点地址是否为 站点本地地址; Embodiment 2: Corresponding to the foregoing method embodiment, as shown in FIG. 2, is a schematic structural diagram of a user equipment of a DNS redirection based on an IPv6 network according to an embodiment of the present invention, where the user equipment includes: a first receiving unit 201, configured to receive a DNS request message from the user terminal; the first determining unit 202 is configured to determine whether the destination site address of the DNS request message is a site local address;
第一获取单元 203, 用于第一判定单元 202判定 DNS请求报文的目 的站点地址为站点本地地址时, 获取站点本地地址对应的全局 DNS 地 址; The first obtaining unit 203 is configured to: when the first determining unit 202 determines that the destination site address of the DNS request packet is a site local address, obtain a global DNS address corresponding to the site local address;
第一发送单元 204, 用于向全局 DNS地址发送 DNS请求 艮文。 可选的,第一发送单元 204 ,还可以用于第一判定单元 202判定 DNS 请求 4艮文的目的站点地址不是站点本地地址时, 直接转发 DNS 请求 4艮 文。 The first sending unit 204 is configured to send a DNS request message to the global DNS address. Optionally, the first sending unit 204 is further configured to: when the first determining unit 202 determines that the destination site address of the DNS request is not a site-local address, directly forward the DNS request.
本发明上述实施例技术方案的用户端设备接收来自用户终端的 DNS 请求 4艮文; 若判定 DNS请求报文的目的站点地址为站点本地地址, 则获 取站点本地地址对应的全局 DNS地址; 向全局 DNS地址发送 DNS请求 艮文的技术手段, 也可以理解为, 用户端设备对目的站地址为站点本地 地址时, 对站点本地地址进行全局 DNS 地址的重定向, 即该对该 DNS 请求报文进行重定向, 从而无须再执行通过网络部署, 在每个站点网络 内设置 DNS解析服务器的操作,就可以实现使已使用站点本地地址的用 户终端主机可成功实现 DNS重定向, 从而提高 DNS重定向技术实现和 地址管理的效率。 The user equipment of the technical solution of the foregoing embodiment of the present invention receives the DNS request from the user terminal, and obtains the global DNS address corresponding to the local address of the site if the destination site address of the DNS request packet is the site-local address; The technical means for the DNS address to send the DNS request message can also be understood as: when the destination device address is the site-local address, the local device performs the global DNS address redirection for the site-local address, that is, the DNS request packet is sent. Redirecting, so that there is no need to perform network deployment, and setting up a DNS resolution server in each site network, the user terminal host that has used the site local address can successfully implement DNS redirection, thereby improving DNS redirection technology. Implementation and address management efficiency.
如图 3所示, 为本发明实施例一种 DNS重定向的用户端设备应用于 IPv6网络的示意图, 用户端设备 20除包括上述第一接收单元 201、 第一 判定单元 202、 第一获取单元 203和第一发送单元 204外, 还可以包括: 第二接收单元 205 ,用于接收来自全局 DNS服务器 30的 DNS响应报文; 第二判定单元 206, 用于判定 DNS响应报文是否为重定向响应报文; 第
二获取单元 207 , 用于第二判定单元 206判定 DNS响应 4艮文为重定向响 应报文时, 获取 DNS响应报文对应的用户终端 10的地址; 第二发送单 元 208 , 用于向用户终端 10的地址发送 DNS响应 4艮文。 可选的, 第二 发送单元 208 , 还可以用于第二判定单元若判定 DNS响应报文不是重定 向响应 4艮文, 则直接转发 DNS响应 4艮文。 As shown in FIG. 3, a schematic diagram of a DNS redirection user equipment applied to an IPv6 network is provided in the embodiment of the present invention. The client equipment 20 includes the first receiving unit 201, the first determining unit 202, and the first acquiring unit. The 203 and the first sending unit 204 may further include: a second receiving unit 205, configured to receive a DNS response packet from the global DNS server 30; and a second determining unit 206, configured to determine whether the DNS response packet is a redirect Response message; The second obtaining unit 207 is configured to: when the second determining unit 206 determines that the DNS response is a redirect response packet, obtain an address of the user terminal 10 corresponding to the DNS response packet; and the second sending unit 208 is configured to send to the user terminal The address of 10 sends a DNS response. Optionally, the second sending unit 208 is further configured to: when the second determining unit determines that the DNS response message is not the redirect response message, directly forward the DNS response message.
另外, 可选的, 用户端设备还可以包括: 修改单元, 用于第一获取 单元 203获取站点本地地址对应的全局 DNS地址后, 将 DNS请求 4艮文 的站点本地地址修改为全局 DNS地址, 并通知第一发送单元 204向全局 DNS地址发送 DNS请求 4艮文。 In addition, optionally, the client device may further include: a modifying unit, configured to: after the first obtaining unit 203 obtains the global DNS address corresponding to the site local address, modify the site local address of the DNS request message to the global DNS address, And notifying the first sending unit 204 to send a DNS request message to the global DNS address.
可选的, 上述用户端设备 ( Customer Premise Equipment, CPE ) , 是指物理上位于用户侧的硬件, 至少为如下的一种: 服务器、 工作站、 通信硬件(通道服务单元 CSU/数据服务单元 DSU, 调制解调器) 、 局域 网 LAN设备(集线器、 网桥、 交换机) 、 广域网 WAN设备(路由器) 。 Optionally, the Customer Premise Equipment (CPE) refers to hardware that is physically located on the user side, at least one of the following: a server, a workstation, and a communication hardware (a channel service unit CSU/data service unit DSU, Modem), LAN LAN devices (hubs, bridges, switches), WAN WAN devices (routers).
本发明实施例是一种能选择性的将 IPv6 DNS请求重定向的 CPE, 当判定 IPv6 DNS请求报文的目的站点地址为站点本地地址时,获取站点 本地地址对应的全局 DNS地址进行重定向, 否则直接转发该 IPv6 DNS 请求 4艮文, 也可以理解为, 对目的站地址为站点本地地址时, 对站点本 地地址进行重定向, 即该对该 DNS请求报文进行全局 DNS地址的重定 向, 从而进一步接收来自全局 DNS地址对应的 良务器的 DNS响应 4艮文 并分发, 使已使用站点本地地址的用户终端主机可正常访问网络, 即使 发送 DNS请求的用户终端能成功请求到 DNS。由于可以通过路由器等将 用户终端主机发送的 IPv6 DNS请求重定向发给全局 DNS服务器, 因此 不需要 DHCPv6服务器, 用户终端主机也不需要支持 DHCPv6客户端, 用户终端主机通过路由器发现机制自动配置 IPv6地址后, 通过向站点本 地地址发送 DNS情求, 即可正常访问网络。 The embodiment of the present invention is a CPE that can selectively redirect an IPv6 DNS request. When the destination site address of the IPv6 DNS request packet is a site-local address, the global DNS address corresponding to the local address of the site is redirected. Otherwise, the IPv6 DNS request can be directly forwarded. It can also be understood that when the destination station address is a site-local address, the site-local address is redirected, that is, the global DNS address is redirected to the DNS request packet. Thereby, the DNS response from the server corresponding to the global DNS address is further received and distributed, so that the user terminal host that has used the site local address can access the network normally, even if the user terminal that sends the DNS request can successfully request the DNS. Since the IPv6 DNS request sent by the user terminal host can be redirected to the global DNS server through a router or the like, the DHCPv6 server is not required, and the user terminal host does not need to support the DHCPv6 client, and the user terminal host automatically configures the IPv6 address through the router discovery mechanism. After that, the network can be accessed normally by sending a DNS request to the site-local address.
上述具体实施例并不用以限制本发明, 对于本技术领域的普通技术人员
来说, 凡在不脱离本发明原理的前提下, 所作的任何修改、 等同替换、 改进 等, 均应包含在本发明的保护范围之内。
The above specific embodiments are not intended to limit the invention, and will be apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., which are made without departing from the principles of the invention, are intended to be included within the scope of the invention.
Claims
1、 一种基于 IPv6网絡的 DNS重定向方法, 其特征在于, 所述方法包括: 接收来自用户终端的 DNS请求报文; A method for redirecting a DNS based on an IPv6 network, the method comprising: receiving a DNS request packet from a user terminal;
若判定所述 DNS奇求 ^艮文的目的站点地址为站点本地地址, 则获取所述 站点本地地址对应的全局 DNS地址; If it is determined that the destination site address of the DNS singularity is a site-local address, obtaining a global DNS address corresponding to the site-local address;
向所述全局 DNS地址发送所述 DNS请求 ^艮文。 Sending the DNS request to the global DNS address.
2、 如权利要求 1所述方法, 其特征在于, 2. The method of claim 1 wherein:
若判定所述 DNS请求 · ^文的目的站点地址不是站点本地地址, 则直接转 发所述 DNS请求 ^艮文。 If it is determined that the destination address of the DNS request is not a site-local address, the DNS request is directly forwarded.
3、 如权利要求 1所述方法, 其特征在于, 所述方法还包括: 3. The method of claim 1, wherein the method further comprises:
接收来自全局 DNS服务器的 DNS响应报文; Receive DNS response packets from the global DNS server;
若判定所述 DNS响应报文为重定向响应报文, 则获取所述 DNS响应报文 对应的用户终端的地址; And if the DNS response packet is a redirect response packet, obtaining an address of the user terminal corresponding to the DNS response packet;
向所述用户终端的地址发送所述 DNS响应 ^艮文。 Sending the DNS response to the address of the user terminal.
4、 如权利要求 3所述方法, 其特征在于 , 4. The method of claim 3, wherein
若判定所述 DNS响应报文不是重定向响应报文, 则直接转发所述 DNS响 应报文。 If it is determined that the DNS response packet is not a redirect response packet, the DNS response packet is directly forwarded.
5、 如权利要求 1所述方法, 其特征在于, 所述获取所述站点本地地址对 应的全局 DNS地址后, 将所述 DNS请求艮文的站点本地地址 ί 改为所述全局 DNS地址, 然后向所述全局 DNS地址发送所述 DNS请求 4艮文。 The method of claim 1, wherein after obtaining the global DNS address corresponding to the site local address, the site local address ί of the DNS request message is changed to the global DNS address, and then Sending the DNS request message to the global DNS address.
6、 一种基于 IPv6 网络的 DNS重定向的用户端设备, 其特征在于, 所述 用户端设备包括: A user equipment of a DNS redirection based on an IPv6 network, where the user equipment includes:
第一接收单元, 用于接收来自用户终端的 DNS请求报文; a first receiving unit, configured to receive a DNS request message from the user terminal;
第一判定单元, 用于判定所述 DNS请求报文的目的站点地址是否为站点 本地地址; a first determining unit, configured to determine whether a destination site address of the DNS request packet is a site local address;
第一获取单元, 用于所述第一判定单元判定所述 DNS请求报文的目的站 点地址为站点本地地址时, 获取所述站点本地地址对应的全局 DNS地址; 第一发送单元, 用于向所述全局 DNS地址发送所述 DNS请求报文。 a first obtaining unit, configured to determine, by the first determining unit, a destination station of the DNS request message When the point address is a site-local address, the global DNS address corresponding to the site-local address is obtained. The first sending unit is configured to send the DNS request packet to the global DNS address.
7、 如权利要求 6所述用户端设备, 其特征在于, 7. The client device according to claim 6, wherein:
所述第一发送单元, 还用于所述第一判定单元若判定所述 DNS请求报文 的目的站点地址不是站点本地地址, 则直接转发所述 DNS请求报文。 The first sending unit is further configured to: if the first determining unit determines that the destination site address of the DNS request packet is not a site-local address, directly forward the DNS request packet.
8、如权利要求 6所述用户端设备, 其特征在于, 所述用户端设备还包括: 第二接收单元, 用于接收来自全局 DNS服务器的 DNS响应报文; 第二判定单元, 用于判定所述 DNS响应报文是否为重定向响应报文; 第二获取单元, 用于所述第二判定单元判定所述 DNS 响应报文为重定向 响应报文时, 获取所述 DNS响应报文对应的用户终端的地址; The user equipment according to claim 6, wherein the user equipment further comprises: a second receiving unit, configured to receive a DNS response message from the global DNS server; and a second determining unit, configured to determine Whether the DNS response packet is a redirect response packet, and the second obtaining unit is configured to: when the second determining unit determines that the DNS response packet is a redirect response packet, obtain the corresponding response of the DNS response packet The address of the user terminal;
第二发送单元, 用于向所述用户终端的地址发送所述 DNS响应报文。 And a second sending unit, configured to send the DNS response packet to an address of the user terminal.
9、 如权利要求 8所述用户端设备, 其特征在于, 9. The client device according to claim 8, wherein:
所述第二发送单元, 还用于所述第二判定单元判定所述 DNS 响应报文不 是重定向响应报文时, 直接转发所述 DNS响应报文。 The second sending unit is further configured to: when the second determining unit determines that the DNS response packet is not a redirect response packet, directly forward the DNS response packet.
10、 如权利要求 6 所述用户端设备, 其特征在于, 所述用户端设备还包 括: 10. The user equipment according to claim 6, wherein the user equipment further includes:
修改单元,用于所述第一获取单元获取所述站点本地地址对应的全局 DNS 地址后, 将所述 DNS请求艮文的站点本地地址 ί多改为所述全局 DNS地址, 并 通知所述第一发送单元向所述全局 DNS地址发送所述 DNS请求报文。 a modifying unit, configured to: after the first obtaining unit acquires the global DNS address corresponding to the site local address, change the site local address of the DNS request message to the global DNS address, and notify the first A sending unit sends the DNS request message to the global DNS address.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010118486.0 | 2010-03-03 | ||
CN2010101184860A CN102196052A (en) | 2010-03-03 | 2010-03-03 | Internet protocol version 6 (IPv6) network-based domain name system (DNS) redirection method and user equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2011107011A1 true WO2011107011A1 (en) | 2011-09-09 |
Family
ID=44541655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/071171 WO2011107011A1 (en) | 2010-03-03 | 2011-02-22 | Method and customer premise equipment for ipv6-network-based dns redirection |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102196052A (en) |
WO (1) | WO2011107011A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499396A (en) * | 2002-10-24 | 2004-05-26 | �Ҵ���˾ | Method and device for maintaining internet field names data |
CN1525713A (en) * | 2003-02-28 | 2004-09-01 | ���Ͽع�����˾ | Domain name server address arrangement |
US20070211714A1 (en) * | 2006-03-07 | 2007-09-13 | Metke Anthony R | Method and apparatus for redirection of Domain Name Service (DNS) packets |
CN101175097A (en) * | 2006-10-31 | 2008-05-07 | 阿尔卡特朗讯公司 | Resolution of flexible address schemes for IMS services |
CN101238453A (en) * | 2003-09-19 | 2008-08-06 | 摩托罗拉公司 | Setting up a name resolution system for home-to-home communications |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101605097A (en) * | 2009-07-22 | 2009-12-16 | 赛尔网络有限公司 | IPv6/IPv4 address hierarchical access right control method and access control gateway |
-
2010
- 2010-03-03 CN CN2010101184860A patent/CN102196052A/en active Pending
-
2011
- 2011-02-22 WO PCT/CN2011/071171 patent/WO2011107011A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499396A (en) * | 2002-10-24 | 2004-05-26 | �Ҵ���˾ | Method and device for maintaining internet field names data |
CN1525713A (en) * | 2003-02-28 | 2004-09-01 | ���Ͽع�����˾ | Domain name server address arrangement |
CN101238453A (en) * | 2003-09-19 | 2008-08-06 | 摩托罗拉公司 | Setting up a name resolution system for home-to-home communications |
US20070211714A1 (en) * | 2006-03-07 | 2007-09-13 | Metke Anthony R | Method and apparatus for redirection of Domain Name Service (DNS) packets |
CN101175097A (en) * | 2006-10-31 | 2008-05-07 | 阿尔卡特朗讯公司 | Resolution of flexible address schemes for IMS services |
Also Published As
Publication number | Publication date |
---|---|
CN102196052A (en) | 2011-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2364543B1 (en) | Broadband network access | |
JP5551247B2 (en) | Method and host node for multi-NAT64 environment | |
Jankiewicz et al. | Ipv6 node requirements | |
CN104506670B (en) | Establish method, equipment and the system of network game connection | |
CN102158563B (en) | Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network | |
CN106209643B (en) | Message forwarding method and device | |
US9319377B2 (en) | Auto-split DNS | |
EP2362587B1 (en) | Method and apparatus for realizing ARP request broadcasting limitation | |
WO2009117963A1 (en) | Address configuring method, apparatus and system | |
EP2579519A1 (en) | Method, network device and system for automatically configuring network device in internet protocol version 6 network | |
CN105144652A (en) | Address resolution in software-defined networks | |
EP1712044A1 (en) | Tunneling service method and system | |
WO2009094928A1 (en) | A method and equipment for transmitting a message based on the layer-2 tunnel protocol | |
WO2008077327A1 (en) | A business-binding method and device | |
CN109076019B (en) | Addressing for customer premises LAN extensions | |
EP2765743A1 (en) | Layer 2 inter-connecting method, apparatus and system based on ipv6 | |
CN105359458A (en) | Network device communication method and network device | |
KR101901341B1 (en) | Method and apparatus for supporting mobility of user equipment | |
CN103384282A (en) | Method for obtaining IPV6ND address and broadband remote access server (BARS) | |
CN102761425B (en) | Charging method and device | |
EP1940085A1 (en) | Method and device for service binding | |
CN101378340A (en) | Method for obtaining internet protocol address prefixing, operator edge equipment and client terminal equipment | |
WO2012109867A1 (en) | Method, apparatus and system for routing protocol configuration | |
WO2018090865A1 (en) | Method and apparatus for registering network device | |
CN104468305B (en) | Realize Layer3 Virtual Private Network method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11750164 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11750164 Country of ref document: EP Kind code of ref document: A1 |