CN111935327A - Domain name allocation method, device, equipment and computer readable storage medium - Google Patents

Domain name allocation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111935327A
CN111935327A CN202010111056.XA CN202010111056A CN111935327A CN 111935327 A CN111935327 A CN 111935327A CN 202010111056 A CN202010111056 A CN 202010111056A CN 111935327 A CN111935327 A CN 111935327A
Authority
CN
China
Prior art keywords
domain name
available
available domain
conversion
conversion value
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
CN202010111056.XA
Other languages
Chinese (zh)
Other versions
CN111935327B (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.)
Beijing Doumen Information Technology Co ltd
Original Assignee
Beijing Doumen Information 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 Beijing Doumen Information Technology Co ltd filed Critical Beijing Doumen Information Technology Co ltd
Priority to CN202010111056.XA priority Critical patent/CN111935327B/en
Publication of CN111935327A publication Critical patent/CN111935327A/en
Application granted granted Critical
Publication of CN111935327B publication Critical patent/CN111935327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • H04L61/3025Domain name generation or assignment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a domain name allocation method, a domain name allocation device, domain name allocation equipment and a computer readable storage medium. The domain name allocation method comprises the following steps: receiving an access request from an access terminal, wherein the access request comprises an identifier of the access terminal; converting the identifier through a preset algorithm to obtain a conversion value of the identifier; searching an available domain name corresponding to the conversion value of the identifier in the corresponding relation between the available domain name and the conversion value; and distributing the available domain name corresponding to the identified conversion value to the access terminal. According to the method and the device, the same domain name can be distributed when the same website is visited by the same visiting terminal for multiple times, the domain name distribution efficiency is guaranteed, and the cache consumption is reduced.

Description

Domain name allocation method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a domain name allocation method, apparatus, device, and computer-readable storage medium.
Background
With the development of internet technology, network users can access websites in different environments. For example, a user may access a website through a browser, WeChat, or other enterprise APP (Application). In some network environments, some domain names may be masked; some domain names may be masked by a particular network environment after a period of use. To avoid the situation where a website cannot be accessed because an available domain name is masked by a specific network environment or after a period of use, different domain names may be set for the same website. Therefore, when one domain name is shielded, normal access can be performed on the website through other domain names, and all access cannot be affected.
However, if different domain names are set for the same website, a problem of how to allocate domain names to different users exists.
Disclosure of Invention
In order to solve at least one problem in the prior art, embodiments of the present application provide a domain name allocation method, apparatus, device and computer-readable storage medium.
In a first aspect, an embodiment of the present application provides an access method, including:
receiving an access request from an access terminal, wherein the access request comprises an identifier of the access terminal;
converting the identifier through a preset algorithm to obtain a conversion value of the identifier;
searching an available domain name corresponding to the conversion value of the identifier in the corresponding relation between the available domain name and the conversion value;
and allocating the available domain name corresponding to the identified conversion value to the access terminal.
In one embodiment, the method for converting an identifier of an access terminal into an IP address of the access terminal by using a preset algorithm to obtain a conversion value of the identifier includes:
calculating a hash code of the IP address by using a hash algorithm;
calculating the absolute value of the remainder obtained by dividing the hash code by the total number of the conversion values;
the absolute value is taken as the conversion value of the identification.
In one embodiment, before finding an available domain name corresponding to the identified conversion value, the method further comprises:
and setting the corresponding relation between the available domain name and the conversion value.
In one embodiment, setting the correspondence between the available domain name and the conversion value includes:
a domain name list is established, each transition value in the domain name list corresponding to an available domain name.
In one embodiment, establishing the domain name list further comprises:
if the number of the available domain names is less than the total number of the conversion values in the domain name list, arranging the available domain names;
establishing a corresponding relation between the arranged available domain names and each conversion value in sequence;
and when the available domain names are used up and residual conversion values which do not establish the corresponding relation with the available domain names exist, establishing the corresponding relation between the arranged available domain names and the residual conversion values in sequence.
In one embodiment, the access request further includes a website address requesting access; the domain name allocation method further comprises the following steps:
one or more available domain names included in the web address are obtained.
In one embodiment, the domain name allocation method further includes:
detecting shielded domain names in the available domain names;
if an unmasked new domain name other than the available domain name exists, replacing the masked domain name with the new domain name;
if no new domain name exists, replacing the masked domain name by an unmasked domain name in the available domain names.
In a second aspect, an embodiment of the present application provides a domain name allocating apparatus, including:
an access request receiving module: the access terminal is used for receiving an access request from the access terminal, wherein the access request comprises an identifier of the access terminal;
a conversion module: the system comprises a mark conversion module, a mark conversion module and a mark conversion module, wherein the mark conversion module is used for converting the mark through a preset algorithm to obtain a conversion value of the mark;
a searching module: the domain name conversion module is used for searching an available domain name corresponding to the conversion value of the identification in the corresponding relation between the available domain name and the conversion value;
a distribution module: for assigning an available domain name corresponding to the identified conversion value to the access terminal.
In one embodiment, the identifier of the access terminal is an IP address of the access terminal, and the translation module includes:
a hash calculation unit: a hash code for calculating the IP address using a hash algorithm;
an absolute value calculation unit: calculating the absolute value of the remainder obtained by dividing the hash code by the total number of the conversion values;
the absolute value calculation unit is further configured to: the absolute value is taken as the conversion value of the identification.
In one embodiment, the domain name assigning apparatus further includes:
a corresponding relation setting module: and the method is used for setting the corresponding relation between the available domain name and the conversion value.
In one embodiment, the correspondence setting module is further configured to:
a domain name list is established, each transition value in the domain name list corresponding to an available domain name.
In one embodiment, the correspondence setting module further includes:
an arrangement unit: the method comprises the steps of arranging the available domain names if the number of the available domain names is less than the total number of conversion values in a domain name list;
a corresponding unit: the domain name conversion device is used for establishing a corresponding relation between the arranged available domain names and each conversion value in sequence;
the corresponding unit is further configured to: and when the available domain names are used up and residual conversion values which do not establish the corresponding relation with the available domain names exist, establishing the corresponding relation between the arranged available domain names and the residual conversion values in sequence.
In one embodiment, the access request further includes a website address requesting access; the domain name assigning apparatus further includes:
available domain name acquisition module: for obtaining one or more available domain names comprised by the web site.
In one implementation, the apparatus of the embodiment of the present application further includes:
a detection module: the method comprises the steps of detecting a shielded domain name in available domain names;
a first replacement module: the method comprises the steps of replacing a shielded domain name with a new domain name if an unmasked new domain name other than an available domain name exists;
a second replacement module: and if the new domain name does not exist, replacing the masked domain name by an unmasked domain name in the available domain names.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform an access method as provided by any one of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform an access method provided by any one of the embodiments of the present application.
One embodiment in the above application has the following advantages or benefits: according to the method and the device, the identification of the access terminal is calculated to obtain the conversion value corresponding to the identification of the access terminal, then the corresponding relation between the conversion value and the available domain name is searched according to the obtained conversion value, the available domain name corresponding to the conversion value is further searched, and the available domain name is distributed to the access terminal. Under the condition that the access terminal accesses for multiple times, the preset algorithm is adopted to calculate the access terminal identification in each access, so that the same access terminal can be assigned to the same domain name in each access operation, and the user information in the Cookie (data stored on the local terminal of the user) cannot be lost due to the change of the domain name. Meanwhile, the embodiment of the application only needs to store the corresponding relation between the conversion values and the available domain names, the number of the conversion values can be set manually, a large amount of storage space does not need to be consumed, the hardware cost of domain name distribution is favorably reduced, and the domain name distribution efficiency is improved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic flow chart of a domain name assignment method according to a first embodiment of the present application;
fig. 2 is a schematic flow chart of a domain name assignment method according to a second embodiment of the present application;
fig. 3 is a schematic flow chart of a domain name assignment method according to a third embodiment of the present application;
fig. 4 is a schematic flow chart of a domain name assignment method according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a domain name assignment device according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a domain name assignment device according to a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of a domain name assignment device according to a seventh embodiment of the present application;
fig. 8 is a schematic structural diagram of a domain name assignment device according to an eighth embodiment of the present application;
fig. 9 is a block diagram of an electronic device for implementing a domain name assignment method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.
Referring to fig. 1, the domain name assignment method provided in the embodiment of the present application may be applied to a domain name assignment device, and mainly refers to a server device capable of deploying a network access function, such as a device equipped with a centros (Community Enterprise Operating System) System DELL (DELL) rack server host, or a device providing a Linux System Docker (application container engine) service, such as an aristo service. The domain name allocation method may include:
step 101: and receiving an access request from an access terminal, wherein the access request comprises the identifier of the access terminal.
In this embodiment, the access terminal may include hardware and/or software. The access terminal may be an electronic device having a display screen, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), a laptop, a desktop computer, and the like. The access request of the access terminal can be received by the domain name allocation device or a special request module.
In this embodiment, the access request may be, for example, an HTTP (HyperText Transfer Protocol) access request, an HTTPs (HyperText Transfer Protocol over secure key Layer) access request, or the like. The access request may be for requesting access to any website.
In this embodiment, the identifier of the access terminal may be an identifier used to distinguish one access terminal from other access terminals, for example, an IP (Internet Protocol) address of the access terminal device, an Identity Document (Identity Document) of the access terminal, or a device number of the access terminal. If the access terminal is a Mobile device, the device number of the access terminal may be, for example, an IMEI (International Mobile Equipment Identity, also called International Mobile Equipment Identity). If the Access terminal is a computer device, the identifier of the Access terminal may specifically be a Media Access Control (MAC) address of the Access terminal.
Step 102: and converting the identifier through a preset algorithm to obtain a conversion value of the identifier.
In this embodiment, the predetermined Algorithm may be any method capable of converting the identifier into a value, such as a Secure Hash Algorithm (SHA), which may specifically be SHA-1, SHA-224, SHA-256, SHA-384, or SHA-512. A pre-set algorithm is used to map the identification to a transformed value. The converted value may be a number or a combination of a letter and a number. When the conversion value is a number, it may be specifically, for example, a binary number, an octal number, a decimal number, a hexadecimal number, or the like.
In this embodiment, the preset algorithm may be a unified algorithm, that is, the methods used when converting the identifier into the conversion value are the same for all the access terminals and whether to access a website for the first time, so that the steps executed for converting the same identifier and the converted conversion value are the same each time.
Step 103: and searching the available domain name corresponding to the identified conversion value in the corresponding relation between the available domain name and the conversion value.
In this embodiment, after the conversion value corresponding to the identifier is calculated, the corresponding relationship between the available domain name and the conversion value can be found through the conversion value according to the set search rule, and then the available domain name can be further found through the corresponding relationship.
In this embodiment, the available domain names may include domain names for accessing a certain website. For example, a domain name that is not masked by a website requested to be accessed by verification may be used in any environment for a user who needs to access the website. More than two available domain names can be set for one website to avoid the situation that one available domain name is shielded to cause the website requesting access to be inaccessible. If a plurality of available domain names are set, when one available domain name is shielded, the remaining available domain names can be allocated to the user equipment accessing the website, and the access to the website is not influenced by shielding of a certain domain name.
In this embodiment, for a website that requests access, the correspondence between two or more different available domain names and conversion values may be set in advance. The corresponding relationship can be realized by a list or an index and the like.
Step 104: and allocating the available domain name corresponding to the identified conversion value to the access terminal.
In this embodiment, the available domain name corresponding to the conversion value of the identifier is allocated to the access terminal, and may be that the available domain name is sent to the access terminal, so that the access terminal can use the available domain name to access the website requested to be accessed. And allocating the available domain name corresponding to the conversion value of the identifier to the access terminal, or accessing the website requested to be accessed by using the corresponding available domain name and feeding back the access result to the access terminal.
In the embodiment of the application, after an access request of an access terminal is received, the identifier of the access terminal is converted to obtain a conversion value corresponding to the identifier of the access terminal, and then an available domain name corresponding to the conversion value is obtained, so that the access terminal can access the website by using the available domain name. Therefore, the same available domain name can be obtained for the same access terminal every time the same website is accessed, and the user information in the Cookie (data stored on the local terminal of the user) cannot be lost due to the change of the domain name. In addition, in general, in order to ensure the access speed, information needed to be used for confirming the available domain name needs to be stored in the cache, the embodiment of the application only needs to store the corresponding relation between the available domain name and the conversion value in the cache, the total number of the conversion value can be set, a large amount of storage space cannot be occupied, the conversion value is adaptive to the storage capacity of the cache, the storage cost is reduced, and the operation efficiency is improved.
In one embodiment, the method for converting an identifier of an access terminal into an IP address of the access terminal by using a preset algorithm to obtain a conversion value of the identifier includes:
calculating a Hash Code (Hash Code) of the IP address by using a Hash algorithm;
calculating the absolute value of the remainder obtained by dividing the hash code by the total number of the conversion values;
the absolute value is taken as the conversion value of the identification.
For example, if the total number of converted values is 10, the hash code mantissa may be used as the identified converted value. Thus, the conversion value is a number from 0 to 9.
In the embodiment of the application, the total number of the conversion values is a set value, so that under the condition of mass users, only the corresponding relation between the conversion values and the available domain names is stored. Because the corresponding relation between the conversion value and the available domain name is consistent with the number of the conversion values, the total number of the conversion values can be controlled within a small number, so that the number of the corresponding relation between the conversion value and the available domain name is the same as the total number of the conversion values, and the occupied storage space is small. Therefore, the corresponding relation between the conversion value and the available domain name can be stored in the cache, so that when the available domain name is distributed to the access terminal, the corresponding relation can be directly searched from the cache, and the domain name distribution speed is ensured. The process of calculating the access terminal identification to obtain the conversion value consumes less time and less memory, and can ensure higher domain name distribution efficiency.
In other embodiments, the IP address may be converted to the converted value in other manners, such as by using the last bit of the IP address as the identified converted value.
In this embodiment, the hash code may be an Integer class hash code.
In other embodiments, when the identifier of the access terminal is other kinds of identifiers, the hash code of the identified Object class or the hash code of the String class can be calculated by using a hash algorithm.
In one embodiment, before looking up the available domain name corresponding to the identified conversion value, the domain name assignment method further comprises: and setting the corresponding relation between the available domain name and the conversion value.
In the embodiment of the present application, the corresponding relationship between the available domain name and the conversion value is set, and a corresponding available domain name can be set for each conversion value, so that the available domain name can be acquired under the condition that the conversion value is known. In the correspondence, the conversion value may be non-repetitive, and the available domain name may be repetitive. That is, there may be cases where more than two conversion values correspond to one available domain name.
In one embodiment, setting the correspondence between the available domain name and the conversion value includes:
a domain name list is established, each transition value in the domain name list corresponding to an available domain name. Therefore, the conversion value obtained by the identifier of the access terminal by adopting the preset algorithm can be used for searching the corresponding available domain name in the preset corresponding relation.
In this embodiment, the domain name list may include a set number of entries, where each entry corresponds to a conversion value, and each conversion value corresponds to an available domain name. The present application is not limited to this case, and more than two entries may correspond to the same available domain name.
In one embodiment, as shown in fig. 2, establishing the domain name list further includes:
step 201: if the number of the available domain names is less than the total number of the conversion values in the domain name list, arranging the available domain names;
step 202: establishing a corresponding relation between the arranged available domain names and each conversion value in sequence;
step 203: and when the available domain names are used up and residual conversion values which do not establish the corresponding relation with the available domain names exist, establishing the corresponding relation between the arranged available domain names and the residual conversion values in sequence.
In this embodiment, the available domain names are arranged in a certain order, and then the available domain names are sequentially associated with the conversion values; establishing a corresponding relation between a first one of the arranged available domain names and a first conversion value; the second of the ranked available domain names is mapped … … to the second converted value until the last available domain name. And if the arranged domain names are used up and conversion values of the available domain names which do not correspond to the domain names still exist, recycling the arranged available domain names. Specifically, for example, if there are 5 available domain names and 10 conversion values are preset, the 5 available domain names are arranged, and the arranged 5 available domain names sequentially establish a corresponding relationship with the first 5 conversion values and the last 5 conversion values. Thus, the first conversion value and the sixth conversion value correspond to the first arranged available domain name, the second conversion value and the seventh conversion value correspond to the second arranged available domain name, and so on, and the fifth conversion value and the tenth conversion value correspond to the fifth arranged available domain name.
In other embodiments, as shown in fig. 3, one example of establishing a list of domain names may include:
step 301: all available domain names for a web site are stored in a set. For example, if a website has 6 available domain names, the 6 available domain names for the website are put into a set.
Step 302: and judging whether a conversion value which does not establish a corresponding relation with the available domain name exists.
Step 303: it is determined whether there is a domain name available in the set.
If there is an available domain name in the set and there is a conversion value that does not establish a correspondence with the available domain name, step 304 is executed. If there is no available domain name in the set and there is a conversion value that does not establish a correspondence relationship with the available domain name, then return to step 301.
For example, there are 10 conversion values that need to establish a correspondence relationship with an available domain name, and assuming that the number of conversion values that do not establish a correspondence relationship with an available domain name is 2, there are conversion values that establish a correspondence relationship with an available domain name.
Step 304: if the set has an available domain name and a conversion value which does not establish a corresponding relationship with the available domain name exists, taking out one available domain name in the set and establishing a corresponding relationship with the conversion value which does not establish a corresponding relationship with the available domain name.
For example, if there are 6 available domain names in the set, one available domain name is taken out of the set, and 5 available domain names remain.
Step 302 and step 303 may be executed without any sequence or in any sequence. And if the conversion value which does not establish the corresponding relation with the available domain name does not exist, ending the process, and finishing the establishment of the corresponding relation between the conversion value and the available domain name.
In one embodiment, the access request further includes a website address requesting access; the domain name allocation method further comprises the following steps: one or more available domain names included in the web address are obtained.
In this embodiment, the number of available domain names is generally multiple.
In one embodiment, as shown in fig. 4, the domain name allocation method further includes:
step 401: detecting shielded domain names in the available domain names;
step 402: if an unmasked new domain name other than the available domain name exists, replacing the masked domain name with the new domain name;
step 403: if no new domain name exists, replacing the masked domain name by an unmasked domain name in the available domain names.
In this embodiment, after an available domain name has been used for a period of time, there may be a masked condition. For example, the available domain names may be periodically detected by a third party tool to find masked domain names. If an unmasked new domain name other than the available domain name exists, the new domain name can access the target website, and the corresponding relation between the new domain name and the conversion value originally corresponding to the masked domain name is established. For example, the correspondence between the new domain name and a certain conversion value is stored in the domain name list. And if the newly generated available domain name does not exist, selecting one available domain name from the rest available domain names, and establishing a corresponding relation with the originally corresponding conversion value of the shielded domain name.
In this embodiment, if the original available domain name is masked and there is no unmasked new domain name other than the available domain name, one of the available domain names that is unmasked and has a smaller number of corresponding conversion values is used to replace the masked domain name.
In this embodiment, the available domain name may be detected according to a set detection period. The detection mode may specifically be that the detected available domain name is used to access the website, and whether the available domain name is shielded is determined according to the access result.
In this embodiment, it may be preferentially determined whether an unmasked new domain name other than the available domain names exists, and if not, one unmasked domain name in the available domain names is used to replace the masked domain name.
In one specific example, the list of available domain names is shown in table 1, and the available domain names include 5, i.e., available domain name 1, available domain name 2, available domain name 3, available domain name 4, and available domain name 5. The number of conversion values is set to 10, and is 0 to 9. There should be 10 entries in the domain name list. The conversion values 0-4 correspond to the available domain names 1-5 in sequence, and the conversion values 5-9 correspond to the available domain names 1-5 in sequence.
Converted value Available domain name
0 Available Domain name 1
1 Available Domain name 2
2 Available domain name 3
3 Available Domain name 4
4 Available Domain name 5
5 Available Domain name 1
6 Available Domain name 2
7 Available domain name 3
8 Available Domain name 4
9 Available Domain name 5
TABLE 1
In other embodiments, the available domain names may not be arranged, and if the number of the available domain names is smaller than the number of the conversion values, a correspondence between the available domain names and the conversion values is randomly established, and the number of the conversion values corresponding to each domain name is as average as possible when the correspondence is established.
In another specific example, as shown in table 2, if available domain name 1 is masked and there is a newly generated available domain name 6, then available domain name 1 will be replaced with available domain name 6 such that the transition values 0 and 5 correspond to available domain name 6.
Converted value Available domain name
0 Available Domain name 6
1 Available Domain name 2
2 Available domain name 3
3 Available Domain name 4
4 Available Domain name 5
5 Available Domain name 6
6 Available Domain name 2
7 Available domain name 3
8 Available Domain name 4
9 Available Domain name 5
TABLE 2
In another specific example, as shown in table 3 below, if the available domain name 1 is masked and there is no newly generated available domain name, then one of the available domain names 2-5 is selected, specifically, for example, the available domain name 2, so that the conversion values 0 and 5 correspond to the available domain name 2.
Figure BDA0002390010690000111
Figure BDA0002390010690000121
TABLE 3
In another specific example, as shown in table 4 below, if the available domain name 1 is masked, there is no newly generated available domain name, and the available domain name corresponds to two conversion values in the original table 1, two available domain names are selected from the available domain names 2-5, specifically, for example, the available domain name 2 and the available domain name 3, so that the conversion values 0 and 5 correspond to the available domain name 2 and the available domain name 3, respectively.
Converted value Available domain name
0 Available Domain name 2
1 Available Domain name 2
2 Available domain name 3
3 Available Domain name 4
4 Available Domain name 5
5 Available domain name 3
6 Available Domain name 2
7 Available domain name 3
8 Available Domain name 4
9 Available Domain name 5
TABLE 4
An embodiment of the present application further provides a domain name allocating apparatus, as shown in fig. 5, a domain name allocating apparatus 500 includes:
the access request receiving module 501: the access terminal is used for receiving an access request from the access terminal, wherein the access request comprises an identifier of the access terminal;
the conversion module 502: the system comprises a mark conversion module, a mark conversion module and a mark conversion module, wherein the mark conversion module is used for converting the mark through a preset algorithm to obtain a conversion value of the mark;
the lookup module 503: the domain name conversion module is used for searching an available domain name corresponding to the conversion value of the identification in the corresponding relation between the available domain name and the conversion value;
the assignment module 504: for assigning an available domain name corresponding to the identified conversion value to the access terminal.
In one embodiment, the identifier of the access terminal is an IP address of the access terminal, and the translation module includes:
a hash calculation unit: a hash code for calculating the IP address using a hash algorithm;
an absolute value calculation unit: calculating the absolute value of the remainder obtained by dividing the hash code by the total number of the conversion values;
the absolute value calculation unit is further configured to: the absolute value is taken as the conversion value of the identification.
In one embodiment, as shown in fig. 6, the domain name assigning apparatus 500 further includes:
the correspondence setting module 601: and the method is used for setting the corresponding relation between the available domain name and the conversion value.
In one embodiment, the correspondence setting module is further configured to:
a domain name list is established, each transition value in the domain name list corresponding to an available domain name.
In one embodiment, the correspondence setting module further includes:
an arrangement unit: the method comprises the steps of arranging the available domain names if the number of the available domain names is less than the total number of conversion values in a domain name list;
a corresponding unit: the domain name conversion device is used for establishing a corresponding relation between the arranged available domain names and each conversion value in sequence;
the corresponding unit is further configured to: and when the available domain names are used up and residual conversion values which do not establish the corresponding relation with the available domain names exist, establishing the corresponding relation between the arranged available domain names and the residual conversion values in sequence.
In one embodiment, as shown in fig. 7, the access request further includes a website address requested to be accessed; the domain name assigning apparatus further includes:
the available domain name acquisition module 701: for obtaining one or more available domain names comprised by the web site.
In one embodiment, as shown in fig. 8, the domain name assigning apparatus further includes:
the detection module 801: the method comprises the steps of detecting a shielded domain name in available domain names;
the first replacement module 802: the method comprises the steps of replacing a shielded domain name with a new domain name if an unmasked new domain name other than an available domain name exists;
second replacement module 803: and if the new domain name does not exist, replacing the masked domain name by an unmasked domain name in the available domain names.
The functions of each module in each apparatus in the embodiments of the present invention may refer to the corresponding description in the above method, and are not described herein again.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 9 is a block diagram of an electronic device according to a domain name assignment method according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 9, the electronic apparatus includes: one or more processors 901, memory 902, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display Graphical information for a Graphical User Interface (GUI) on an external input/output device, such as a display device coupled to the Interface. In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 9 illustrates an example of a processor 901.
Memory 902 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the domain name assignment method provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the domain name assignment method provided by the present application.
The memory 902, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the domain name assignment method in the embodiments of the present application (for example, the access request receiving module 501, the converting module 502, the searching module 503, and the assignment module 504 shown in fig. 5). The processor 901 executes various functional applications of the server and data processing, i.e., implements the domain name assignment method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the domain name assignment electronic device, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 902 may optionally include memory located remotely from processor 901, which may be connected to the domain name assignment electronics over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the domain name assignment method may further include: an input device 903 and an output device 904. The processor 901, the memory 902, the input device 903 and the output device 904 may be connected by a bus or other means, and fig. 9 illustrates the connection by a bus as an example.
The input device 903 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the domain name assignment electronics, such as a touch screen, keypad, mouse, track pad, touch pad, pointer, one or more mouse buttons, track ball, joystick, or other input device. The output devices 904 may include a display device, auxiliary lighting devices (e.g., LEDs), tactile feedback devices (e.g., vibrating motors), and the like. The Display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) Display, and a plasma Display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, Integrated circuitry, Application Specific Integrated Circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" can be, but are not limited to, any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor. Such computer-readable signals may take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
The "machine-readable medium" and the "computer-readable medium" may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring virtual machine allocation request information from storage equipment in communication connection; determining a physical machine group from a predetermined physical machine group according to the virtual machine allocation request information; determining at least one physical machine from the determined physical cluster; sending an instruction to create a virtual machine to the determined at least one physical machine.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (Cathode Ray Tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A domain name assignment method, comprising:
receiving an access request from an access terminal, wherein the access request comprises an identifier of the access terminal;
converting the identifier through a preset algorithm to obtain a conversion value of the identifier;
searching an available domain name corresponding to the conversion value of the identifier in the corresponding relation between the available domain name and the conversion value;
and distributing the available domain name corresponding to the identified conversion value to the access terminal.
2. The method according to claim 1, wherein the identification of the access terminal is an IP address of the access terminal, and the converting of the identification by a preset algorithm to obtain a converted value of the identification comprises:
calculating a hash code of the IP address by using a hash algorithm;
calculating the absolute value of a remainder obtained by dividing the hash code by the total number of the conversion values;
and taking the absolute value as a conversion value of the identifier.
3. The method of claim 1, wherein prior to finding an available domain name corresponding to the identified conversion value, further comprising:
and setting the corresponding relation between the available domain name and the conversion value.
4. The method according to claim 3, wherein setting the correspondence between the available domain name and the conversion value comprises:
establishing a domain name list, wherein each conversion value in the domain name list corresponds to one available domain name.
5. The method of claim 4, wherein establishing a list of domain names further comprises:
if the number of the available domain names is smaller than the total number of conversion values in the domain name list, arranging the available domain names;
establishing a corresponding relation between the arranged available domain names and each conversion value in sequence;
and when the available domain names are used up and residual conversion values which do not establish the corresponding relation with the available domain names exist, establishing the corresponding relation between the arranged available domain names and the residual conversion values in sequence.
6. The method according to claim 1, wherein the access request further includes a website address requesting access; the method further comprises the following steps:
and acquiring one or more available domain names included in the website.
7. The method according to any one of claims 1 to 6, further comprising:
detecting shielded domain names in the available domain names;
if an unmasked new domain name other than the available domain name exists, replacing the masked domain name with the new domain name;
and if the new domain name does not exist, replacing the shielded domain name by using an unmasked domain name in the available domain names.
8. A domain name assigning apparatus, comprising:
an access request receiving module: the system comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving an access request from an access terminal, and the access request comprises an identifier of the access terminal;
a conversion module: the system comprises a mark, a conversion module and a control module, wherein the mark is used for converting the mark through a preset algorithm to obtain a conversion value of the mark;
a searching module: the domain name conversion module is used for searching an available domain name corresponding to the conversion value of the identifier in the corresponding relation between the available domain name and the conversion value;
a distribution module: and the domain name is used for allocating the available domain name corresponding to the identified conversion value to the access terminal.
9. The apparatus of claim 8, wherein the identifier of the access terminal is an IP address of the access terminal, and the translation module comprises:
a hash calculation unit: a hash code for calculating the IP address using a hash algorithm;
an absolute value calculation unit: calculating an absolute value of a remainder obtained by dividing the hash code by a total number of conversion values;
the absolute value calculation unit is further configured to: and taking the absolute value as a conversion value of the identifier.
10. The apparatus of claim 8, further comprising:
a corresponding relation setting module: and the conversion value is used for setting the corresponding relation between the available domain name and the conversion value.
11. The apparatus according to claim 10, wherein the correspondence setting module is further configured to:
establishing a domain name list, wherein each conversion value in the domain name list corresponds to one available domain name.
12. The apparatus according to claim 11, wherein the correspondence setting module further comprises:
an arrangement unit: the domain name list is used for listing the available domain names if the number of the available domain names is less than the total number of conversion values in the domain name list;
a corresponding unit: the domain name conversion module is used for establishing a corresponding relation between the arranged available domain names and each conversion value in sequence;
the corresponding unit is further configured to: and when the available domain names are used up and residual conversion values which do not establish the corresponding relation with the available domain names exist, establishing the corresponding relation between the arranged available domain names and the residual conversion values in sequence.
13. The apparatus according to claim 8, wherein the access request further includes a website address requesting access; the device further comprises:
available domain name acquisition module: for obtaining one or more available domain names comprised by said web address.
14. The apparatus of any one of claims 8 to 13, further comprising:
a detection module: the device is used for detecting the shielded domain name in the available domain names;
a first replacement module: if an unmasked new domain name other than the available domain name exists, replacing the masked domain name with the new domain name;
a second replacement module: and if the new domain name does not exist, replacing the masked domain name with an unmasked domain name in the available domain names.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202010111056.XA 2020-02-24 2020-02-24 Domain name assignment method, device, equipment and computer readable storage medium Active CN111935327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010111056.XA CN111935327B (en) 2020-02-24 2020-02-24 Domain name assignment method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010111056.XA CN111935327B (en) 2020-02-24 2020-02-24 Domain name assignment method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111935327A true CN111935327A (en) 2020-11-13
CN111935327B CN111935327B (en) 2023-07-25

Family

ID=73316149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010111056.XA Active CN111935327B (en) 2020-02-24 2020-02-24 Domain name assignment method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111935327B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115987813A (en) * 2023-03-13 2023-04-18 北京集度科技有限公司 Domain allocation device, method and system and intelligent vehicle

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100161760A1 (en) * 2008-12-18 2010-06-24 At&T Corp. Systems and Methods for Determining the Location of a Request on a Content Delivery Network
CN103384993A (en) * 2012-12-14 2013-11-06 华为技术有限公司 Redirection method of visiting web pages by user equipment, gateway and server
CN103428179A (en) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 Method, system and device for logging into multi-domain-name website
US20150058330A1 (en) * 2013-08-01 2015-02-26 Go Daddy Operating Company, LLC Methods and systems for recommending packages of domain names for registration
US20170060632A1 (en) * 2015-09-02 2017-03-02 Ciena Corporation Data plane resource allocation
WO2018233140A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Domain name resolution apparatus and method and computer readable storage medium
CN110213398A (en) * 2019-05-30 2019-09-06 腾讯科技(深圳)有限公司 Alias management method, device, server and storage medium
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN110809070A (en) * 2019-11-12 2020-02-18 睿哲科技股份有限公司 Website domain name resolution record processing method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100161760A1 (en) * 2008-12-18 2010-06-24 At&T Corp. Systems and Methods for Determining the Location of a Request on a Content Delivery Network
CN103428179A (en) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 Method, system and device for logging into multi-domain-name website
CN103384993A (en) * 2012-12-14 2013-11-06 华为技术有限公司 Redirection method of visiting web pages by user equipment, gateway and server
US20150058330A1 (en) * 2013-08-01 2015-02-26 Go Daddy Operating Company, LLC Methods and systems for recommending packages of domain names for registration
US20170060632A1 (en) * 2015-09-02 2017-03-02 Ciena Corporation Data plane resource allocation
WO2018233140A1 (en) * 2017-06-24 2018-12-27 平安科技(深圳)有限公司 Domain name resolution apparatus and method and computer readable storage medium
CN110213398A (en) * 2019-05-30 2019-09-06 腾讯科技(深圳)有限公司 Alias management method, device, server and storage medium
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN110809070A (en) * 2019-11-12 2020-02-18 睿哲科技股份有限公司 Website domain name resolution record processing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115987813A (en) * 2023-03-13 2023-04-18 北京集度科技有限公司 Domain allocation device, method and system and intelligent vehicle
CN115987813B (en) * 2023-03-13 2023-05-30 北京集度科技有限公司 Domain distribution device, method and system and intelligent vehicle

Also Published As

Publication number Publication date
CN111935327B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
US10333975B2 (en) Enhanced computing system security using a secure browser
US9342376B2 (en) Method, system, and device for dynamic energy efficient job scheduling in a cloud computing environment
KR102354803B1 (en) User apparatus for managing web application and method therefor
US11516312B2 (en) Kubernetes as a distributed operating system for multitenancy/multiuser
CN109995881B (en) Load balancing method and device of cache server
CN111694646A (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
US10790862B2 (en) Cache index mapping
CN111259060B (en) Data query method and device
US8903871B2 (en) Dynamic management of log persistence
US11010307B2 (en) Cache management
US10237233B2 (en) Allocating identifiers with minimal fragmentation
CN115438016A (en) Dynamic fragmentation method, system, medium and device in distributed object storage
US10237184B2 (en) Resource management system
CN116848517A (en) Cache indexing using data addresses based on data fingerprints
CN111935327B (en) Domain name assignment method, device, equipment and computer readable storage medium
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
US10193965B2 (en) Management server and operation method thereof and server system
US11233847B1 (en) Management of allocated computing resources in networked environment
CN109088913B (en) Method for requesting data and load balancing server
US10887381B1 (en) Management of allocated computing resources in networked environment
CN111782834A (en) Image retrieval method, device, equipment and computer readable storage medium
US10846242B1 (en) Configurable way allocation for cache
US10769030B2 (en) System and method for improved cache performance
CN115016863A (en) Method and device for improving first screen performance
CN114090612A (en) Object allocation method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant