WO2014008822A1 - Procédé, dispositif et système de réglage d'adresse de serveur dns - Google Patents

Procédé, dispositif et système de réglage d'adresse de serveur dns 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
English (en)
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/fr

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

Dans le domaine des applications informatiques, l'invention porte sur un procédé, un dispositif et un système de réglage d'une adresse de serveur DNS. Le procédé est utilisé pour régler une adresse de serveur DNS pour un hôte qui tourne sur un système d'exploitation Mac OS X, l'hôte ayant établi une connexion IPv6, et une adresse IP ayant été réglée pour l'hôte. Le procédé consiste à : recevoir une instruction d'interrogation envoyée par l'hôte, renvoyer une adresse de serveur DNS à l'hôte conformément à l'instruction d'interrogation, permettre à l'hôte d'appeler une API du système d'exploitation Mac OS X, et régler l'adresse de serveur DNS pour l'hôte. En conséquence, une adresse de serveur DNS peut être automatiquement configurée pour un hôte tournant sur un système d'exploitation Mac OS X sans requérir une opération manuelle d'un utilisateur, ce qui améliore la commodité d'utilisation et l'efficacité de configuration.
PCT/CN2013/078602 2012-07-11 2013-07-01 Procédé, dispositif et système de réglage d'adresse de serveur dns WO2014008822A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210239065.2A CN102761629B (zh) 2012-07-11 2012-07-11 设置dns服务器地址的方法、装置及系统
CN201210239065.2 2012-07-11

Publications (1)

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

Family

ID=47055947

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/078602 WO2014008822A1 (fr) 2012-07-11 2013-07-01 Procédé, dispositif et système de réglage d'adresse de serveur dns

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102934991A (zh) * 2012-04-08 2013-02-20 湖北圣多帮电子有限责任公司 一种多功能生命特征网络跟踪监护系统
CN102761629B (zh) * 2012-07-11 2016-01-06 华为终端有限公司 设置dns服务器地址的方法、装置及系统
CN107979657B (zh) * 2017-12-18 2021-06-15 联想(北京)有限公司 用于网络设备的dns地址处理方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009082390A1 (fr) * 2007-12-20 2009-07-02 Kevin Avon Foote Système et procédé de redirection d'un site web lors de l'occurrence d'une catastrophe ou d'un événement d'urgence
CN101931663A (zh) * 2010-08-28 2010-12-29 中兴通讯股份有限公司 一种可动态设置域名服务器的方法及无线通信终端
US20110131337A1 (en) * 2009-12-02 2011-06-02 Samsung Electronics Co., Ltd. Mobile device and control method thereof
CN102761629A (zh) * 2012-07-11 2012-10-31 华为终端有限公司 设置dns服务器地址的方法、装置及系统

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 (zh) * 2004-09-01 2011-11-16 华为技术有限公司 IPv6网络中主机获取网络配置参数的方法
CN100556029C (zh) * 2004-12-20 2009-10-28 上海贝尔阿尔卡特股份有限公司 IPv6无状态地址配置中主机的DNS更新方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009082390A1 (fr) * 2007-12-20 2009-07-02 Kevin Avon Foote Système et procédé de redirection d'un site web lors de l'occurrence d'une catastrophe ou d'un événement d'urgence
US20110131337A1 (en) * 2009-12-02 2011-06-02 Samsung Electronics Co., Ltd. Mobile device and control method thereof
CN101931663A (zh) * 2010-08-28 2010-12-29 中兴通讯股份有限公司 一种可动态设置域名服务器的方法及无线通信终端
CN102761629A (zh) * 2012-07-11 2012-10-31 华为终端有限公司 设置dns服务器地址的方法、装置及系统

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
CN102761629A (zh) 2012-10-31
CN102761629B (zh) 2016-01-06

Similar Documents

Publication Publication Date Title
US10116489B2 (en) Apparatus and method for managing network access device
WO2013135000A1 (fr) Procédé et système d'accès à deux piles de protocoles
JP5403302B2 (ja) ネットワーク設定情報取得のための方法、及び装置
WO2013178194A2 (fr) Dispositif et procédé de mise à niveau d'un terminal de données
JP2014501978A5 (ja) ファイルシステムセッションにおけるマルチコネクションのための方法及びシステム
JP2014535228A (ja) ポート設定方法、ルーティングデバイス、およびコンピュータプログラム製品
WO2013159576A1 (fr) Procédé et terminal permettant d'accéder à un réseau sans fil, nœud de réseau d'accès wi-fi, et serveur d'authentification
WO2016179950A1 (fr) Procédé et dispositif d'allocation d'adresse de protocole internet (ip)
WO2011160587A1 (fr) Procédé et système de connexion d'un terminal à double pile à des réseaux
WO2018192179A1 (fr) Procédé et dispositif d'attribution d'adresse ip
KR101898492B1 (ko) 전자 장치 및 전자 장치의 제어 방법
WO2013170562A1 (fr) Procédé, dispositif et système pour sélectionner automatiquement un mode de transmission d'adresse ipv6
WO2017088101A1 (fr) Procédé d'acquisition d'informations d'accès au réseau, et routeur
WO2015054882A1 (fr) Procédé de communication de dispositif réseau et dispositif réseau
WO2015096344A1 (fr) Procédé et système pour qu'une application acquière une adresse de contrôle d'accès au support (mac) d'un terminal
WO2014086167A1 (fr) Terminal mobile et son procédé et son système d'attribution d'adresse
WO2013167083A2 (fr) Procédé et dispositif de sélection d'un serveur de nom de domaine
WO2014008822A1 (fr) Procédé, dispositif et système de réglage d'adresse de serveur dns
WO2015117455A1 (fr) Procédé, système et dispositif terminal d'accès au réseau, et support d'informations
WO2015184853A1 (fr) Procédé et appareil d'authentification pour auto-configuration ipv6 sans état
WO2013113201A1 (fr) Procédé et dispositif d'acquisition de l'adresse d'un serveur sip
WO2012130048A1 (fr) Procédé et appareil pour initialiser une passerelle dans un système de gestion de dispositifs
WO2013185696A2 (fr) Procédé et dispositif de traitement de données
JP2013509837A (ja) アイデンティティ及びロケーションマッピングの実現方法及びシステム
WO2006116911A1 (fr) Terminal d’acces ppp, dispositif de service d’acces et procede du terminal obtenant l’adresse de serveur du fournisseur

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