CN101931663B - Method capable of dynamically setting domain name server and wireless communication terminal - Google Patents

Method capable of dynamically setting domain name server and wireless communication terminal Download PDF

Info

Publication number
CN101931663B
CN101931663B CN 201010271051 CN201010271051A CN101931663B CN 101931663 B CN101931663 B CN 101931663B CN 201010271051 CN201010271051 CN 201010271051 CN 201010271051 A CN201010271051 A CN 201010271051A CN 101931663 B CN101931663 B CN 101931663B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
dns
information
address
network
wireless communication
Prior art date
Application number
CN 201010271051
Other languages
Chinese (zh)
Other versions
CN101931663A (en )
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
Grant date

Links

Abstract

本发明提供一种可动态设置域名服务器的方法及无线通信装置,当无线通信终端上电时,初始化主DNS缓存变量、辅DNS缓存变量和设置状态变量;当发起拨号连接过程时,检测拨号连接的参数信息,如果在拨号参数信息中包含有主DNS地址和辅DNS地址,则记录DNS地址并置设置状态变量;检测设置状态变量,如果状态变量置位,则在无线通信终端与用户设备进行DHCP或IPCP协商过程时,将缓存的主DNS地址和辅DNS地址返回给用户设备;如果设置状态变量没有置位,则将网络分配的DNS地址返回给用户设备。 The present invention provides a dynamic domain name server provided a method and a wireless communication apparatus, when the wireless communication terminal is powered on, initialized variables primary DNS cache, the DNS cache variables and auxiliary variables set state; dial-up connection process is initiated when the detected dial-up connection parameter information, if contained in the dialing parameter information main DNS address and secondary DNS addresses, record the DNS address juxtaposed set of state variables; detection setting state variables, if the status variable is set, in the wireless communication terminal with a user equipment a DHCP or IPCP negotiation process, the buffered address of the primary DNS and a secondary DNS address to the user equipment; if the set of state variables is not set, then the assigned network address to the DNS user equipment. 与现有技术相比较,使用户在通过无线数据卡进行数据业务时,可以通过接口设置指定的DNS地址。 Compared with the prior art, so that when the user data traffic through the wireless data card, the interface can be specified by setting the DNS address.

Description

一种可动态设置域名服务器的方法及无线通信终端 A dynamic domain name server provided a method and a radio communication terminal

技术领域 FIELD

[0001] 本发明涉及通信技术领域,尤其涉及一种可动态设置域名服务器的方法及移动通信终端。 [0001] The present invention relates to communications technologies, and in particular relates to a dynamic domain name server provided a method and a mobile communication terminal.

背景技术 Background technique

[0002] 随着移动无线通信技术在全球的广泛应用和逐步普及,无线通信终端产品(手机、各种接口的数据卡、上网本、内置通信模块、路由器等)也从高科技代名词而逐步过渡为普通大众的生活用品(甚或必备品)。 [0002] With the widespread use of mobile wireless communication technology in the world and gradually spread, wireless communication terminals (mobile phones, various interface data cards, netbooks, built-in communication modules, routers, etc.) is also synonymous with gradual transition from high-tech to the general public for daily use (or even essential goods). 市场上各厂家的竞争也日趋激烈,如何更好的增加产品的功能,提高产品的性能,不断满足用户的需求,使终端产品具有更好的用户体验,成为各大厂商关注的热点问题。 The manufacturers of the increasingly fierce competition in the market, how to better increase the product's features, improve product performance, continue to meet the needs of users, so that the end product has a better user experience, the major manufacturers has become a hot issue of concern.

[0003] 现有的无线通信终端产品,在进行数据业务前首先需要发起拨号过程,建立与网络的数据连接。 [0003] Existing wireless communication terminals, first before performing data traffic needs to initiate a dialing process, establishing a connection with a data network. 在拨号连接成功建立后,由核心网指定DNS服务器地址,用户使用该DNS地址进行域名解析。 After the dial-up connection is successfully established, specify the DNS server address from the core network, the user uses the DNS address domain name resolution. 这种由网络统一分配DNS地址的方式,当在同一时刻有大量的DNS服务需求时,网络指定的DNS服务器会发生阻塞,从而延缓用户浏览网页的速度;在更极端的情况下,如果网络指定的DNS服务器出现故障,不能提供域名解析服务,则将直接导致用户无法正常浏览网页。 This DNS address assigned by the network in a unified manner, when at the same time a large number of DNS service needs, specify the network DNS server will block occurs, thus delaying the user browsing the web speed; in more extreme cases, if the network is specified the DNS server fails, can not provide domain name resolution services, will be a direct result of normal users can not browse the web. 同时,在实际的应用中,用户也希望可以使用指定的DNS服务器进行域名解析,而不是单一的使用网络分配的DNS地址。 Meanwhile, in the actual application, the user may also want to use the specified DNS server for domain name resolution, rather than a single network using the assigned DNS address. 所以如果能提供一种途径,让用户可以灵活的选用DNS地址,则可以解决网络统一分配DNS地址存在的问题,同时满足用户的需求,提升用户体验。 So if we can provide a way to allow users the flexibility to choose DNS address, you can solve the problems of unified distribution network DNS address problems, while meeting the needs of users, enhance the user experience.

[0004] 无线通信终端设备在拨号前,需要通过UI从PC侧设置拨号连接的参数,例如,APN,电话号码等。 [0004] The wireless communication terminal apparatus before dialing, the parameters need to connect UI setting dial from the PC side, e.g., APN, telephone number. 可以在PC侧的Π界面提供设置DNS地址的接口,但Π在调用PC侧的API设置移动终端拨号连接的DNS地址时,会遇到操作权限的问题,对于没有管理员权限的用户,在PC侧进行设置DNS地址的操作时,会被PC侧的安全管理策略拒绝掉,从而在PC侧Π设置DNS地址的方法不可行。 It can set the DNS address provided in Π interface PC interface side, but when you call Π PC side API set the DNS address of the mobile terminal dial-up connection, have problems operating privileges for users without administrator privileges, the PC when side DNS address setting operation will be rejected out of security management strategy PC side, so that Π is not a workable set the DNS address on the PC side. 同时,在最新的操作系统中,如WIN 7操作系统,对无线通信终端设备参数的设置采用OID的方式,而在OID的方式中没有设置DNS的指令,所以在这些系统上必须得开发出能设置DNS的功能。 Meanwhile, the latest operating system, such as WIN 7 operating system, settings for the wireless communication terminal device parameters using the OID manner, without providing the DNS command OID manner, so have to develop energy in these systems set DNS.

发明内容 SUMMARY

[0005] 本发明的目的是为解决上述问题,而提出的一种可动态设置域名服务器的方法及移动通信终端。 [0005] The object of the present invention is to solve the above problems, proposed a domain name server may be dynamically provided a method and a mobile communication terminal.

[0006] 为实现上述目的,本发明提供一种可动态设置域名服务器的方法,当无线通信终端上电时,初始化主域名服务器(DNS)缓存变量、辅DNS缓存变量和设置状态变量;当发起拨号连接过程时,检测拨号连接的参数信息,如果在拨号参数信息中包含有主DNS地址和辅DNS地址,则记录DNS地址并置设置状态变量;在网络与无线数据卡建立了分组数据协议(PDP)数据连接,返回网络分配给终端的信息时,检测设置状态变量,如果状态变量置位,则在无线通信终端与用户设备进行动态主机设置协议(DHCP)或互联协议控制协议(IPCP)协商过程时,将缓存的主DNS地址和辅DNS地址返回给用户设备;如果设置状态变量没有置位,则将网络分配的DNS地址返回给用户设备。 [0006] To achieve the above object, the present invention provides a dynamic domain name server provided a method, when the wireless communication terminal is powered on, initialized primary domain name server (DNS) cache variables, auxiliary variables and settings DNS cache state variable; When initiated dial-up connection procedure, the parameter information detected dial-up connection, if included in the dialing parameter message contains the primary DNS address and secondary DNS addresses, record the DNS address juxtaposed set of state variables; in a network with the wireless data card to establish a packet data protocol ( when PDP) data connection, returns the network information assigned to the terminal detects setting state variables, if the state variable is set, the dynamic host configuration protocol (DHCP) in a wireless communication terminal with a user equipment or Internet protocol control protocol (IPCP) negotiation when the procedure, the primary cache and secondary DNS addresses DNS address to the user equipment; if the set of state variables is not set, then the assigned network address to the DNS user equipment.

[0007] 进一步地,所述主DNS缓存变量、辅DNS缓存变量记录用户最终希望得到的两个DNS服务器的地址。 [0007] Further, the variable primary DNS cache, the DNS cache auxiliary variables recorded address two DNS servers obtained final desired user.

[0008] 进一步地,在用户需要域名服务时,先将解析请求发往主DNS地址指向的服务器,如果主DNS服务器没有响应,则将解析请求发往辅DNS服务器;设置状态变量记录用户是否需要设置DNS地址,根据状态变量的值决定最终反馈给用户的DNS地址。 [0008] Further, when the user needs the service domain, the first request to the server parses the primary DNS address pointed to, if the primary DNS server does not respond, the request will be sent to the secondary DNS servers resolve; recording whether the user needs to set the state variable set DNS address, feedback to the user to determine the final address of the DNS based on the value of the state variable.

[0009] 进一步地,所述拨号连接发起过程是指拨号开始时,在用户设备和无线通信终端之间的数据链路连接,用户设备将本次拨号的参数信息发送至无线通信终端;设置的DNS地址信息通过这条数据链路发送至无线通信终端,在与网络侧的PDP连接建立完成后,最终确认的DNS地址通过这条数据链路发送至用户设备。 [0009] Further, the dial-up connection initiation procedure begins dialing means, a data link between the user equipment and the wireless communication terminal is connected, the user equipment transmits the parameter information of the current dial to the wireless communication terminal; provided DNS address information is transmitted to the wireless communication terminal via this data link, a connection with the network side establishing PDP is completed, a final acknowledgment DNS addresses to which the user equipment through data links.

[0010] 进一步地,所述PDP数据连接是指无线通信终端收到用户设备发来的参数信息后,与移动通信网络之间建立的一条分组数据传输链路。 [0010] Further, the PDP packet data connection refers to a data transmission link after the wireless communication device sent by the user terminal receives parameter information, between the mobile communication network established.

[0011] 进一步地,无线通信终端将PDP连接的参数信息发往网络侧进行协商,网络侧在对参数信息确认后,以PDP激活消息发给无线通信终端。 [0011] Further, the wireless communication terminal hair PDP connection parameter information to the network side negotiation, the network side after confirmation of parameter information, in order to activate the PDP message to the wireless communication terminal. 在PDP信息协商时,无线通信终端会将用户设备发来的DNS地址信息发往网络侧,网络侧直接返回网络侧默认的DNS地址。 When the PDP information negotiation, the radio communication terminal device sent by the user will be the DNS address information is sent to the network side, the network side returns the network address of the default DNS directly.

[0012] 进一步地,所述DHCP或IPCP协商过程是指无线通信终端在与网络建立了无线连接链路时,将从网络获取的参数信息返回给用户设备。 [0012] Further, the DHCP or IPCP negotiation process refers to a wireless communication terminal and the network link is established a wireless connection, parameters obtained from the network information back to the user equipment.

[0013] 另外,本发明还提出一种可动态设置域名服务器的无线通信终端,所述无线通信终端包括设置域名服务器(DNS)应用程序编程接口(API)模块、DNS信息处理模块、网络DNS信息交互模块和DNS信息返回模块; [0013] Further, the present invention also provides a domain name server may be dynamically provided a wireless communication terminal, the wireless communication terminal includes a Domain Name Server (DNS) application programming interface (API) module, a processing module DNS information, the DNS information network DNS information interaction module and a return module;

[0014] 所述设置DNS API接口模块用于使PC机调用该接口设置DNS地址信息; [0014] The DNS API interface module is provided for a PC calling the DNS address interface setting information;

[0015] 所述DNS信息处理模块用于接受PC设置的DNS信息,初始化DNS信息设置状态; [0015] The DNS information processing module for receiving information of the PC DNS settings, DNS settings initialization state;

[0016] 所述网络DNS信息交互模块接受拨号的DNS信息,并与网络交互DNS信息参数; [0016] The DNS network DNS information interaction module receiving dialing information, the DNS information and interact with the network parameters;

[0017] 所述DNS信息返回模块接受网络侧返回的DNS地址信息,并根据DNS信息处理模块设定的机制,决定最终返回给PC机的DNS地址信息。 [0017] The DNS address information returning module receiving DNS information returned by the network, according to the mechanism set DNS information processing module, the final decision to the DNS returns the address information of the PC.

[0018] 进一步地,所述DNS信息处理模块还用于判断对用户DNS信息的设置流程。 [0018] Further, the DNS processing module is further configured to determine the information provided to the user process DNS information.

[0019] 进一步地,所述网络DNS信息交互模块还用于在拨号开始时将DNS信息发往网络侧,在PDP激活后解析DNS地址信息。 [0019] Further, the network DNS information interaction module is further configured to start the dialing information sent to the network side DNS, resolves the DNS address information in the PDP activation.

[0020] 本发明的有益效果是:与现有技术相比较,本发明通过分析无线通信终端在拨号连接建立时的流程,给用户提供了一种动态设置DNS地址的方法,使用户在通过无线数据卡进行数据业务时,可以通过接口设置指定的DNS地址,从而可以使用特定的DNS服务器进行域名解析。 [0020] Advantageous effects of the present invention are: compared with the prior art, the process of the present invention when the dial-up connection is established, the user is provided a method for dynamic DNS address provided by the wireless communication terminal analyzes the user over the wireless data card for data service can be provided through the interface address specified by DNS, which can use a specific DNS server for name resolution.

附图说明 BRIEF DESCRIPTION

[0021]图1为本发明实施例无线数据卡接口连接模型; [0021] The embodiment of Figure 1 connected to the wireless data card interface model embodiment of the present invention;

[0022] 图2为本发明实施例无线数据卡拨号连接建立流程; [0022] Figure 2 a wireless data card dial-up connection establishment process embodiment of the present invention;

[0023] 图3为本发明实施例无线数据卡DNS信息发送流程; [0023] Figure 3 a wireless data card DNS information transmission process embodiment of the present invention;

[0024] 图4为本发明实施例无线数据卡设置DNS处理模块图;[0025] 图5为本发明实施例无线数据卡动态设置DNS地址流程图。 [0024] FIG. 4 embodiment the wireless data card is provided in FIG DNS processing module of the present invention; [0025] FIG. 5 embodiment of the wireless data card is a flowchart of a dynamic DNS address setting of the present invention.

具体实施方式 detailed description

[0026] 本发明公开了一种无线通信终端在建立拨号连接时,可以动态设置DNS地址的方法及所述无线通信终端。 [0026] The present invention discloses a wireless communication terminal when the dial-up connection may be dynamically provided address DNS method and the radio communication terminal.

[0027] 所述动态设置DNS地址的方法主要包括:当无线通信终端上电时,初始化主DNS缓存变量、辅DNS缓存变量和设置状态变量。 The [0027] Dynamic DNS address setting method comprises: when the wireless communication terminal is powered on, initialized variables primary DNS cache, the DNS cache variables and auxiliary variables set state. 当发起拨号连接过程时,检测拨号连接的参数信息,如果在拨号参数信息中包含有主DNS地址和辅DNS地址,则说明需要动态设置DNS地址,记录DNS地址并置设置状态变量。 When the dial-up connection process is initiated, the parameter information detected dial-up connection, if the parameter information included in the main dialing DNS address and secondary DNS addresses, you need to set the dynamic DNS address, DNS address record state variables and configuration settings. 在网络与无线数据卡建立了PDP(分组数据协议,Packet Data Protocol)数据连接,返回网络分配给终端的信息时,检测设置状态变量,如果状态变量置位,则在移动终端与用户设备进行动态主机设置协议(Dynamic HostConfiguration Protocol, DHCP)或互联协议控制协议(InterfforkingProtocolControl Protocol, IPCP)协商过程时,将缓存的主DNS地址和辅DNS地址返回给用户设备;如果设置状态变量没有置位,则不做任何修改,将网络分配的DNS地址返回给用户设备。 In a network with the wireless data card to establish a PDP (Packet Data Protocol, Packet Data Protocol) data connection, returns the network information assigned to the terminal detects setting state variables, if the state variable is set, then the dynamic mobile terminal and the user equipment host Configuration protocol (Dynamic HostConfiguration protocol, DHCP), or Internet protocol control protocol (InterfforkingProtocolControl protocol, IPCP) negotiation process, the buffered address of the primary DNS and a secondary DNS address to the user equipment; if the set of state variables is not set, no make any changes, the network-assigned DNS address back to the user equipment.

[0028] 所述主DNS缓存变量、辅DNS缓存变量,是指两个变量,记录用户最终希望得到的两个DNS服务器的地址。 [0028] The main variables DNS cache, the DNS cache auxiliary variable, refers to two variables, two recording address of the DNS server the user ultimately desirable. 在用户需要域名解析服务时,先将解析请求发往主DNS地址指向的服务器,如果主DNS服务器没有响应,则将解析请求发往辅DNS服务器。 When the user needs to resolve the domain name service, the first resolution request to the server main DNS address pointed to, if the primary DNS server does not respond, then the resolution request sent to the secondary DNS server. 设置状态变量记录用户是否需要设置DNS地址,根据状态变量的值决定最终反馈给用户的DNS地址。 Set the state variable record whether a user needs to set the DNS address, feedback to the user to determine the final address of the DNS based on the value of the state variable.

[0029] 所述拨号连接发起过程是指拨号开始时,在用户设备和无线通信终端之间的数据链路连接,用户设备将本次拨号的参数信息发送至无线通信终端,例如:APN、拨号号码、鉴权方式等。 [0029] The dial-up connection initiation procedure begins dialing means, a data link between the user equipment and the wireless communication terminal is connected, the user equipment transmits the parameter information of the current dial to the wireless communication terminal, for example: APN, Dial number, authentication methods. 设置的DNS地址信息通过这条数据链路发送至无线通信终端,在与网络侧的rop连接建立完成后,最终确认的DNS地址也通过这条数据链路发送至用户设备。 DNS address settings is transmitted to the wireless communication terminal via this data link, a connection with the network side rop setup complete, final confirmation DNS address is also transmitted to the user equipment through which data links.

[0030] 所述PDP数据连接,是指无线通信终端收到用户设备发来的参数信息后,与移动通信网络之间建立的一条分组数据传输链路。 [0030] The PDP data connection, refers to the radio communication terminal device sent by the user receives the parameter information, established between the mobile communication network and a packet data transmission link. 无线通信终端将PDP连接的参数信息发往网络侧进行协商,网络侧在对参数信息确认后,以PDP激活消息发给无线通信终端。 The wireless communication terminal connected to the PDP parameter information sent to the network negotiate side, the network side after confirmation of parameter information, in order to activate the PDP message to the wireless communication terminal. 在PDP信息协商时,无线通信终端会将用户设备发来的DNS地址信息发往网络侧,但网络测一般不会参考用户的DNS地址,而直接返回网络侧默认的DNS地址。 When the PDP information negotiation, the radio communication terminal device sent by the user will be the DNS address information is sent to the network side, the network does not generally measured with reference to a user's DNS address, the network side returns directly to the default DNS address.

[0031] 所述DHCP或IPCP协商过程,是指无线通信终端在与网络建立了无线连接链路时,将从网络获取的参数信息返回给用户设备,例如:网络为无线通信终端分配的IP地址,DNS地址等。 [0031] The DHCP or IPCP negotiation process, refers to a wireless communication terminal when wireless connection is established with the network link from the network to return the acquired parameter information to a user equipment, for example: network-assigned IP address of the wireless communication terminal , DNS address. DHCP过程是在NDIS拨号方式时采用,而IPCP过程是在RAS拨号方式中的TOP-1P方式米用。 DHCP procedure is employed when the NDIS dialing while IPCP process TOP-1P RAS dial-up manner by the meter.

[0032] 下面结合附图和实施例对本发明的技术方案作进一步详细的说明。 Technical drawings and embodiments of the present invention will be further described in detail [0032] below in conjunction. 本发明技术方案一般采用TE+MT的应用模型,其中终端设备(Terminal Equipment, TE) 一般为PC或笔记本电脑,移动终端(Mobile Terminal, MT) 一般为数据卡或手机。 Technical Solution The present invention is generally used in the application model TE + MT, wherein the terminal (Terminal Equipment, TE) is generally a PC or laptop, a mobile terminal (Mobile Terminal, MT) is a data card or a mobile phone generally. 在下述实施例中,所述无线通信终端以无线数据卡为例说明。 In the following examples, the wireless communication terminal to a wireless data card as an example.

[0033] 如图1所示,为本实施例无线数据卡接口连接模型。 [0033] As shown in FIG. 1, for example, the wireless data card interface model of the present embodiment. 数据卡作为一种移动终端,处于终端设备和核心网络之间,在使用无线网络时,先要建立终端设备到数据卡的RM接口的连接,然后再建立数据卡到核心网络的连接。 As a mobile data card terminal, between the terminal equipment and the core network, when using a wireless network, the terminal device must first establish a connection to the RM interface of the data card, the data card and then establishing a connection to the core network. 本方法就在该拨号模型上展开。 This method had begun on the dial model. [0034] 如图2所示,为本实施例无线数据卡拨号连接建立流程。 [0034] As shown in FIG 2, for example, the wireless data card dial-up connection establishment procedure of the present embodiment. 如图2所示,在终端设备需要使用无线网络时,先发起拨号过程的拨号指令到无线数据卡,无线数据卡在收到拨号指令后,对拨号的参数信息进行判断,如果可以拨号,则返回开始拨号的响应。 2, when the terminal device needs to use the wireless network, the dialing command to initiate the dialing process to the wireless data card, the wireless data card after receiving the dialing instruction dial parameter information to judge, if the dial can then returns a response start dialing.

[0035] 然后,TE向无线数据卡发送RM 口的链路配置参数信息,在RAS拨号方式中是LCP链路信息,在NDIS拨号方式中是QMI信令信息。 [0035] Then, the TE RM sent to the wireless data card port configuration parameters link information is link information in the LCP RAS dial-up, the signaling information is QMI NDIS dialing mode. 无线数据卡收到链路配置信息,如传输块大小、鉴权方式,协议压缩域等等,设置的DNS信息也包含在这个过程中,在对参数信息判断完成后,无线数据卡对参数配置请求进行应答,完成RM 口链路的建立。 Receives wireless data link card configuration information, such as transport block size, authentication manner, the protocol field compression, etc., provided the DNS information is also included in this process, after completion of determination of the parameter information, the parameters of the wireless data card requests are taken to complete the establishment of RM port link.

[0036] RM 口的连接建立后,TE向无线数据卡发送网络参数信息协商请求,包括IP地址、DNS地址,PDP地址、NBNS地址等等。 After the connection is established [0036] RM mouth, the TE transmits network parameter negotiation request message, including IP address, DNS address, the PDP address, the NBNS address to the wireless data card and the like. 无线数据卡收到请求后,即开始UM 口链路建立过程,向GGSN发送Activate PDP Context Request (激活PDP上下文请求),建立PDP上下文的RAB,GGSN对TE的请求通过后,会返回PDP上下文激活接受应答,在应答消息中包含有网络分配给TE的IP地址、DNS地址等等,完成UM 口的建立。 The wireless data card after receiving the request, starts UM interface link establishment procedure, transmission Activate PDP Context Request (Activate PDP Context Request) to the GGSN, an RAB establishing a PDP context, the GGSN requests for TE through, returns a PDP context activation the reply, included in the reply message has assigned to the TE network's IP address, DNS addresses, etc., to complete the establishment of UM mouth.

[0037] 无线数据卡在收到网络分配的参数信息后,即将这些信息以网络参数信息应答的消息返回给TE,完成一次拨号建立的过程。 [0037] The wireless data card after receiving information network parameter assignment, the message is about this information in a network parameter information response is returned to the TE, complete the process of establishing a dial.

[0038] 如图3所示,为本实施例无线数据卡DNS信息发送流程图。 [0038] FIG. 3, the present embodiment the wireless data card is a flowchart of information transmission DNS embodiment.

[0039] 在每次拨号之初,由用户通过提供的接口,下发需要的DNS地址信息,在用户开始拨号时,这些信息随拨号指令下发到数据卡,数据卡对这些DNS地址信息做处理之后,将PDP激活请求发送至网络侧。 [0039] At the beginning of each dial, by the user interface provided by, issued DNS address information needed when the user starts dialing, dialing instruction information with the data sent to the card, the data card do these DNS address information after treatment, the PDP activation request sent to the network side.

[0040] 网络对用户的PDP激活请求信息进行判断,如果合法,则给用户分配请求的网络资源,并按自己的策略分配DNS服务器地址信息,以PDP激活接受的信息发送至数据卡。 [0040] Network PDP activation request information on the user's judgment, if valid, the user's network resource allocation request, according to its own policy assigned DNS server address information, information is sent to the PDP activation accept data card.

[0041] 无线数据卡收到网络发回的PDP激活接受信息后,从中获取DNS信息,如果不是用户希望的DNS地址信息,则以用户请求的DNS地址替换网络分配的DNS地址信息,并将这个DNS地址信息组成连接成功的响应消息,返回给用户PC机。 [0041] The wireless data card receives the network sends back a PDP activation after receiving information, derive DNS information, if not desired by the user information DNS address, DNS address information of the replacement places allocated by the network DNS address requested by the user, and this DNS address information composed of a successful connection response message returned to the user's PC.

[0042] 用户PC机获取数据卡发回的拨号响应消息,从中获取DNS地址信息,作为本次拨号连接的DNS地址,之后浏览网页时,与这个域名服务器交互,进行域名解析服务。 [0042] to obtain the user's PC card data sent back by dialing response message, DNS address from which to obtain information, as the DNS address for this dial-up connection, then when browsing the web, interact with the domain name server, domain name resolution services.

[0043] 如图4所示,为本实施例无线数据卡设置DNS处理所包括的模块图。 [0043] As shown in FIG 4, for example, a block diagram of the wireless data card is provided comprising a DNS processing of the present embodiment.

[0044]所述数据卡包括设置 DNS API (Application Programming Interface,应用程序编程接口)接口模块、DNS信息处理模块、网络DNS信息交互模块和DNS信息返回模块。 [0044] The data card includes a DNS API (Application Programming Interface, Application Programming Interface) interface module, the processing module DNS information, the DNS information network DNS information interaction module and return module.

[0045] 设置DNS API接口模块:该模块提供设置DNS地址的接口,用于使PC机调用该接口设置DNS地址信息。 [0045] Set DNS API interface module: This module provides an interface DNS address setting, the PC for invoking the interface setting information of the DNS address.

[0046] DNS信息处理模块:该模块用于接受PC设置的DNS信息,初始化DNS信息设置状态,判断对用户DNS信息的设置流程。 [0046] DNS information processing module: This module is provided for receiving the DNS information of the PC, the initialization DNS information set state, the process determines whether the setting of the user's DNS information.

[0047] 网络DNS信息交互模块:该模块接受本次拨号的DNS信息,并与网络交互DNS信息参数,在拨号开始时将DNS信息发往网络侧,在PDP激活后解析DNS地址信息。 [0047] Network DNS information interaction module: This module accepts this dial DNS information, the DNS information and interact with the network parameters, start when dialing information is sent to the network side DNS, resolves the DNS address information in the PDP activation.

[0048] DNS信息返回模块:该模块接受网络侧返回的DNS地址信息,并根据DNS信息处理模块设定的机制,决定最终返回给PC机的DNS地址信息。 [0048] DNS information returning module: This module accepts DNS address information returned by the network, according to the mechanism set DNS information processing module, the final decision to the DNS returns the address information of the PC.

[0049] 如图5所示,为本实施例无线数据卡动态设置DNS地址流程图,其包括如下步骤: [0049] As shown in FIG 5, for example, the wireless data card is provided a dynamic DNS address flow chart of embodiment, comprising the steps of:

[0050] 步骤501,在无线数据卡上电时,初始化主DNS和辅DNS缓存地址为0,初始化状态 [0050] Step 501, the wireless data card on power-up, initialization of the primary DNS and a secondary DNS cache address is 0, the initialization state

变量为空值;[0051 ] 步骤502,设置主DNS地址和辅DNS地址信息; Variable is null; [0051] Step 502, set the primary and secondary DNS addresses DNS address information;

[0052] 在拨号连接建立前,通过提供的接口设置DNS地址信息,本发明共提供了两种接口:AT命令、QMI指令。 [0052] The connection is established before dialing, the interface provided by the DNS address information, the present invention provides a total of two interfaces: AT command, the QMI instruction. 无线数据卡保存TE设置的主DNS地址和辅DNS地址,并将设置状态位置位。 The wireless data card stored primary and secondary DNS addresses provided DNS address TE, and status bit is set. 在NDIS拨号中可以通过两种方式设置,在两种方式同时设置时,以拨号开始前的最后一个设置的为准。 It can be provided in two ways NDIS dialing, when the two modes simultaneously provided to a subject disposed before the last start dialing.

[0053] 步骤503,从链路协商信息中获取DNS地址信息; [0053] Step 503, acquires address information from the DNS information, the link negotiation;

[0054] 在NDIS拨号方式中,TE设置的DNS地址在链路协商信息中下发到无线数据卡,所以在NDIS拨号方式中,需要从QMI信令中获取设置的主DNS和辅DNS信息。 [0054] In the dial mode NDIS, DNS address negotiation TE provided in the link information issued to a wireless data card, so NDIS dialing, the need to obtain the primary DNS and a secondary DNS information provided from the QMI signaling.

[0055] 步骤504,PDP上下文激活流程; [0055] Step 504, PDP context activation procedure;

[0056] 无线数据卡将TE下发的参数信息,组成PDP激活请求消息后发往网络侧,这条消息中包含有DNS信息,但网络侧一般不会采用消息中的DNS地址,而将默认的DNS地址通过PDP激活接受消息返回到无线数据卡。 [0056] The wireless data card issued TE parameter information, sent to a network consisting of a PDP activation side, this message includes the DNS information request message, the network side but not generally use the DNS address in the message, and the default DNS address by a PDP activation accept message is returned to the wireless data card.

[0057] 步骤505,判断状态变量是否置位; [0057] Step 505, it is determined whether or not the state variable is set;

[0058] 无线数据卡在PDP激活后,判断设置DNS的状态位,如果状态位已置位,则转入步骤506,需要动态设置DNS地址信息,用缓存的主DNS地址和辅DNS地址替换网络分配的DNS地址;如果状态位没有置位,则转入步骤507,不做设置,返回网络分配的DNS地址。 [0058] After the wireless data card in the PDP activation, the DNS status bit is determined, if the status bit is set, the process proceeds to step 506, DNS address information needed to dynamically set, replace the network address with the primary and secondary DNS addresses DNS cache DNS address assignment; If the status bit is not set, the process proceeds to step 507, is not set, returns the DNS address assigned by the network.

[0059] 步骤506,用缓存的DNS地址替换PDP激活消息中分配的DNS地址,并将主DNS缓存、辅DNS缓存、设置状态位清零,使本次的设置不会影响下一次的拨号信息。 [0059] Step 506, the replacement PDP activation message DNS address allocated by the DNS address cache, the DNS cache and the primary, secondary DNS cache, setting status bit is cleared, so that this setting does not affect the next dialing information .

[0060] 步骤507,网络参数信息应答; [0060] Step 507, the network parameter information response;

[0061] 无线网卡将网络分配的参数信息返回给TE,参数信息包括IP地址,DNS地址,NBNS地址。 [0061] The wireless LAN network allocation parameter information back to the TE, the parameter information includes an IP address, DNS address, NBNS address. 在RAS拨号方式中,是通过IPCP配置应答消息返回给TE ;而在NDIS拨号方式中则是通过DHCP过程,将网络参数信息返回给TE。 In the RAS dial-up is through IPCP configuration acknowledgment message back to the TE; NDIS in dialing mode by the DHCP process, the network parameter information back to the TE. 在网络参数信息中包含的DNS地址信息,即是TE设置的DNS地址,至此完成DNS地址的动态设置。 DNS address information contained in the network parameter information, i.e., DNS address TE is set, thereby completing the dynamic DNS address provided.

[0062] 通过上述技术方案,就可以实现用户根据自己的需要,自行设置DNS服务器地址的功能,使得无线通信终端更具有可操作性,同时具备如下特点: [0062] Through the above technical solution, a user can be realized according to their needs, the DNS server function to set their own address, so that the wireless communication terminal more operational, also have the following characteristics:

[0063] 用户静态的设置和网络动态的分配相结合,如果用户需要使用特定的DNS地址,则可以使用本功能进行设置;如果用户不需要指定DNS地址,则不用做任何额外的操作,而直接由网络分配默认的DNS地址,不会为用户增加不便。 [0063] to dynamically allocate the user static network is provided and combined, if the user needs to use a specific DNS address, this function can be set; if the user does not specify DNS address without doing any additional operation, direct by the network assigns the default DNS address will not increase the inconvenience for the user.

[0064] 操作简单、灵活,用户只需要调用接口设置两个参数即可,在使用中,可以只设置一个DNS地址,而另一个使用网络默认的DNS地址,如设置特定的主DNS,而使用网络分配的辅DNS地址。 Simple [0064] operations, and flexible, the user only needs to interface to set two parameters can be invoked, in use, may be provided only one DNS address, other network use the default DNS address, such as a specific set of primary DNS, using secondary DNS address assigned by the network.

[0065] 用户不受操作权限的限制,在需要的时候,即可进行设置。 [0065] User operation limitation without permission, when needed, can be set.

[0066] 支持WCDMA的NDIS拨号和RAS PDP-1P拨号方式。 [0066] The NDIS support WCDMA dial-up and dial-up RAS PDP-1P.

[0067] 需要说明的是,本发明所涉及的装置,除包括实施例中所涉及的模块及单元之外,还包括本领域技术人员所公知的其它元件,为了突出本发明的发明思想,在本发明的实施例中只对涉及本发明的发明思想的模块进行了描述,对装置中公知的其它元件不再赘述。 [0067] Incidentally, the device according to the present invention, in addition to including modules and units of the involved embodiment, but also include other elements to those skilled known, for inventive concept projecting the present invention, embodiments of the present invention relates to the inventive idea only the modules of the present invention have been described, other elements of the known apparatus is omitted.

[0068] 以上所描述的仅为本发明较佳实例,当然不能以此来限定本发明的权利范围,因此,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员都可根据本发明做出各种相应的改变和变形,但这些相应的改变和变形都应当属于本发明所附的权利要求的保护范围。 [0068] Those skilled in the art merely preferred examples of the present invention, of course, not intended to limit the scope of the present invention, therefore, without departing from the spirit and essence of the present invention described above can be familiar with make various corresponding modifications and variations according to the present invention, these corresponding modifications and variations shall fall within the scope of the appended claims.

Claims (9)

  1. 1.一种可动态设置域名服务器的方法,其特征在于:当无线通信终端上电时,初始化主域名服务器DNS缓存变量、辅DNS缓存变量和设置状态变量;当发起拨号连接过程时,检测拨号连接的参数信息,如果在拨号参数信息中包含有主DNS地址和辅DNS地址,则记录DNS地址并置设置状态变量;在网络与无线通信终端建立了分组数据协议PDP数据连接,返回网络分配给终端的信息时,检测设置状态变量,如果状态变量置位,则在无线通信终端与用户设备进行动态主机设置协议DHCP或互联协议控制协议IPCP协商过程时,将缓存的主DNS地址和辅DNS地址返回给用户设备;如果设置状态变量没有置位,则将网络分配的DNS地址返回给用户设备; 所述拨号连接发起过程是指拨号开始时,在用户设备和无线通信终端之间的数据链路连接,用户设备将本次拨号的参数信息发送至无线通 1. A method of dynamic domain name server is provided, wherein: when the wireless communication terminal is powered on, initialized variables primary domain name server DNS cache, the DNS cache variables and auxiliary variables set state; dial-up connection process is initiated when the detected dial parameter information attached, if included in the dialing parameter message contains the primary DNS address and secondary DNS addresses, record the DNS address juxtaposed set of state variables; in a network with the wireless communication terminal to establish a packet data protocol PDP data connection, returns the network assigned to the when the information terminal detected setting state variables, if the state variable is set, then the negotiation process IPCP dynamic host configuration protocol DHCP or Internet protocol control protocol in a wireless communication terminal with a user equipment, the buffered primary DNS address and secondary DNS addresses returned to the user equipment; if the set of state variables is not set, then the DNS address allocated by the network returns to the user equipment; initiating a dial-up connection procedure is started when dialing means, a data link between the user equipment and the wireless communication terminal connecting the user equipment to transmit this parameter information to the wireless communication dial 终端;设置的DNS地址信息通过这条数据链路发送至无线通信终端,在与网络侧的PDP连接建立完成后,最终确认的DNS地址通过这条数据链路发送至用户设备。 Terminal; DNS address information set to the wireless communication terminal via this data link, a connection with the network side establishing PDP is completed, a final acknowledgment DNS addresses to which the user equipment through data links.
  2. 2.如权利要求1所述的方法,其特征在于:所述主DNS缓存变量、辅DNS缓存变量记录用户最终希望得到的两个DNS服务器的地址。 2. The method according to claim 1, wherein: said main variable DNS cache, the DNS cache auxiliary variables recorded address of the user wants the final two DNS servers.
  3. 3.如权利要求1所述的方法,其特征在于:在用户需要域名服务时,先将解析请求发往主DNS地址指向的服务器,如果主DNS服务器没有响应,则将解析请求发往辅DNS服务器;设置状态变量记录用户是否需要设置DNS地址,根据状态变量的值决定最终反馈给用户的DNS地址。 3. The method according to claim 1, wherein: the domain name service when the user needs, the first resolution request to the server main DNS address pointed to, if the primary DNS server does not respond, then sent to the secondary DNS resolution request server; recording whether the user setting state variables need to set DNS address, feedback to the user to determine the final address of the DNS based on the value of the state variable.
  4. 4.如权利要求1所述的方法,其特征在于:所述PDP数据连接是指无线通信终端收到用户设备发来的参数信息后,与移动通信网络之间建立的一条分组数据传输链路。 4. The method according to claim 1, wherein: said data connection is a PDP after a user equipment wireless communication terminal receives parameter information sent between the mobile communication network to establish a packet data transmission link .
  5. 5.如权利要求1所述的方法,其特征在于:无线通信终端将PDP连接的参数信息发往网络侧进行协商,网络侧在对参数信息确认后,以PDP激活消息发给无线通信终端;在rop信息协商时,无线通信终端会将用户设备发来的DNS地址信息发往网络侧,网络侧直接返回网络侧默认的DNS地址。 5. The method according to claim 1, wherein: the wireless communication terminal to send the parameter information to negotiate PDP connection to the network side, the network side after confirmation of parameter information, in order to activate the PDP message to the wireless communication terminal; when rop information negotiation, the radio communication terminal device sent by the user will be the DNS address information is sent to the network side, the network side returns the network address of the default DNS directly.
  6. 6.如权利要求1所述的方法,其特征在于:所述DHCP或IPCP协商过程是指无线通信终端在与网络建立了无线连接链路时,将从网络获取的参数信息返回给用户设备。 6. The method according to claim 1, wherein: said DHCP or IPCP negotiation process refers to a wireless communication terminal and the network link is established a wireless connection, returns the acquired parameter information from the network to the user equipment.
  7. 7.一种可动态设置域名服务器的无线通信终端,其特征在于:所述无线通信终端包括设置域名服务器DNS应用程序编程接口API模块、DNS信息处理模块、网络DNS信息交互模块和DNS信息返回模块; 所述设置DNSAPI接口模块用于使PC机调用该接口设置DNS地址信息; 所述DNS信息处理模块用于接受PC设置的DNS信息,初始化DNS信息设置状态; 所述网络DNS信息交互模块接受拨号的DNS信息,并与网络交互DNS信息参数; 所述DNS信息返回模块接受网络侧返回的DNS地址信息,并根据DNS信息处理模块设定的机制,决定最终返回给PC机的DNS地址信息。 A domain name server may be dynamically provided a wireless communication terminal, wherein: the wireless communication terminal includes a domain name server DNS application programming interface API module, the processing module DNS information, the DNS information network DNS information interaction module and return module ; DNSAPI the interface module is provided for setting the PC invoking the interface DNS address information; and the DNS information processing means for receiving information of the PC DNS settings, DNS settings initialization state; the information interaction module accepts network dialing DNS DNS information, the DNS information and interact with the network parameters; DNS information returning module accepts the DNS address information returned by the network, according to the mechanism set DNS information processing module, the final decision to the DNS returns the address information of the PC.
  8. 8.如权利要求7所述的无线通信终端,其特征在于:所述DNS信息处理模块还用于判断对用户DNS信息的设置流程。 8. The wireless communication terminal according to claim 7, wherein: said DNS information processing module is further configured to determine a user setting process DNS information.
  9. 9.如权利要求7所述的无线通信终端,其特征在于:所述网络DNS信息交互模块还用于在拨号开始时将DNS信息发往网络侧,在PDP激活后解析DNS地址信息。 9. The wireless communication terminal according to claim 7, wherein: the network DNS information interaction module is further configured to start the dialing information sent to the network side DNS, resolves the DNS address information in the PDP activation.
CN 201010271051 2010-08-28 2010-08-28 Method capable of dynamically setting domain name server and wireless communication terminal CN101931663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010271051 CN101931663B (en) 2010-08-28 2010-08-28 Method capable of dynamically setting domain name server and wireless communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010271051 CN101931663B (en) 2010-08-28 2010-08-28 Method capable of dynamically setting domain name server and wireless communication terminal

Publications (2)

Publication Number Publication Date
CN101931663A true CN101931663A (en) 2010-12-29
CN101931663B true CN101931663B (en) 2014-06-11

Family

ID=43370587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010271051 CN101931663B (en) 2010-08-28 2010-08-28 Method capable of dynamically setting domain name server and wireless communication terminal

Country Status (1)

Country Link
CN (1) CN101931663B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761629B (en) * 2012-07-11 2016-01-06 华为终端有限公司 Dns server address is provided a method, apparatus and system for
CN102984294A (en) * 2012-12-07 2013-03-20 中兴通讯股份有限公司 IPv6 DNS address distribution and acquisition method and device
CN102984295B (en) * 2012-12-07 2015-08-26 中兴通讯股份有限公司 A mobile terminal and method of address assignment
CN103078963A (en) * 2012-12-20 2013-05-01 中兴通讯股份有限公司 Method and equipment for selecting domain name server
CN106302838A (en) * 2015-05-12 2017-01-04 中兴通讯股份有限公司 Domain name system (DNS )analysis processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002047415A1 (en) 2000-12-04 2002-06-13 Nokia Corporation Communication system and method for establishing a connection to a serving network element
US6425003B1 (en) 1999-01-22 2002-07-23 Cisco Technology, Inc. Method and apparatus for DNS resolution
CN1581114A (en) 2003-08-14 2005-02-16 华为技术有限公司 Analysis method for user's request
CN101431539A (en) 2008-12-11 2009-05-13 华为技术有限公司 Domain name resolution method, system and apparatus
CN101677475A (en) 2008-09-16 2010-03-24 联想(北京)有限公司 Power management method, equipment and mobile terminal thereof
CN101753636A (en) 2009-12-23 2010-06-23 新太科技股份有限公司 Method and system for realizing dynamic domain name visit through uniform communication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6425003B1 (en) 1999-01-22 2002-07-23 Cisco Technology, Inc. Method and apparatus for DNS resolution
WO2002047415A1 (en) 2000-12-04 2002-06-13 Nokia Corporation Communication system and method for establishing a connection to a serving network element
CN1581114A (en) 2003-08-14 2005-02-16 华为技术有限公司 Analysis method for user's request
CN101677475A (en) 2008-09-16 2010-03-24 联想(北京)有限公司 Power management method, equipment and mobile terminal thereof
CN101431539A (en) 2008-12-11 2009-05-13 华为技术有限公司 Domain name resolution method, system and apparatus
CN101753636A (en) 2009-12-23 2010-06-23 新太科技股份有限公司 Method and system for realizing dynamic domain name visit through uniform communication

Also Published As

Publication number Publication date Type
CN101931663A (en) 2010-12-29 application

Similar Documents

Publication Publication Date Title
US7152160B2 (en) Method and arrangement to secure access to a communications network
US20060173977A1 (en) A process for dynamic user control on always-on ip network
US20060203774A1 (en) System, method and apparatus for selecting a remote tunnel endpoint for accessing packet data services
US20140043495A1 (en) Wireless video camera and connection methods including multiple video or audio streams
US20050043028A1 (en) Arrangement for supporting data exchange between terminal equipment and a mobile communication network via a mobile terminal
CN101262500A (en) Method, access controller and WEB authentication server for pushing login page
CN1713629A (en) Realization of user login name and IP address binding
US20050201388A1 (en) Method and apparatus for providing a VPN service according to a packet data protocol in a wireless communication system
US20060274766A1 (en) Smart intermediate authentication management (SIAM) system and method for multiple permanent virtual circuit (PVC) access environment
CN101888389A (en) Method and system for realizing uniform authentication of ICP union
US7984149B1 (en) Method and apparatus for identifying a policy server
CN101997934A (en) Method and system for accessing addresses, mobile terminal and application method thereof
CN101932068A (en) Method, system and device for realizing machine-to-machine service
CN101267304A (en) A network access privilege control method, device and system
CN101262368A (en) Method and device for configuration and configuration in home gateway routing mode
CN1992736A (en) IP address distribution method and use thereof
US20060009197A1 (en) Call setting method for packet exchange network
CN102137170A (en) Method and device for distributing IPv6 (Internet Protocol version 6) addresses
CN101848163A (en) Method and system for dynamically adjusting bandwidth service and broadband policy system
CN1753390A (en) Method of implementing business discrimination and business service quality control on broadband network
CN101166182A (en) Broadband access bandwidth adjusting method and system based on panel operation
CN102611750A (en) Double-protocol-stack accessing method and system
CN103701760A (en) Wireless LAN (Local Area Network) Portal authentication method and system and Portal server
CN101286887A (en) Method, device and system for realizing terminal registry
CN101227362A (en) Method for wireless personal area network access

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted