[go: up one dir, main page]

CN103124294A - Method, device and internet protocol (IP) device analyzing virtual domains - Google Patents

Method, device and internet protocol (IP) device analyzing virtual domains Download PDF

Info

Publication number
CN103124294A
CN103124294A CN201310041163XA CN201310041163A CN103124294A CN 103124294 A CN103124294 A CN 103124294A CN 201310041163X A CN201310041163X A CN 201310041163XA CN 201310041163 A CN201310041163 A CN 201310041163A CN 103124294 A CN103124294 A CN 103124294A
Authority
CN
China
Prior art keywords
equipment
client
dhcp
address
domain name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310041163XA
Other languages
Chinese (zh)
Other versions
CN103124294B (en
Inventor
褚利松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Houtian Network Communication Technology Co Ltd
Original Assignee
Shenzhen Houtian Network Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Houtian Network Communication Technology Co Ltd filed Critical Shenzhen Houtian Network Communication Technology Co Ltd
Priority to CN201310041163.XA priority Critical patent/CN103124294B/en
Publication of CN103124294A publication Critical patent/CN103124294A/en
Application granted granted Critical
Publication of CN103124294B publication Critical patent/CN103124294B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is suitable for the field of computers and provides a method, device and internet protocol (IP) device analyzing virtual domains. The method comprises: an IP device selects whether starting a dynamic host configuration protocol (DHCP) service according to working state; the IP device receives DHCP requests sent by a client-side device; when the DHCP service of the IP device is started, the IP device allocates IP address for the client-side device from local according to the DHCP requests; the IP device receives domain name server (DNS) requests sent by the client-side device, and the DNS requests carry virtual domains input by a browser of the client-side device; and the IP device relates the virtual domains and the IP address to enable the client-side device to be located to the IP address through operation of the virtual domains. By means of the method, device and internet protocol (IP) device analyzing virtual domains, the IP device allocates the IP address for the client-side device from the local, accordingly the client-side device does not need to allocate acquiring method of the IP, and only domains are required to be input when used.

Description

Method and device for analyzing virtual domain name and IP equipment
Technical Field
The invention belongs to the field of computer networks, and particularly relates to a method and a device for analyzing a virtual domain name and IP equipment.
Background
The existing IP equipment adopts a mode of a server side and a client side to configure the IP address of the client side equipment. And the user inputs an IP address through the client equipment, enters an IP address configuration page of the server side and carries out IP address configuration operation of the client equipment. The existing IP address configuration technology is very professional, compared with common users, the IP technology is complex and difficult to understand and is difficult to use, particularly, IP equipment working in a bridge mode does not provide DHCP service when the IP equipment works in the bridge mode, so that the IP configuration is very troublesome when the IP equipment logs in a server side through client equipment.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device and equipment for resolving a virtual domain name, so as to solve the problems of complex and troublesome IP address configuration in the prior art.
In a first aspect, an embodiment of the present invention provides a method for resolving a virtual domain name, where the method includes the following steps:
the IP equipment selects whether to start the DHCP service or not according to the working state of the IP equipment;
the IP equipment receives a DHCP request sent by the client equipment;
when the DHCP service of the IP equipment is started, the IP equipment locally allocates an IP address for the client equipment according to the DHCP request;
the method comprises the steps that IP equipment receives a DNS request sent by client equipment, wherein the DNS request carries a virtual domain name input by a user through a browser of the client equipment;
and the IP equipment associates the virtual domain name with the IP address so as to enable the client equipment to be positioned to the IP address through the operation of the virtual domain name.
In a first possible implementation manner of the first aspect, the selecting whether to start a DHCP service specifically includes:
when the IP equipment is connected with an external network, selecting to stop DHCP service; or,
and when the IP equipment is not connected with an external network, selecting to start the DHCP service.
In a second aspect, an embodiment of the present invention provides an apparatus for resolving a virtual domain name, where the apparatus includes:
the DHCP service selection unit is used for selecting whether to start the DHCP service or not by the IP equipment according to the working state of the IP equipment;
a DHCP request receiving unit, which is used for selecting whether to start DHCP service in the DHCP service selecting unit, and the IP equipment receives the DHCP request sent by the client equipment;
the IP address allocation unit is used for allocating an IP address for the client equipment from the local according to the DHCP request received by the DHCP request receiving unit by the IP equipment when the DHCP service of the IP equipment is started;
a DNS request receiving unit, configured to, after the IP address allocating unit allocates, receive, by an IP device, a DNS request sent by a client device, where the DNS request carries a virtual domain name input by a user through a browser of the client device;
and the association unit is used for associating the virtual domain name acquired by the DNS request receiving unit and the IP address allocated by the IP address allocation unit by the IP equipment so as to enable the client equipment to be positioned to the IP address through the operation of the virtual domain name.
In a first possible embodiment of the second aspect,
the DHCP service selection unit specifically includes:
a stopping subunit, configured to select to stop a DHCP service when the IP device is connected to an external network;
and the starting subunit is used for selecting to start the DHCP service when the IP equipment is not connected with an external network.
In a third aspect, an embodiment of the present invention provides an IP device, where the IP device includes the apparatus described above.
In the embodiment of the invention, the IP equipment receives a DHCP request sent by the client equipment, selects an IP address from local according to the DHCP request, receives a DNS request sent by a user, acquires a virtual domain name carried by the DNS request, and associates the virtual domain name with the IP address, so that the client equipment does not need to configure an IP acquisition mode (default is automatic acquisition), the domain name is input when the client equipment is used, and all requests sent by the client equipment through the domain name can be automatically positioned to the IP address.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for resolving a virtual domain name according to an embodiment of the present invention;
fig. 2 is a structural diagram of an apparatus for resolving a virtual domain name according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the embodiment of the invention, the IP equipment receives a DHCP request sent by the client equipment, selects an IP address from local according to the DHCP request, receives a DNS request sent by a user, acquires a virtual domain name carried by the DNS request, and associates the virtual domain name with the IP address, so that the client equipment does not need to configure an IP acquisition mode (default is automatic acquisition), the domain name is input when the client equipment is used, and all requests sent by the client equipment through the domain name can be automatically positioned to the IP address.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 is a flowchart of a method for resolving a virtual domain name according to an embodiment of the present invention, where the method includes the following steps:
in step S101, the IP device selects whether to start a DHCP service according to its operating state.
In the embodiment of the present invention, the IP device refers to a device supporting a network communication Protocol (Transmission control Protocol/Internet Protocol abbreviated as TCP/IP), such as: routers, switches, etc. Before the IP device works, it needs to select whether to start the DHCP service according to its working state. Whether the DHCP service is started or not is selected, and the method specifically comprises the following steps:
(1) when the IP equipment is connected with an external network, selecting to stop the DHCP service; or,
(2) and when the IP equipment is not connected with an external network, selecting to start the DHCP service.
In step S102, the IP device receives the DHCP request sent by the client device.
In the embodiment of the present invention, after the client device is physically connected to the IP device through a network cable or the like, a Dynamic Host Configuration Protocol (DHCP) request is automatically sent to the IP device, and at this time, the IP device receives the DHCP request sent by the client device.
It should be noted that the IP device may be: the IP device operating in the bridge mode, or the IP device operating in the router mode, particularly the IP device operating in the bridge mode, is the key point of protection of the present invention.
In step S103, when the DHCP service of the IP device is started, the IP device locally allocates an IP address to the client device according to the DHCP request.
In the embodiment of the invention, when the DHCP service of the IP equipment is started, the IP equipment is not connected with an external network, and the IP equipment can only allocate the IP address for the client equipment. The IP equipment selects an IP address from local according to a DHCP request sent by the client equipment.
In step S104, the IP device receives a DNS request sent by the client device, where the DNS request carries a virtual domain name input by a user through a browser of the client device.
In the embodiment of the present invention, a user inputs a Domain Name through a browser of a client device, and the client device sends a Domain Name System (DNS request for short) to an IP device, where the DNS request carries the Domain Name input by the user. The IP device receives the DNS request.
In step S105, the IP device associates the virtual domain name and the IP address, so that the client device locates to the IP address through the operation performed by the virtual domain name.
In the embodiment of the invention, the IP equipment receives a DNS request sent by the client equipment, acquires the carried virtual domain name from the DNS request, and associates the virtual domain name with the IP address, so that in subsequent operations, the client equipment can be positioned on the associated IP address through the operations of the virtual domain name.
In the embodiment of the invention, the IP equipment receives a DHCP request sent by the client equipment, selects an IP address from local according to the DHCP request, receives a DNS request sent by a user, acquires a virtual domain name carried by the DNS request, and associates the virtual domain name with the IP address, so that the client equipment does not need to configure an IP acquisition mode (default is automatic acquisition), the domain name is input when the client equipment is used, and all requests sent by the client equipment through the domain name can be automatically positioned to the IP address.
Example two
Fig. 2 is a structural diagram of a virtual domain name resolution device according to an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown, including:
a DHCP service selecting unit 201, configured to select whether to start a DHCP service according to the working state of the IP device.
In the embodiment of the present invention, the IP device refers to a device supporting a network communication Protocol (Transmission control Protocol/Internet Protocol abbreviated as TCP/IP), such as: routers, switches, etc. Before the IP device works, the DHCP service selecting unit 201 needs to select whether to start the DHCP service according to its working state. The DHCP service selecting unit 201 specifically includes:
a stop subunit 2011, configured to select to stop the DHCP service when the IP device is connected to an external network.
A sub-promoter unit 2012, configured to select to start the DHCP service when the IP device is not connected to an external network.
A DHCP request receiving unit 202, configured to receive, by the IP device, a DHCP request sent by the client when the DHCP service selecting unit 201 selects to start the DHCP service.
In the embodiment of the present invention, after the client device is physically connected to the IP device through a network cable or the like, a Dynamic Host Configuration Protocol (DHCP) request is automatically sent to the IP device, and at this time, the DHCP request receiving unit 202 of the IP device receives the DHCP request sent by the client device.
It should be noted that the IP device may be: the IP device operating in the bridge mode, or the IP device operating in the router mode, particularly the IP device operating in the bridge mode, is the key point of protection of the present invention.
An IP address allocating unit 203, configured to, when the DHCP service of the IP device is started, allocate an IP address to the client device from a local location according to the DHCP request received by the DHCP request receiving unit 202.
In the embodiment of the invention, when the DHCP service of the IP equipment is started, the IP equipment is not connected with an external network, and the IP equipment can only allocate the IP address for the client equipment. The IP address allocation unit 203 of the IP device locally selects an IP address according to a DHCP request sent by the client device.
A DNS request receiving unit 204, configured to, after the IP address allocating unit 203 allocates, receive, by an IP device, a DNS request sent by a client device, where the DNS request carries a virtual domain name input by a user through a browser of the client device.
In the embodiment of the present invention, a user inputs a Domain Name through a browser of a client device, and the client device sends a Domain Name System (DNS request for short) to an IP device, where the DNS request carries the Domain Name input by the user. The DNS request receiving unit 204 of the IP device receives the DNS request.
An associating unit 205, configured to associate, by the IP device, the virtual domain name obtained by the DNS request receiving unit 204 and the IP address allocated by the IP address allocating unit 203, so that the client device is located at the IP address through an operation performed by the virtual domain name.
In the embodiment of the present invention, the IP device receives a DNS request sent by the client device, acquires a carried virtual domain name from the DNS request, and associates the virtual domain name acquired by the DNS request receiving unit 204 with the IP address allocated by the IP address allocating unit 203, so that in subsequent operations, the client device will be positioned on the associated IP address through operations performed by the virtual domain name.
In the embodiment of the invention, the IP equipment receives a DHCP request sent by the client equipment, selects an IP address from local according to the DHCP request, receives a DNS request sent by a user, acquires a virtual domain name carried by the DNS request, and associates the virtual domain name with the IP address, so that the client equipment does not need to configure an IP acquisition mode (default is automatic acquisition), the domain name is input when the client equipment is used, and all requests sent by the client equipment through the domain name can be automatically positioned to the IP address.
The embodiment of the invention also provides the IP equipment, and the IP equipment comprises the device for analyzing the virtual domain name.
Those skilled in the art can understand that each unit included in the second embodiment is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It will be further understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (5)

1. A method of resolving a virtual domain name, the method comprising the steps of:
the IP equipment selects whether to start the DHCP service or not according to the working state of the IP equipment;
the IP equipment receives a DHCP request sent by the client equipment;
when the DHCP service of the IP equipment is started, the IP equipment locally allocates an IP address for the client equipment according to the DHCP request;
the method comprises the steps that IP equipment receives a DNS request sent by client equipment, wherein the DNS request carries a virtual domain name input by a user through a browser of the client equipment;
and the IP equipment associates the virtual domain name with the IP address so as to enable the client equipment to be positioned to the IP address through the operation of the virtual domain name.
2. The method according to claim 1, wherein said selecting whether to start a DHCP service specifically comprises:
when the IP equipment is connected with an external network, selecting to stop DHCP service; or,
and when the IP equipment is not connected with an external network, selecting to start the DHCP service.
3. An apparatus for resolving a virtual domain name, the apparatus comprising:
the DHCP service selection unit is used for selecting whether to start the DHCP service or not by the IP equipment according to the working state of the IP equipment;
a DHCP request receiving unit, configured to receive, by the IP device, a DHCP request sent by the client device when the DHCP service selecting unit selects to start a DHCP service;
the IP address allocation unit is used for allocating an IP address for the client equipment from the local according to the DHCP request received by the DHCP request receiving unit by the IP equipment when the DHCP service of the IP equipment is started;
a DNS request receiving unit, configured to, after the IP address allocating unit allocates, receive, by an IP device, a DNS request sent by a client device, where the DNS request carries a virtual domain name input by a user through a browser of the client device;
and the association unit is used for associating the virtual domain name acquired by the DNS request receiving unit and the IP address allocated by the IP address allocation unit by the IP equipment so as to enable the client equipment to be positioned to the IP address through the operation of the virtual domain name.
4. The apparatus of claim 3, wherein the DHCP service selecting unit specifically includes:
a stopping subunit, configured to select to stop a DHCP service when the IP device is connected to an external network;
and the starting subunit is used for selecting to start the DHCP service when the IP equipment is not connected with an external network.
5. An IP device, characterized in that it comprises an apparatus according to any of claims 3 to 4.
CN201310041163.XA 2013-02-01 2013-02-01 A kind of method, device and IP device of resolving virtual Domain Name Expired - Fee Related CN103124294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310041163.XA CN103124294B (en) 2013-02-01 2013-02-01 A kind of method, device and IP device of resolving virtual Domain Name

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310041163.XA CN103124294B (en) 2013-02-01 2013-02-01 A kind of method, device and IP device of resolving virtual Domain Name

Publications (2)

Publication Number Publication Date
CN103124294A true CN103124294A (en) 2013-05-29
CN103124294B CN103124294B (en) 2016-04-27

Family

ID=48455145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310041163.XA Expired - Fee Related CN103124294B (en) 2013-02-01 2013-02-01 A kind of method, device and IP device of resolving virtual Domain Name

Country Status (1)

Country Link
CN (1) CN103124294B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744612A (en) * 2005-08-19 2006-03-08 杭州华为三康技术有限公司 DHCP address allocation method
US20070204038A1 (en) * 2006-02-28 2007-08-30 Microsoft Corporation Global names zone
CN101442436A (en) * 2007-11-20 2009-05-27 国际商业机器公司 IP network management method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744612A (en) * 2005-08-19 2006-03-08 杭州华为三康技术有限公司 DHCP address allocation method
US20070204038A1 (en) * 2006-02-28 2007-08-30 Microsoft Corporation Global names zone
CN101442436A (en) * 2007-11-20 2009-05-27 国际商业机器公司 IP network management method and system

Also Published As

Publication number Publication date
CN103124294B (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
US9210124B2 (en) Method, apparatus, and system for allocating public IP address
US9973399B2 (en) IPV6 address tracing method, apparatus, and system
CN103281203B (en) A kind of dhcp address allocation management method based on ecos systems
US9253144B2 (en) Client-driven load balancing of dynamic IP address allocation
WO2017206572A1 (en) Ip address management method for use in network environment having multiple dhcp servers, and dhcp client
CN103532751A (en) Management method and device for network access equipment
CN107613037B (en) Domain name redirection method and system
CN103229478A (en) Method and device for virtual-machine drift determination
CN105743684A (en) Router configuration method in AP mode and router
US8887237B2 (en) Multimode authentication
US10455039B2 (en) Method and router for sending and processing data
EP2416572A1 (en) Method and apparatus for obtaining address of video transmission management server
US20110191402A1 (en) Network system, process-providing-server switching method, information processing apparatus, and virtual-machine building method
CN104717312B (en) A kind of determining method and device for accessing Internet resources interface
CN104702707A (en) Method and device for data processing
CN104079682A (en) Address translation method and device based on domain name system (DNS)
CN105681266B (en) A kind of communication cluster method and device of mediaphone MMTel
CN105657077A (en) Network address translation traversal method and network address translation equipment
CN103124294B (en) A kind of method, device and IP device of resolving virtual Domain Name
CN106330492B (en) A kind of method, apparatus and system configuring user equipment forwarding table
CN102761629B (en) The method of dns server address, Apparatus and system are set
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address
CN106254576B (en) Message forwarding method and device
CN104702706B (en) A kind of method and apparatus of acquisition DNS messages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160427

Termination date: 20180201