WO2014008822A1 - Method, device and system for setting dns server address - Google Patents

Method, device and system for setting dns server address Download PDF

Info

Publication number
WO2014008822A1
WO2014008822A1 PCT/CN2013/078602 CN2013078602W WO2014008822A1 WO 2014008822 A1 WO2014008822 A1 WO 2014008822A1 CN 2013078602 W CN2013078602 W CN 2013078602W WO 2014008822 A1 WO2014008822 A1 WO 2014008822A1
Authority
WO
WIPO (PCT)
Prior art keywords
host
address
dns server
terminal device
server address
Prior art date
Application number
PCT/CN2013/078602
Other languages
French (fr)
Chinese (zh)
Inventor
林磊
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2014008822A1 publication Critical patent/WO2014008822A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • 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]

Definitions

  • the present invention relates to the field of computing applications, and in particular, to a method, device and system for setting a DNS server address on a Mac OS X operating system. Background technique
  • IPv6 Internet Protocol Version 6, Internet Protocol Version 6
  • IPv6 Internet Protocol Version 6
  • QoS quality of service
  • DNS Domain Name System
  • the role of the server is to bind the domain name and IP address on the network, so that the user can directly enter the domain name in the browser to access the site corresponding to the IP address.
  • IP address configuration method Configured based on the DHCPv6 protocol, apply for an IP address from the DHCP (Dynamic Host Configuration Protocol) server and obtain related configuration information (such as the default gateway, DNS server, etc.).
  • DHCP Dynamic Host Configuration Protocol
  • related configuration information such as the default gateway, DNS server, etc.
  • the DHCPv6 protocol is not supported.
  • the IPv6 address can only be configured through the ICMPv6 protocol.
  • the ICMPv6 protocol can only configure the IP address, but does not support other configuration information. It is not supported to obtain information such as the DNS server address. Therefore, the DNS server address under the Mac OS X operating system needs to be manually set by the user in the network configuration interface.
  • a terminal device such as a network card, data card, modem, etc.
  • the IPv6 DNS server address of the host cannot be automatically configured. Manually configured by the user, there is a problem that the manual configuration operation is cumbersome and inefficient. Summary of the invention
  • the embodiment of the present invention provides a method, a device, and a system for setting a DNS server address, which can solve the problem that an Internet terminal device that provides network services for a host running the Mac OS X operating system cannot automatically configure an IPv6 DNS server address, and manually configures a DNS address.
  • the server address operation is cumbersome and inefficient, and the DNS server address can be automatically configured, which is simple and efficient.
  • a method for setting a DNS server address configured to set a DNS server address for a host running a Mac OS X operating system, an IPv6 connection with the host, and an IP address set by the host, including:
  • a device for setting a DNS server address for setting a DNS server address for a host running a Mac OS X operating system including: a connection unit for establishing an IPv6 connection with a host running a Mac OS X operating system, and further comprising:
  • the receiving unit is connected to the connecting unit, and configured to receive an inquiry command sent by the host, and transmit the query command to the main control unit;
  • the main control unit is connected to the receiving unit, and configured to return a DNS server address to the host according to a query command, so that the host invokes an API of the Mac OS X operating system, and the host is configured to DNS server address.
  • a method for setting a DNS server address configured to set a DNS server address for a host running the Mac OS X operating system, the host and the internet terminal device having established an IPv6 connection and the host The IP address has been set, including:
  • a device for setting a DNS server address, for a host running the Mac OS X operating system comprising: a connection establishing unit for establishing an IPv6 connection with the internet terminal device, and further comprising:
  • the main control processing unit is connected to the connection establishing unit, configured to acquire a DNS server address from the online terminal device by using a query command, and transmit the address to the address setting unit;
  • the address setting unit is connected to the main control processing unit, and is configured to invoke an API of the Mac OS X operating system according to a DNS server address acquired by the main control processing unit from the online terminal device, and set the host for the host Get the DNS server address.
  • a system for setting a DNS server address including:
  • the device is provided with a device for setting a DNS server address provided by Embodiment 4 of the present invention, and the device is in communication connection with the Internet access terminal device, and is configured to set a DNS server address of the host.
  • the running Mac OS X operating system host cooperates with the Internet terminal device, and obtains the DNS server address information for configuration by using the query command, and automatically completes the host DNS server.
  • the configuration of the address Therefore, the host DNS server address of the Mac OS X operating system can be automatically configured by using the internet terminal device that implements the network service, and the user's manual operation is not required, thereby improving the convenience and configuration efficiency of use.
  • Embodiment 1 is a flowchart of a method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic structural diagram of a device according to Embodiment 2 of the present invention.
  • Embodiment 3 is a flowchart of a method according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of a device according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of a system according to Embodiment 5 of the present invention. detailed description
  • the core of the present invention is: to enable a host running Mac OS X operating system and an Internet terminal device (the Internet terminal device can be a device that provides a network connection for a host running the Mac OS X operating system, such as a wireless network card or router, a modem, etc.)
  • the configuration of the DNS server address for the Mac OS X operating system is automatically completed after the Internet terminal device cooperates with the host to obtain the DNS server address information for configuration.
  • This embodiment provides a method for setting a DNS server address, which is used to run Mac OS X.
  • the host of the system sets the DNS server address, and the Internet terminal device has established an IPv6 connection with the host and the host has set an IP address.
  • the method is as shown in FIG. 1 and includes the following steps:
  • Step 1 receiving a query command sent by the host, and returning the DNS server address to the host according to the query command;
  • Step 2 The host invokes an API of the Mac OS X operating system to set the DNS server address for the host.
  • the DNS server address is returned to the host according to the query command: obtaining the DNS server address from the internet terminal device by using a USB command or an HTTP command.
  • the query command can be determined according to the type of the terminal device. If the terminal device is a USB data card, the USB command can be used. If the Internet terminal device is an Ethernet interface router, the query command can use the HTTP command.
  • the Internet terminal device establishes an IPv6 connection with the host, and the host sets the IP address to be:
  • the Internet terminal device receives the ICMPv6 command sent by the host, and returns the IP address to the host according to the received ICMPv6 command, so that the host sets the IP address.
  • the IP address is returned to the host according to the received ICMPv6 command:
  • the Internet terminal device returns an IP address to the host by using the ICMPv6 object according to the received ICMPv6 request for querying the IP address, and the returned IP address is an IPv6 address.
  • the IP address and the DNS server address obtained by the Internet terminal device are the IP address and the DNS server address obtained by the Internet terminal from the network side during the establishment of the connection with the network side.
  • the embodiment provides a device for setting a DNS server address, which is used to set a DNS server address for a host running the Mac OS X operating system, and the device can be used as an Internet terminal device that provides a network connection to a host running the Mac OS X operating system.
  • the device includes: a connecting unit 21, a receiving unit 22, and a main control unit 23;
  • the connection unit 21 is configured to establish an IPv6 connection with a host running the Mac OS X operating system;
  • the receiving unit 22 is connected to the connecting unit 21, configured to receive an ICMPv6 command sent by the host, and transmit the command to the main control unit; and receive the query command sent by the host, and transmit the query command to the main control unit;
  • the main control unit 23 is connected to the receiving unit 22, configured to return an IP address to the host according to the received ICMPv6 command, so that the host sets the IP address; and return the DNS server address to the host according to the query command. So that the host invokes the API of the Mac OS X operating system to set the DNS server address for the host.
  • An embodiment of the present invention provides a method for setting a DNS server address, which is used to set a DNS server address for a host running the Mac OS X operating system, and the host has established an IPv6 connection with the Internet terminal device and the host has set an IP address. As shown in Figure 3, the following steps are included:
  • Step 31 Obtain a DNS server address from the online terminal device by using a query command.
  • Step 32 Call an API of the Mac OS X operating system to set a obtained DNS server address for the host.
  • the DNS server address is obtained from the internet terminal device by using a query command: obtaining a DNS server address from the internet terminal device by using a USB command or an HTTP command.
  • the query command can be determined according to the type of the terminal device. If the Internet terminal device is a USB data card, the USB command can be used. If the Internet terminal device is a router of the Ethernet interface, the query command can use the HTTP command.
  • the host running the Mac OS X operating system establishes an IPv6 connection with the Internet terminal device and the host setting IP address can be:
  • the host obtains an IP address from the Internet terminal device through the ICMPv6 command, and the host sets the obtained IP address.
  • the host obtains an IP address from the Internet terminal device through the ICMPv6 command, which specifically includes the following steps: After determining that the IPv6 connection is established with the Internet terminal device, sending an ICMPv6 request for querying the IP address to the Internet terminal device;
  • Receiving an IP address returned by the internet terminal device according to the ICMPv6 request for querying the IP address It can receive the IP address returned by the Internet terminal device using the ICMPv6 object, and the returned IP address is an IPv6 address.
  • the IP address and the DNS server address obtained by the host from the Internet terminal device are IP addresses and DNS server addresses obtained by the network terminal from the network side during the connection process between the establishment and the network side.
  • the host running the Mac OS X operating system communicates with the Internet terminal device, and installs the driver and the resident process (ie, the resident service process) of the Internet terminal device on the host computer, and obtains the Mac OS X operation of the host running.
  • the resident process of the highest administrator authority of the system the host can connect to the IPv6 network through the Internet terminal device, and after the Internet terminal device connects to the IPv6 network, the DNS information is transmitted to the driver of the Internet terminal device; the driver will DNS information.
  • the resident process calls the application interface function (API) of the Mac OS X operating system to set the DNS information to the host.
  • API application interface function
  • step 41 is: a driver running on a host running the Mac OS X operating system (a driver for the Internet terminal) establishes an IPv6 connection with the terminal device; and step 42 is: the host passes the same The running driver receives the connection notification sent by the internet terminal device;
  • Step 43 the host queries the Internet terminal device for the IP address through the ICMPv6 request request through the driver running on the host;
  • Step 44 The host receives the IP address returned by the Internet terminal device through the ICMPv6 response through the driver running on the host;
  • Step 45 the operating system running on the host is obtained according to the driver running on the host. IP address, automatically configure the IP address of the host;
  • Step 46 The host queries the Internet terminal device to query the DNS server address through the query command by using the driver running on the host;
  • Step 47 The host receives the DNS server address returned by the terminal device through the driver running on the host, and transparently transmits the resident server to the resident process running on the host that has obtained root authority;
  • Step 48 is: running on the host The resident process calls the API of the Mac OS X operating system to set the DNS server address using the received DNS server address.
  • step 46 the host queries the DNS server from the terminal device through the driver running thereon. Address: In step 47, the host transparently transmits the DNS server address to the resident process running on the host through the driver running on the host; in step 48, the resident process running on the host invokes the system API to set the host's DNS server. address.
  • the DNS server address of the host can be automatically configured without manual operation by the user.
  • the embodiment provides a device for setting a DNS server address, which is used in a host running the Mac OS X operating system. As shown in FIG. 5, the device includes: a connection establishing unit 51, a main control processing unit 52, and an address setting unit 53. ;
  • the connection establishing unit 51 is configured to establish an IPv6 connection with the Internet access terminal device.
  • the main control processing unit 52 is connected to the connection establishing unit 51, and is configured to determine that the Internet terminal device connected to the host establishes an IPv6 connection, and then uses the ICMPv6 command to access the Internet access terminal.
  • the device obtains an IP address and transmits it to the address setting unit; and is configured to obtain a DNS service from the online terminal device by using a query command. Server address and transfer to the address setting unit;
  • the address setting unit 53 is connected to the main control processing unit 52, configured to set the IP address for the host according to the IP address obtained by the main control processing unit from the online terminal device; and the DNS for obtaining from the online terminal device according to the main control processing unit. Address, call the API of the Mac OS X operating system, and set the obtained DNS server address for the host.
  • This embodiment provides a system for setting a DNS server address. As shown in FIG. 6, the system includes:
  • the device is provided with a device 62 for setting a DNS server address according to the fourth embodiment, and the device 62 is communicatively connected with the internet terminal device 63 for setting a DNS server address of the host 61.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Abstract

In the field of computer application, disclosed are a method, device and system for setting a DNS server address. The method is used for setting a DNS server address for a host which runs a Mac OS X operating system, the host has established an IPv6 connection, and an IP address has been set for the host. The method comprises: receiving a query command sent by the host, returning a DNS server address to the host according to the query command, enabling the host to call an API of the Mac OS X operating system, and setting the DNS server address for the host. Therefore, a DNS server address can be automatically configured for a host running a Mac OS X operating system without requiring manual operation of a user, which improves the convenience in use and the configuration efficiency.

Description

设置 DNS服务器地址的方法、 装置及系统  Method, device and system for setting DNS server address
技术领域 Technical field
本发明涉及计算应用领域, 尤其涉及一种在 Mac OS X操作系统上设置 DNS服务器地址的方法、 装置及系统。 背景技术  The present invention relates to the field of computing applications, and in particular, to a method, device and system for setting a DNS server address on a Mac OS X operating system. Background technique
现有的互联网是在 IPv4协议的基础上运行。 IPv6 ( Internet Protocol Version 6, 互联网协议 6版) 是下一版本的互联网协议, 它的提出最初是 因为随着互联网的迅速发展, IPv4定义的有限地址空间将被耗尽, 地址空 间的不足必将影响互联网的进一歩发展。 IPv6具有: 扩大地址空间、 提高 网络的整体吞吐量、 改善服务质量 (QoS)、 安全性有更好的保证、 支持即插 即用和移动性、 更好实现多播功能等优势。 DNS (Domain Name System 域 名系统) 服务器的作用是将网络上域名和 IP地址绑定起来, 这样用户在浏 览器中直接输入域名即可访问对应 IP地址的站点。  The existing Internet is based on the IPv4 protocol. IPv6 (Internet Protocol Version 6, Internet Protocol Version 6) is the next version of the Internet Protocol. It was originally proposed because with the rapid development of the Internet, the limited address space defined by IPv4 will be exhausted, and the lack of address space will be Affect the further development of the Internet. IPv6 has the advantages of expanding address space, improving overall network throughput, improving quality of service (QoS), better security, supporting plug-and-play and mobility, and better implementation of multicast capabilities. DNS (Domain Name System) The role of the server is to bind the domain name and IP address on the network, so that the user can directly enter the domain name in the browser to access the site corresponding to the IP address.
目前在 IPv6协议中实现主机 IP地址自动配置有以下几种方法: 全状态自动配置 ( stateful autoconf iguration) :  Currently, there are several methods for automatically configuring the host IP address in the IPv6 protocol: Stateful autoconfuration:
基于 DHCPv6协议进行配置,通过从 DHCP (Dynamic Host Configuration Protocol动态主机配置协议)服务器申请 IP地址并获得有关的配置信息(如 缺省网关、 DNS服务器等) , 这种 IP地址配置方法方法与 IPv4基本相同。  Configured based on the DHCPv6 protocol, apply for an IP address from the DHCP (Dynamic Host Configuration Protocol) server and obtain related configuration information (such as the default gateway, DNS server, etc.). This IP address configuration method and IPv4 basics. the same.
而目前所有 Mac OS X操作系统 (苹果公司的个人电脑操作系统) 版本 And all current Mac OS X operating systems (Apple's PC operating system) version
( 10. 4版 /10. 5版 /10. 6版) 均不支持 DHCPv6协议, 仅能通过 ICMPv6协议来 配置 IPv6地址, 但是 ICMPv6协议仅能够配置 IP地址, 而不支持获取其它配 置信息, 如不支持获取 DNS服务器地址等信息, 因此在 Mac OS X操作系统下 的 DNS服务器地址需要用户自己在网络配置界面手动设置。在利用上网终端 设备 (如上网卡、 数据卡、 调制解调器等) 为运行 Mac OS X操作系统的主 机提供网络服务时, 无法实现自动配置主机的 IPv6 DNS服务器地址, 只能 用户手工配置, 存在手工配置操作繁琐, 效率低的问题。 发明内容 ( 10.4 version/10. 5 version/10.6 version) The DHCPv6 protocol is not supported. The IPv6 address can only be configured through the ICMPv6 protocol. However, the ICMPv6 protocol can only configure the IP address, but does not support other configuration information. It is not supported to obtain information such as the DNS server address. Therefore, the DNS server address under the Mac OS X operating system needs to be manually set by the user in the network configuration interface. When using a terminal device (such as a network card, data card, modem, etc.) to provide network services for a host running Mac OS X operating system, the IPv6 DNS server address of the host cannot be automatically configured. Manually configured by the user, there is a problem that the manual configuration operation is cumbersome and inefficient. Summary of the invention
本发明实施方式提供一种设置 DNS服务器地址的方法、 装置及系统, 可 以解决目前为运行 Mac OS X操作系统的主机提供网络服务的上网终端设备 无法实现自动配置 IPv6 DNS服务器地址, 存在手工配置 DNS服务器地址操作 繁琐, 效率低的问题, 可以自动配置 DNS服务器地址, 操作简单、 效率高。  The embodiment of the present invention provides a method, a device, and a system for setting a DNS server address, which can solve the problem that an Internet terminal device that provides network services for a host running the Mac OS X operating system cannot automatically configure an IPv6 DNS server address, and manually configures a DNS address. The server address operation is cumbersome and inefficient, and the DNS server address can be automatically configured, which is simple and efficient.
一种设置 DNS服务器地址的方法, 用于为运行 Mac OS X操作系统的主机 设置 DNS服务器地址, 与所述主机已建立 IPv6连接且主机已设置 IP地址, 包 括:  A method for setting a DNS server address, configured to set a DNS server address for a host running a Mac OS X operating system, an IPv6 connection with the host, and an IP address set by the host, including:
接收所述主机发送的查询命令, 根据查询命令将 DNS服务器地址返回至 所述主机, 以使所述主机调用所述 Mac OS X操作系统的 API , 为所述主机设 置该 DNS服务器地址。 一种设置 DNS服务器地址的装置, 用于为运行 Mac OS X操作系统的主机 设置 DNS服务器地址, 包括: 用于与运行 Mac OS X操作系统的主机建立 IPv6 连接的连接单元, 还包括:  Receiving a query command sent by the host, returning a DNS server address to the host according to the query command, so that the host invokes an API of the Mac OS X operating system, and setting the DNS server address for the host. A device for setting a DNS server address for setting a DNS server address for a host running a Mac OS X operating system, including: a connection unit for establishing an IPv6 connection with a host running a Mac OS X operating system, and further comprising:
接收单元和主控单元; 其中,  a receiving unit and a main control unit; wherein
所述接收单元, 与所述连接单元连接, 用于接收所述主机发送的查询 命令, 并传送至所述主控单元;  The receiving unit is connected to the connecting unit, and configured to receive an inquiry command sent by the host, and transmit the query command to the main control unit;
所述主控单元,与所述接收单元连接,用于根据查询命令将 DNS服务器 地址返回至所述主机, 以使所述主机调用所述 Mac OS X操作系统的 API , 为 所述主机设置该 DNS服务器地址。 —种设置 DNS服务器地址的方法, 用于为运行 Mac OS X操作系统的主机 设置 DNS服务器地址, 所述主机与上网终端设备已建立 IPv6连接且所述主机 已设置 IP地址, 包括: The main control unit is connected to the receiving unit, and configured to return a DNS server address to the host according to a query command, so that the host invokes an API of the Mac OS X operating system, and the host is configured to DNS server address. a method for setting a DNS server address, configured to set a DNS server address for a host running the Mac OS X operating system, the host and the internet terminal device having established an IPv6 connection and the host The IP address has been set, including:
通过查询命令从所述上网终端设备获取 DNS服务器地址;  Obtaining a DNS server address from the internet terminal device by using a query command;
调用所述 Mac OS X操作系统的 API , 为所述主机设置获取的 DNS服务器 地址。 一种设置 DNS服务器地址的装置, 用于运行 Mac OS X操作系统的主机中, 包括: 用于与上网终端设备建立 IPv6连接的连接建立单元, 还包括:  Calling the API of the Mac OS X operating system to set the acquired DNS server address for the host. A device for setting a DNS server address, for a host running the Mac OS X operating system, comprising: a connection establishing unit for establishing an IPv6 connection with the internet terminal device, and further comprising:
主控处理单元和地址设置单元; 其中,  a main control processing unit and an address setting unit; wherein
所述主控处理单元, 与所述连接建立单元连接, 用于通过查询命令从 所述上网终端设备获取 DNS服务器地址并传送至所述地址设置单元;  The main control processing unit is connected to the connection establishing unit, configured to acquire a DNS server address from the online terminal device by using a query command, and transmit the address to the address setting unit;
所述地址设置单元, 与所述主控处理单元连接, 用于根据所述主控处 理单元从上网终端设备获取的 DNS服务器地址, 调用所述 Mac OS X操作系统 的 API , 为所述主机设置获取的 DNS服务器地址。 一种设置 DNS服务器地址的系统, 包括:  The address setting unit is connected to the main control processing unit, and is configured to invoke an API of the Mac OS X operating system according to a DNS server address acquired by the main control processing unit from the online terminal device, and set the host for the host Get the DNS server address. A system for setting a DNS server address, including:
运行 Mac OS X操作系统的主机和上网终端设备, 上网终端设备采用本 发明实施例二提供的设置 DNS服务器地址的装置;  The device for running the Mac OS X operating system and the Internet terminal device, and the device for setting the DNS server address provided by the second embodiment of the present invention;
所述主机中设有本发明实施例四提供的设置 DNS服务器地址的装置,所 述装置与所述上网终端设备通信连接, 用于设置所述主机的 DNS服务器地 址。 由上述提供的技术方案可以看出,本发明实施方式中通过运行的 Mac OS X操作系统主机与上网终端设备配合, 利用查询命令, 获取配置用的 DNS服 务器地址信息后, 自动完成对主机 DNS服务器地址的配置。 从而可以实现利 用实现网络服务的上网终端设备自动配置 Mac OS X操作系统的主机 DNS服务 器地址, 无需用户手工操作, 提高了使用的便利性和配置效率。 附图说明 The device is provided with a device for setting a DNS server address provided by Embodiment 4 of the present invention, and the device is in communication connection with the Internet access terminal device, and is configured to set a DNS server address of the host. It can be seen from the technical solution provided by the foregoing that, in the embodiment of the present invention, the running Mac OS X operating system host cooperates with the Internet terminal device, and obtains the DNS server address information for configuration by using the query command, and automatically completes the host DNS server. The configuration of the address. Therefore, the host DNS server address of the Mac OS X operating system can be automatically configured by using the internet terminal device that implements the network service, and the user's manual operation is not required, thereby improving the convenience and configuration efficiency of use. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域的普通技术人员来讲, 在不付出创造性 劳动的前提下, 还可以根据这些附图获得其他附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图 1为本发明实施例一提供的方法流程图;  1 is a flowchart of a method according to Embodiment 1 of the present invention;
图 2为本发明实施例二提供的装置结构示意图;  2 is a schematic structural diagram of a device according to Embodiment 2 of the present invention;
图 3为本发明实施例三提供的方法流程图;  3 is a flowchart of a method according to Embodiment 3 of the present invention;
图 4为本发明实施例三提供的方法具体流程图;  4 is a specific flowchart of a method according to Embodiment 3 of the present invention;
图 5为本发明实施例四提供的装置结构示意图;  FIG. 5 is a schematic structural diagram of a device according to Embodiment 4 of the present invention; FIG.
图 6为本发明实施例五提供的系统结构示意图。 具体实施方式  FIG. 6 is a schematic structural diagram of a system according to Embodiment 5 of the present invention. detailed description
下面结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明的实施例, 本领域普通技术人员在没有 做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明的保护范 围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but 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.
本发明的核心在于: 使运行 Mac OS X操作系统的主机与上网终端设备 (上网终端设备可以是为运行 Mac OS X操作系统的主机提供网络连接的设 备, 如无线上网卡或路由器、 调制解调器等) 建立 IPv6连接后, 通过上网 终端设备与所述主机的配合, 获取配置用的 DNS服务器地址信息后, 自动完 成对运行 Mac OS X操作系统的主机 DNS服务器地址的配置。 本实施例提供一种设置 DNS服务器地址的方法, 用于为运行 Mac OS X操 作系统的主机设置 DNS服务器地址, 上网终端设备与所述主机已建立 IPv6连 接且主机已设置 IP地址, 该方法如图 1所示, 包括以下歩骤: The core of the present invention is: to enable a host running Mac OS X operating system and an Internet terminal device (the Internet terminal device can be a device that provides a network connection for a host running the Mac OS X operating system, such as a wireless network card or router, a modem, etc.) After the IPv6 connection is established, the configuration of the DNS server address for the Mac OS X operating system is automatically completed after the Internet terminal device cooperates with the host to obtain the DNS server address information for configuration. This embodiment provides a method for setting a DNS server address, which is used to run Mac OS X. The host of the system sets the DNS server address, and the Internet terminal device has established an IPv6 connection with the host and the host has set an IP address. The method is as shown in FIG. 1 and includes the following steps:
歩骤 1, 接收主机发送的查询命令, 根据查询命令将 DNS服务器地址返 回至所述主机;  Step 1: receiving a query command sent by the host, and returning the DNS server address to the host according to the query command;
歩骤 2, 使所述主机调用所述 Mac OS X操作系统的 API , 为主机设置该 DNS服务器地址。  Step 2: The host invokes an API of the Mac OS X operating system to set the DNS server address for the host.
上述歩骤 1中, 根据查询命令将 DNS服务器地址返回至所述主机为: 通 过 USB命令或 HTTP命令从所述上网终端设备获取 DNS服务器地址。 具体采用 何种查询命令, 可以根据上网终端设备的类型确定, 若上网终端设备为 USB 数据卡, 则可以采用 USB命令, 若上网终端设备为以太网接口的路由器, 则 查询命令可以采用 HTTP命令。  In the foregoing step 1, the DNS server address is returned to the host according to the query command: obtaining the DNS server address from the internet terminal device by using a USB command or an HTTP command. The query command can be determined according to the type of the terminal device. If the terminal device is a USB data card, the USB command can be used. If the Internet terminal device is an Ethernet interface router, the query command can use the HTTP command.
上述方法中, 上网终端设备与所述主机建立 IPv6连接且主机设置 IP地 址可以是:  In the above method, the Internet terminal device establishes an IPv6 connection with the host, and the host sets the IP address to be:
上网终端设备接收主机发送的 ICMPv6命令, 根据接收的 ICMPv6命令将 IP地址返回至主机, 使主机设置该 IP地址。 其中根据接收的 ICMPv6命令将 IP地址返回至主机为:  The Internet terminal device receives the ICMPv6 command sent by the host, and returns the IP address to the host according to the received ICMPv6 command, so that the host sets the IP address. The IP address is returned to the host according to the received ICMPv6 command:
上网终端设备根据接收的查询 IP地址的 ICMPv6请求, 利用 ICMPv6对象 向所述主机返回 IP地址, 返回的 IP地址为 IPv6地址。  The Internet terminal device returns an IP address to the host by using the ICMPv6 object according to the received ICMPv6 request for querying the IP address, and the returned IP address is an IPv6 address.
上述方法中,上网终端设备获得的 IP地址和 DNS服务器地址为上网终端 在建立与网络侧的连接过程中从网络侧获得的 IP地址和 DNS服务器地址。 本实施例提供一种设置 DNS服务器地址的装置, 用于为运行 Mac OS X操 作系统的主机设置 DNS服务器地址, 该装置可以作为向运行 Mac OS X操作系 统的主机提供网络连接的上网终端设备, 如可以是无线上网卡或路由器、 调制解调器等) , 如图 2所示, 该装置包括: 连接单元 21、 接收单元 22和主 控单元 23; 其中, 连接单元 21, 用于与运行 Mac OS X操作系统的主机建立 IPv6连 接; In the above method, the IP address and the DNS server address obtained by the Internet terminal device are the IP address and the DNS server address obtained by the Internet terminal from the network side during the establishment of the connection with the network side. The embodiment provides a device for setting a DNS server address, which is used to set a DNS server address for a host running the Mac OS X operating system, and the device can be used as an Internet terminal device that provides a network connection to a host running the Mac OS X operating system. As shown in FIG. 2, the device includes: a connecting unit 21, a receiving unit 22, and a main control unit 23; The connection unit 21 is configured to establish an IPv6 connection with a host running the Mac OS X operating system;
接收单元 22, 与连接单元 21连接, 用于接收主机发送的 ICMPv6命令, 并传送至所述主控单元; 以及用于接收所述主机发送的查询命令, 并传送 至所述主控单元;  The receiving unit 22 is connected to the connecting unit 21, configured to receive an ICMPv6 command sent by the host, and transmit the command to the main control unit; and receive the query command sent by the host, and transmit the query command to the main control unit;
主控单元 23, 与接收单元 22连接, 用于根据接收的 ICMPv6命令将 IP地 址返回至所述主机, 以使所述主机设置该 IP地址; 以及根据查询命令将 DNS 服务器地址返回至所述主机, 以使所述主机调用所述 Mac OS X操作系统的 API , 为主机设置该 DNS服务器地址。 本发明实施例提供一种设置 DNS服务器地址的方法,用于为运行 Mac OS X操作系统的主机设置 DNS服务器地址, 所述主机与上网终端设备已建立 IPv6连接且主机已设置 IP地址, 该方法如图 3所示, 包括以下歩骤:  The main control unit 23 is connected to the receiving unit 22, configured to return an IP address to the host according to the received ICMPv6 command, so that the host sets the IP address; and return the DNS server address to the host according to the query command. So that the host invokes the API of the Mac OS X operating system to set the DNS server address for the host. An embodiment of the present invention provides a method for setting a DNS server address, which is used to set a DNS server address for a host running the Mac OS X operating system, and the host has established an IPv6 connection with the Internet terminal device and the host has set an IP address. As shown in Figure 3, the following steps are included:
歩骤 31, 通过查询命令从所述上网终端设备获取 DNS服务器地址; 歩骤 32, 调用所述 Mac OS X操作系统的 API , 为所述主机设置获取的 DNS 服务器地址。  Step 31: Obtain a DNS server address from the online terminal device by using a query command. Step 32: Call an API of the Mac OS X operating system to set a obtained DNS server address for the host.
上述歩骤 31中, 通过查询命令从所述上网终端设备获取 DNS服务器地址 为: 通过 USB命令或 HTTP命令从所述上网终端设备获取 DNS服务器地址。 具 体采用何种查询命令, 可以根据上网终端设备的类型确定, 若上网终端设 备为 USB数据卡, 则可以采用 USB命令, 若上网终端设备为以太网接口的路 由器, 则查询命令可以采用 HTTP命令。  In the foregoing step 31, the DNS server address is obtained from the internet terminal device by using a query command: obtaining a DNS server address from the internet terminal device by using a USB command or an HTTP command. The query command can be determined according to the type of the terminal device. If the Internet terminal device is a USB data card, the USB command can be used. If the Internet terminal device is a router of the Ethernet interface, the query command can use the HTTP command.
上述方法中, 运行 Mac OS X操作系统主机与上网终端设备建立 IPv6连 接且主机设置 IP地址可以是:  In the above method, the host running the Mac OS X operating system establishes an IPv6 connection with the Internet terminal device and the host setting IP address can be:
主机通过 ICMPv6命令从上网终端设备获取 IP地址, 主机设置获取的 IP 地址。 其中主机通过 ICMPv6命令从上网终端设备获取 IP地址具体包括以下 歩骤: 确定与上网终端设备建立 IPv6连接后, 向所述上网终端设备发送查询 IP地址的 ICMPv6请求; The host obtains an IP address from the Internet terminal device through the ICMPv6 command, and the host sets the obtained IP address. The host obtains an IP address from the Internet terminal device through the ICMPv6 command, which specifically includes the following steps: After determining that the IPv6 connection is established with the Internet terminal device, sending an ICMPv6 request for querying the IP address to the Internet terminal device;
接收所述上网终端设备根据所述查询 IP地址的 ICMPv6请求返回的 IP地 址。 可以接收上网终端设备利用 ICMPv6对象返回的 IP地址, 返回的 IP地址 是 IPv6地址。  Receiving an IP address returned by the internet terminal device according to the ICMPv6 request for querying the IP address. It can receive the IP address returned by the Internet terminal device using the ICMPv6 object, and the returned IP address is an IPv6 address.
上述方法中, 主机从上网终端设备获得的 IP地址和 DNS服务器地址为上 网终端在建立和网络侧的连接过程中从网络侧获得的 IP地址和 DNS服务器 地址。 下面将结合图 4对本发明实施例方法作进一歩地详细描述。  In the above method, the IP address and the DNS server address obtained by the host from the Internet terminal device are IP addresses and DNS server addresses obtained by the network terminal from the network side during the connection process between the establishment and the network side. The method of the embodiment of the present invention will be described in detail below with reference to FIG.
运行 Mac OS X操作系统的主机与上网终端设备通信连接, 并在主机上 安装与上网终端设备配套的驱动程序和常驻进程(即常驻内存的服务进程, 是获得主机运行的 Mac OS X操作系统的最高管理员权限的常驻进程) , 主 机能够通过上网终端设备连接到 IPv6网络, 在上网终端设备连接到 IPv6网 络之后, 将 DNS信息传递给上网终端设备的驱动程序; 驱动程序将 DNS信息 透传给常驻进程, 由该常驻进程调用 Mac OS X操作系统的应用程序接口函 数 (API ) 将 DNS信息设置到主机中。  The host running the Mac OS X operating system communicates with the Internet terminal device, and installs the driver and the resident process (ie, the resident service process) of the Internet terminal device on the host computer, and obtains the Mac OS X operation of the host running. The resident process of the highest administrator authority of the system), the host can connect to the IPv6 network through the Internet terminal device, and after the Internet terminal device connects to the IPv6 network, the DNS information is transmitted to the driver of the Internet terminal device; the driver will DNS information. Transparently passed to the resident process, the resident process calls the application interface function (API) of the Mac OS X operating system to set the DNS information to the host.
如图 4所示, 歩骤 41为: 运行 Mac OS X操作系统的主机上运行的驱 动程序 (为与上网终端配套的驱动程序) 与上网终端设备建立 IPv6连接; 歩骤 42为:主机通过其上运行的驱动程序接收上网终端设备发来的连 接通知;  As shown in FIG. 4, step 41 is: a driver running on a host running the Mac OS X operating system (a driver for the Internet terminal) establishes an IPv6 connection with the terminal device; and step 42 is: the host passes the same The running driver receives the connection notification sent by the internet terminal device;
歩骤 43为: 主机通过其上运行的驱动程序通过 ICMPv6 request请求 向上网终端设备查询 IP地址;  Step 43 is: the host queries the Internet terminal device for the IP address through the ICMPv6 request request through the driver running on the host;
歩骤 44 为: 主机通过其上运行的驱动程序接收上网终端设备通过 ICMPv6 response返回的 IP地址;  Step 44: The host receives the IP address returned by the Internet terminal device through the ICMPv6 response through the driver running on the host;
歩骤 45为:主机上运行的操作系统根据主机上运行的驱动程序获得的 IP地址, 自动配置主机的 IP地址; Step 45 is: the operating system running on the host is obtained according to the driver running on the host. IP address, automatically configure the IP address of the host;
歩骤 46为:主机通过其上运行的驱动程序通过查询命令向上网终端设 备查询 DNS服务器地址;  Step 46: The host queries the Internet terminal device to query the DNS server address through the query command by using the driver running on the host;
歩骤 47 为: 主机通过其上运行的驱动程序接收上网终端设备返回的 DNS服务器地址, 并透传至已获得 root权限的运行于主机上的常驻进程; 歩骤 48为: 运行于主机上的常驻进程调用 Mac OS X操作系统的 API 利用收到的 DNS服务器地址来设置 DNS服务器地址。  Step 47: The host receives the DNS server address returned by the terminal device through the driver running on the host, and transparently transmits the resident server to the resident process running on the host that has obtained root authority; Step 48 is: running on the host The resident process calls the API of the Mac OS X operating system to set the DNS server address using the received DNS server address.
上述图 4的流程中,从歩骤 41至歩骤 44属于建立 IPv6连接以及通过 ICMPv6命令获取 IP地址的过程; 在歩骤 46, 主机通过其上运行的驱动程 序从上网终端设备处查询 DNS服务器地址; 歩骤 47中主机通过其上运行的 驱动程序将 DNS服务器地址透传给主机上运行的常驻进程; 歩骤 48中由该 主机上运行的常驻进程调用系统 API设置主机的 DNS服务器地址。  In the foregoing process of FIG. 4, from step 41 to step 44, the process of establishing an IPv6 connection and obtaining an IP address by using an ICMPv6 command; in step 46, the host queries the DNS server from the terminal device through the driver running thereon. Address: In step 47, the host transparently transmits the DNS server address to the resident process running on the host through the driver running on the host; in step 48, the resident process running on the host invokes the system API to set the host's DNS server. address.
上述方法中,主机上运行的该常驻进程在安装时就已经拥有 root权限 (即系统最高管理员权限, 否则无法执行设置 DNS服务器地址的 API ); 这 样在每次主机的操作系统重新启动时, 能够自动启动。  In the above method, the resident process running on the host already has root authority at the time of installation (that is, the highest administrator authority of the system, otherwise the API for setting the DNS server address cannot be executed); thus, each time the host operating system is restarted , can start automatically.
通过本发明实施例提供的方法, 实现了在 Mac OS X操作系统上建立 IPv6 网络连接之后, 可以实现自动配置主机的 DNS服务器地址, 无需用户手工操 作。 本实施例提供一种设置 DNS服务器地址的装置, 用于运行 Mac OS X操作 系统的主机中, 如图 5所示, 该装置包括: 连接建立单元 51、 主控处理单元 52和地址设置单元 53;  With the method provided by the embodiment of the present invention, after the IPv6 network connection is established on the Mac OS X operating system, the DNS server address of the host can be automatically configured without manual operation by the user. The embodiment provides a device for setting a DNS server address, which is used in a host running the Mac OS X operating system. As shown in FIG. 5, the device includes: a connection establishing unit 51, a main control processing unit 52, and an address setting unit 53. ;
其中, 连接建立单元 51, 用于与上网终端设备建立 IPv6连接; 主控处理单元 52, 与连接建立单元 51连接, 用于确定主机连接的上网 终端设备建立 IPv6连接后, 通过 ICMPv6命令从上网终端设备获取 IP地址, 并传送至地址设置单元; 以及用于通过查询命令从上网终端设备获取 DNS服 务器地址并传送至地址设置单元; The connection establishing unit 51 is configured to establish an IPv6 connection with the Internet access terminal device. The main control processing unit 52 is connected to the connection establishing unit 51, and is configured to determine that the Internet terminal device connected to the host establishes an IPv6 connection, and then uses the ICMPv6 command to access the Internet access terminal. The device obtains an IP address and transmits it to the address setting unit; and is configured to obtain a DNS service from the online terminal device by using a query command. Server address and transfer to the address setting unit;
地址设置单元 53, 与主控处理单元 52连接, 用于根据主控处理单元从 上网终端设备获取的 IP地址为主机设置该 IP地址; 以及用于根据主控处理 单元从上网终端设备获取的 DNS地址, 调用所述 Mac OS X操作系统的 API , 为主机设置获取的 DNS服务器地址。 本实施例提供一种设置 DNS服务器地址的系统, 如图 6所示, 该系统包 括:  The address setting unit 53 is connected to the main control processing unit 52, configured to set the IP address for the host according to the IP address obtained by the main control processing unit from the online terminal device; and the DNS for obtaining from the online terminal device according to the main control processing unit. Address, call the API of the Mac OS X operating system, and set the obtained DNS server address for the host. This embodiment provides a system for setting a DNS server address. As shown in FIG. 6, the system includes:
运行 Mac OS X操作系统的主机 61和上网终端设备 63, 上网终端设备 63 采用上述实施二给出的设置 DNS服务器地址的装置;  The host computer 61 running the Mac OS X operating system and the Internet terminal device 63, the Internet terminal device 63 adopts the device for setting the DNS server address given in the above second embodiment;
所述主机中设有上述实施例四给出的设置 DNS服务器地址的装置 62, 所 述装置 62与所述上网终端设备 63通信连接, 用于设置所述主机 61的 DNS服务 器地址。 通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到 本发明可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过 硬件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的 技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式 体现出来, 该计算机软件产品存储在可读取的存储介质中, 如计算机的软 盘, 硬盘或光盘等, 包括若干指令用以使得一台计算机设备 (可以是个人 计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述的方法。  The device is provided with a device 62 for setting a DNS server address according to the fourth embodiment, and the device 62 is communicatively connected with the internet terminal device 63 for setting a DNS server address of the host 61. Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并 不局限于此, 任何熟悉本技术领域的技术人员在本发明披露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本 发明的保护范围应该以权利要求书的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope of the present disclosure. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1、 一种设置 DNS服务器地址的方法, 用于为运行 Mac OS X操作系统的 主机设置 DNS服务器地址, 与所述主机已建立 IPv6连接且主机已设置 IP地 址, 其特征在于, 包括: 1. A method of setting a DNS server address for a host running the Mac OS X operating system, with which an IPv6 connection has been established and the host has set an IP address, which is characterized by including:
接收所述主机发送的查询命令, 根据查询命令将 DNS服务器地址返回至 所述主机, 以使所述主机调用所述 Mac OS X操作系统的 API , 为所述主机设 置该 DNS服务器地址。 Receive the query command sent by the host, and return the DNS server address to the host according to the query command, so that the host calls the API of the Mac OS X operating system to set the DNS server address for the host.
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据查询命令将 DNS 服务器地址返回至所述主机为: 通过 USB命令或 HTTP命令从所述上网终端设 备获取 DNS服务器地址。 2. The method according to claim 1, characterized in that, returning the DNS server address to the host according to the query command is: obtaining the DNS server address from the Internet terminal device through a USB command or an HTTP command.
3、根据权利要求 1所述的方法,其特征在于,所述与所述主机建立 IPv6 连接且主机设置 IP地址包括: 3. The method according to claim 1, wherein establishing an IPv6 connection with the host and setting an IP address by the host includes:
根据接收的查询 IP地址的 ICMPv6请求, 利用 ICMPv6对象向所述主机返 回 IP地址, 使主机设置返回的 IP地址。 According to the received ICMPv6 request for querying the IP address, the ICMPv6 object is used to return the IP address to the host, so that the host sets the returned IP address.
4、根据权利要求 3所述的方法,其特征在于,所述返回的 IP地址为 IPv6 地址。 4. The method according to claim 3, characterized in that the returned IP address is an IPv6 address.
5、 一种设置 IPv6 DNS服务器地址的装置, 用于为运行 Mac OS X操作系 统的主机设置 DNS服务器地址, 包括: 用于与运行 Mac OS X操作系统的主机 建立 IPv6连接的连接单元, 其特征在于, 还包括: 5. A device for setting an IPv6 DNS server address, used to set a DNS server address for a host running the Mac OS X operating system, including: a connection unit used to establish an IPv6 connection with the host running the Mac OS X operating system, its characteristics It also includes:
接收单元和主控单元; 其中, receiving unit and main control unit; among them,
所述接收单元, 与所述连接单元连接, 用于接收所述主机发送的查询 命令, 并传送至所述主控单元; The receiving unit is connected to the connection unit and is used to receive the query command sent by the host and transmit it to the main control unit;
所述主控单元, 与所述接收单元连接, 用于根据查询命令将 DNS服务器 地址返回至所述主机, 以使所述主机调用所述 Mac OS X操作系统的 API , 为 所述主机设置该 DNS服务器地址。 The main control unit is connected to the receiving unit and is used to return the DNS server address to the host according to the query command, so that the host calls the API of the Mac OS X operating system and sets the DNS server address.
6、 根据权利要求 5所述的装置, 其特征在于, 所述接收单元还用于接 收所述主机发送的 ICMPv6命令, 并传送至所述主控单元; 所述主控单元还用于根据所述接收单元接收的 ICMPv6命令将 IP地址 返回至所述主机, 以使所述主机设置该 IP地址。 6. The device according to claim 5, wherein the receiving unit is further configured to receive an ICMPv6 command sent by the host and transmit it to the main control unit; The main control unit is also configured to return the IP address to the host according to the ICMPv6 command received by the receiving unit, so that the host sets the IP address.
7、 一种设置 DNS服务器地址的方法, 用于为运行 Mac OS X操作系统的 主机设置 DNS服务器地址, 所述主机与上网终端设备已建立 IPv6连接且所述 主机已设置 IP地址, 其特征在于, 包括: 7. A method of setting a DNS server address for a host running the Mac OS , include:
通过查询命令从所述上网终端设备获取 DNS服务器地址; Obtain the DNS server address from the Internet terminal device through a query command;
调用所述 Mac OS X操作系统的 API , 为所述主机设置获取的 DNS服务器 地址。 Call the API of the Mac OS X operating system to set the obtained DNS server address for the host.
8、 根据权利要求 7所述的方法, 其特征在于, 所述通过查询命令从所 述上网终端设备获取 DNS服务器地址为: 通过 USB命令或 HTTP命令从所述上 网终端设备获取 DNS服务器地址。 8. The method according to claim 7, wherein the obtaining the DNS server address from the Internet access terminal device through a query command is: obtaining the DNS server address from the Internet access terminal device through a USB command or an HTTP command.
9、 根据权利要求 6所述的方法, 其特征在于, 所述主机与上网终端设 备建立 IPv6连接且所述主机设置 IP地址包括: 9. The method according to claim 6, wherein the host establishes an IPv6 connection with the Internet access terminal device and the host sets an IP address including:
通过 ICMPv6命令从上网终端设备获取 IP地址; Obtain the IP address from the Internet terminal device through ICMPv6 commands;
所述主机设置获取的 IP地址。 The IP address obtained by the host settings.
10、 根据权利要求 9所述的方法, 其特征在于, 所述通过 ICMPv6命令从 上网终端设备获取 IP地址包括: 10. The method according to claim 9, characterized in that, obtaining the IP address from the Internet access terminal device through ICMPv6 commands includes:
确定与上网终端设备建立 IPv6连接后, 向所述上网终端设备发送查询 IP地址的 ICMPv6请求; After determining to establish an IPv6 connection with the Internet access terminal device, send an ICMPv6 request to query the IP address to the Internet access terminal device;
接收所述上网终端设备根据所述查询 IP地址的 ICMPv6请求返回的 IP地 址。 Receive the IP address returned by the Internet access terminal device according to the ICMPv6 request for querying the IP address.
11、 根据权利要求 10所述的方法, 其特征在于, 所述获取的 IP地址为 IPv6地址。 11. The method according to claim 10, characterized in that the obtained IP address is an IPv6 address.
12、 一种设置 DNS服务器地址的装置, 用于运行 Mac OS X操作系统的主 机中, 包括: 用于与上网终端设备建立 IPv6连接的连接建立单元, 其特征 在于, 还包括: 12. A device for setting a DNS server address, used in a host running the Mac OS
主控处理单元和地址设置单元; 其中, 所述主控处理单元, 与所述连接建立单元连接, 用于通过查询命令从 所述上网终端设备获取 DNS服务器地址并传送至所述地址设置单元; Main control processing unit and address setting unit; where, The main control processing unit, connected to the connection establishment unit, is used to obtain the DNS server address from the Internet terminal device through a query command and transmit it to the address setting unit;
所述地址设置单元, 与所述主控处理单元连接, 用于根据所述主控处 理单元从上网终端设备获取的 DNS服务器地址, 调用所述 Mac OS X操作系统 的 API , 为所述主机设置获取的 DNS服务器地址。 The address setting unit is connected to the main control processing unit, and is used to call the API of the Mac OS X operating system according to the DNS server address obtained by the main control processing unit from the Internet terminal device, and set the settings for the host Obtained DNS server address.
13、 根据权利要求 12所述的装置, 其特征在于, 所述主控处理单元还 用于确定所述主机与上网终端设备建立 IPv6连接后, 通过 ICMPv6命令从上 网终端设备获取 IP地址, 并传送至所述地址设置单元; 13. The device according to claim 12, wherein the main control processing unit is further configured to determine that after establishing an IPv6 connection between the host and the Internet access terminal device, obtain the IP address from the Internet access terminal device through an ICMPv6 command and transmit it. to the address setting unit;
所述地址设置单元还用于根据所述主控处理单元从上网终端设备获取 的 IP地址为所述主机设置该 IP地址。 The address setting unit is also used to set the IP address for the host according to the IP address obtained by the main control processing unit from the Internet terminal device.
14、 一种设置 DNS服务器地址的系统, 其特征在于, 包括: 14. A system for setting a DNS server address, which is characterized by including:
运行 Mac OS X操作系统的主机和上网终端设备, 上网终端设备采用上 述权利要求 5的设置 DNS服务器地址的装置; A host computer and an Internet access terminal device running the Mac OS X operating system. The Internet access terminal device adopts the device for setting the DNS server address of claim 5;
所述主机中设有权利要求 12或 13所述的装置, 所述装置与所述上网终 端设备通信连接, 用于设置所述主机的 DNS服务器地址。 The host is provided with the device described in claim 12 or 13, the device is communicatively connected to the Internet access terminal device, and is used to set the DNS server address of the host.
PCT/CN2013/078602 2012-07-11 2013-07-01 Method, device and system for setting dns server address WO2014008822A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210239065.2 2012-07-11
CN201210239065.2A CN102761629B (en) 2012-07-11 2012-07-11 The method of dns server address, Apparatus and system are set

Publications (1)

Publication Number Publication Date
WO2014008822A1 true WO2014008822A1 (en) 2014-01-16

Family

ID=47055947

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/078602 WO2014008822A1 (en) 2012-07-11 2013-07-01 Method, device and system for setting dns server address

Country Status (2)

Country Link
CN (1) CN102761629B (en)
WO (1) WO2014008822A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102934991A (en) * 2012-04-08 2013-02-20 湖北圣多帮电子有限责任公司 Multifunctional network tracking monitoring system of vital signs
CN102761629B (en) * 2012-07-11 2016-01-06 华为终端有限公司 The method of dns server address, Apparatus and system are set
CN107979657B (en) * 2017-12-18 2021-06-15 联想(北京)有限公司 DNS address processing method and system for network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009082390A1 (en) * 2007-12-20 2009-07-02 Kevin Avon Foote System and method for redirecting a website upon the occurrence of a disaster or emergency event
CN101931663A (en) * 2010-08-28 2010-12-29 中兴通讯股份有限公司 Method capable of dynamically setting domain name server and wireless communication terminal
US20110131337A1 (en) * 2009-12-02 2011-06-02 Samsung Electronics Co., Ltd. Mobile device and control method thereof
CN102761629A (en) * 2012-07-11 2012-10-31 华为终端有限公司 Method, device and system for setting DNS (Domain Name System) server address

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529852B2 (en) * 2004-05-17 2009-05-05 Cisco Technology, Inc. Method and apparatus for handling IPv4 DNS PTR queries across IPv4 and IPv6 networks
CN1744596B (en) * 2004-09-01 2011-11-16 华为技术有限公司 Method for host obtaining network allocation parameterns in IPV6 network
CN100556029C (en) * 2004-12-20 2009-10-28 上海贝尔阿尔卡特股份有限公司 The DNS update method and the device of main frame in the IPv6 stateless address configuration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009082390A1 (en) * 2007-12-20 2009-07-02 Kevin Avon Foote System and method for redirecting a website upon the occurrence of a disaster or emergency event
US20110131337A1 (en) * 2009-12-02 2011-06-02 Samsung Electronics Co., Ltd. Mobile device and control method thereof
CN101931663A (en) * 2010-08-28 2010-12-29 中兴通讯股份有限公司 Method capable of dynamically setting domain name server and wireless communication terminal
CN102761629A (en) * 2012-07-11 2012-10-31 华为终端有限公司 Method, device and system for setting DNS (Domain Name System) server address

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WU, LING ET AL.: "Automatic configuration and optimization of recursive DNS in HM IPv6", GANSU SCIENCE AND TECHNOLOGY., vol. 21, no. 10, October 2005 (2005-10-01), pages 55 AND 63 - 64 *

Also Published As

Publication number Publication date
CN102761629B (en) 2016-01-06
CN102761629A (en) 2012-10-31

Similar Documents

Publication Publication Date Title
US10116489B2 (en) Apparatus and method for managing network access device
WO2013135000A1 (en) Dual-protocol-stack access method and system
JP5403302B2 (en) Method and apparatus for obtaining network setting information
WO2013178194A2 (en) Data terminal upgrade device and method
JP2014501978A5 (en) Method and system for multi-connection in a file system session
JP2014535228A (en) Port setting method, routing device, and computer program product
WO2013159576A1 (en) Method and terminal for accessing wireless network, wi-fi access network node, and authentication server
WO2016179950A1 (en) Internet protocol ip address allocation method and device
WO2018192179A1 (en) Ip address allocation method and device
KR101898492B1 (en) Electronic device and method for controlling electronic device
WO2013170562A1 (en) Method, device, and system for automatically selecting ipv6 address transmission mode
WO2017088101A1 (en) Network access information acquiring method, and router
WO2015054882A1 (en) Network device communication method and network device
WO2011160587A1 (en) Method and system for connecting a dual-stack terminal to networks
WO2015096344A1 (en) Method and system for app to acquire mac address of terminal
WO2014086167A1 (en) Mobile terminal and address allocation method and system thereof
WO2013167083A2 (en) Method and device for selecting domain name server
WO2014008822A1 (en) Method, device and system for setting dns server address
WO2015117455A1 (en) Network access method, system and terminal device, and computer storage medium
WO2015184853A1 (en) Authentication method and apparatus for ipv6 stateless auto-configuration
WO2013113201A1 (en) Sip server address acquisition method and device
WO2012130048A1 (en) Method and apparatus for initializing gateway in device management system
WO2013185696A2 (en) Data processing method and device
JP2013509837A (en) Method and system for realizing identity and location mapping
WO2006116911A1 (en) Ppp access terminal,access service device and a method of the terminal obtaining the server address of the provider

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: 13816866

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: 13816866

Country of ref document: EP

Kind code of ref document: A1