Abstract:
A method and a system for setting a domain name and a network device thereof are provided. In the invention, the network device includes built-in identification information, and the identification information is stored in a back-end database. When the network device receives a domain name, it transmits setting information to a server device. Then, the server device queries the identification information in the back-end database according to the setting information to authenticate the network device. After the network device passes the authentication, the server device maps the domain name to an Internet protocol address. Therefore, a step of registering an account and a password is omitted to simplify a procedure of setting the domain name.
Claims:
A method and a system for setting a domain name and a network device thereof are provided. In the invention, the network device includes built-in identification information, and the identification information is stored in a back-end database. When the network device receives a domain name, it transmits setting information to a server device. Then, the server device queries the identification information in the back-end database according to the setting information to authenticate the network device. After the network device passes the authentication, the server device maps the domain name to an Internet protocol address. Therefore, a step of registering an account and a password is omitted to simplify a procedure of setting the domain name.
Claims:
- A method for setting a domain name, which is suitable for a network device having built-in identification information and a back-end database storing the identification information, the method comprising the steps of:receiving a domain name at the network device and enabling the network device to transmit a setting information to a server device, wherein the setting information includes the domain name, the identification information and an Internet protocol (IP) address provided by the network device;querying the identification information in the back-up database according to the setting information to authenticate the network device at the server device; andmapping the domain name to the IP address by the server device after the network device passes the authentication.
- The method for setting the domain name according to claim 1, wherein the step of enabling the network device to transmit the setting information to the server device further comprises the steps of:retrieving the identification information from a storage unit of the network device;generating a first authentication code according to the identification information by the network device; andtransmitting a device identification code in the first authentication code, the domain name, the IP address and the identification information to the server device.
- The method for setting the domain name according to claim 2, wherein the step of querying the identification information in the back-up database according to the setting information to authenticate the network device by the server device comprises the steps of:retrieving the identification information from the back-end database according to the device identification code by the server device;generating a second authentication code according to the identification information by the server device; anddetermining whether the first authentication code is the same with the second authentication code, wherein when the first authentication code and the second authentication code are the same, the network device is determined to pass the authentication.
- The method for setting the domain name according to claim 1, wherein the domain name and the IP address that the domain name is mapped to are recorded in a mapping table in the server device.
- The method for setting the domain name according to claim 4, wherein after the network device passes the authentication, the method further comprises the steps of:checking whether the domain name exists in the mapping table by the server device if the setting information includes a name setting request; andrecording the domain name and the IP address into the mapping table when the domain name does not exist in the mapping table.
- The method for setting the domain name according to claim 4, wherein after the network device passes the authentication, the method further comprises the steps of:checking whether the domain name exists in the mapping table by the server device if the setting information includes an address updating request; andupdating the mapping table to map the domain name to a IP address carried by the setting information when the domain name exists in the mapping table.
- A system for setting a domain name, comprising:a network device having built-in identification information and for receiving a domain name to transmit a setting information including the domain name, the identification information and a IP address provided by the network device;a back-up database for storing the identification information; anda server device coupled to the network device via the Internet and for receiving the setting information and querying the identification information in the back-up database according to the setting information to authenticate the network device, wherein when the network device passes the authentication, the domain name is mapped to the IP address.
- The system for setting the domain name according to claim 7, wherein the network device comprises:a storage unit for storing the identification information; anda client application module for retrieving the identification information from the storage unit, generating a first authentication code according to the identification information and transmitting a device identification code in the first authentication code, the domain name, the IP address and the identification information to the server device.
- The system for setting the domain name according to claim 8, wherein the client application module further provides a user interface for a user to input the domain name.
- The system for setting the domain name according to claim 7, wherein the server device further comprises:an authentication module for querying the identification information in the back-up database according to the setting information to authenticate the network device; anda mapping module for mapping the domain name to the IP address and recording the domain name and the IP address.
- The system for setting the domain name according to claim 10, wherein the authentication module further generates a second authentication code according to the identification information, and the authentication module determines that the network device passes the authentication when the second authentication code is the same with a first authentication code in the setting information.
- The system for setting the domain name according to claim 10, wherein the mapping module further checks whether the domain name exists in the server device.
- The system for setting the domain name according to claim 7, wherein the server device further comprises:a mapping table for recording the domain name and the IP address that the domain name is mapped to.
- A network device connected to a server device, the network device comprising:a storage unit for storing identification information; anda client application module for retrieving the identification information from the storage unit and transmitting the identification information, the domain name and a IP address to the server device, wherein after the server device determines that the network device passes the authentication according to the identification information, the server device maps the domain name to the IP address.
- The network device according to claim 14, wherein the client application module further provides a user interface for a user to input the domain name.
- The network device according to claim 14, wherein the client application module further generates a first authentication code according to the identification information and transmits a device identification code in the first authentication code, the domain name, the IP address and the identification information to the server device to allow the server device to query the identification information in a back-up database according to the device identification code to authenticate the network device.