HK40083053B - Domain name resolution method, apparatus, electronic device, and storage medium - Google Patents
Domain name resolution method, apparatus, electronic device, and storage medium Download PDFInfo
- Publication number
- HK40083053B HK40083053B HK42023072093.0A HK42023072093A HK40083053B HK 40083053 B HK40083053 B HK 40083053B HK 42023072093 A HK42023072093 A HK 42023072093A HK 40083053 B HK40083053 B HK 40083053B
- Authority
- HK
- Hong Kong
- Prior art keywords
- domain name
- target
- address
- database
- information
- Prior art date
Links
Description
背景技术Background Technology
随着科学技术的进步,互联网技术得到了快速的发展,而在互联网技术中,域名解析技术是进行站点或资源访问的重要基础。所谓域名解析技术,是指域名与互联网协议(Internet Protocol,IP)地址之间的一种转换技术;例如,将客户端输入的域名“example.com”解析为对应的IP地址“1.1.1.1”,进而,客户端可以利用IP地址访问域名对应的网站。With the advancement of science and technology, internet technology has developed rapidly. Among internet technologies, domain name resolution technology is a crucial foundation for accessing websites or resources. Domain name resolution technology refers to the conversion technology between domain names and Internet Protocol (IP) addresses; for example, resolving the domain name "example.com" entered by a client to the corresponding IP address "1.1.1.1", the client can then use the IP address to access the website corresponding to the domain name.
相关技术中,各个对象可以在公网环境下,申请注册内部网络,每个内部网络对应配置有至少一个域名服务器(Domain Name Server,DNS),用于在相应的内部网络中提供针对特定的业务域名的域名解析服务。具体的,每台域名服务器在提供域名解析服务之前,需要预先将对应的各个业务域名和各个IP地址之间的映射关系,配置在该域名服务器上,这样,当该域名服务器接收到解析请求时,便会基于已配置的映射关系进行业务域名和IP地址的转换。In related technologies, various entities can apply for registration of internal networks in a public network environment. Each internal network is configured with at least one Domain Name Server (DNS) to provide domain name resolution services for specific business domain names within the corresponding internal network. Specifically, before providing domain name resolution services, each DNS server needs to pre-configure the mapping relationship between each corresponding business domain name and each IP address on the DNS server. Thus, when the DNS server receives a resolution request, it will perform the conversion between the business domain name and the IP address based on the configured mapping relationship.
然而,基于前述的方式,针对不同的业务域名,各个内部网络需要分别搭建相应的域名服务器以提供域名解析服务,这便在一定程度上增加了网络运维复杂度,提升了网络运维成本,不利于大规模环境下的域名解析管理。However, based on the aforementioned approach, each internal network needs to build its own domain name server to provide domain name resolution services for different business domain names. This increases the complexity and cost of network operation and maintenance to some extent, and is not conducive to domain name resolution management in a large-scale environment.
发明内容Summary of the Invention
本申请实施例提供一种域名解析方法、装置、电子设备和存储介质,用于降低网络运维成本。This application provides a domain name resolution method, apparatus, electronic device, and storage medium to reduce network operation and maintenance costs.
一方面,提供一种域名解析方法,应用于公网服务器,所述方法包括:On the one hand, a domain name resolution method is provided, applied to public network servers, the method comprising:
接收第一对象发送的域名解析请求,所述域名解析请求中携带有目标域名信息;Receive a domain name resolution request sent by a first object, wherein the domain name resolution request carries target domain name information;
基于所述目标域名信息,在数据库中查找是否存在与所述目标域名信息关联的目标IP地址,所述数据库中记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址;Based on the target domain name information, search the database to see if there is a target IP address associated with the target domain name information. The database records at least one domain name and associated IP address corresponding to each internal network established in the public network.
当确定所述数据库中存在所述目标IP地址时,向所述第一对象反馈所述目标IP地址。When it is determined that the target IP address exists in the database, the target IP address is fed back to the first object.
一方面,提供一种域名解析装置,应用于公网服务器,所述装置包括:On the one hand, a domain name resolution device is provided for use on a public network server, the device comprising:
接收单元,用于接收第一对象发送的域名解析请求,所述域名解析请求中携带有目标域名信息;A receiving unit is configured to receive a domain name resolution request sent by a first object, wherein the domain name resolution request carries target domain name information;
处理单元,用于基于所述目标域名信息,在数据库中查找是否存在与所述目标域名信息关联的目标IP地址,所述数据库中记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址;The processing unit is used to search in the database for a target IP address associated with the target domain name information based on the target domain name information. The database records at least one domain name and associated IP address for each internal network established in the public network.
反馈单元,用于当确定所述数据库中存在所述目标IP地址时,向所述第一对象反馈所述目标IP地址。The feedback unit is used to feed back the target IP address to the first object when it is determined that the target IP address exists in the database.
可选的,在接收所述域名解析请求之后,在接收所述域名解析请求之后,所述处理单元还用于:Optionally, after receiving the domain name resolution request, the processing unit is further configured to:
针对预设时间段,统计接收到携带所述目标域名信息的其他域名解析请求的累计次数;For a preset time period, the cumulative number of other domain name resolution requests carrying the target domain name information received is counted;
若确定所述预设时间段对应的所述累计次数达到设定阈值,则向所述第一对象发送提示信息,所述提示信息用于提示所述第一对象针对所述接口地址进行重复性检查。If it is determined that the cumulative number of times corresponding to the preset time period reaches a set threshold, a prompt message is sent to the first object. The prompt message is used to prompt the first object to perform a duplicate check on the interface address.
一方面,提供的一种电子设备,包括处理器和存储器,其中,所述存储器存储有程序代码,当所述程序代码被所述处理器执行时,使得所述处理器执行上述域名解析方法。On the one hand, an electronic device is provided, including a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the aforementioned domain name resolution method.
一方面,提供一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。电子设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行上述域名解析方法。On one hand, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned domain name resolution method.
本申请实施例提供一种计算机可读存储介质,其包括程序代码,当所述程序产品在电子设备上运行时,所述程序代码用于使所述电子设备执行上述任意一种域名解析方法的步骤。This application provides a computer-readable storage medium including program code. When the program product is run on an electronic device, the program code is used to cause the electronic device to perform the steps of any of the above-described domain name resolution methods.
本申请有益效果如下:The beneficial effects of this application are as follows:
本申请实施例提供的域名解析方法、装置、电子设备和存储介质,由于公网服务器对应的数据库中记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址,因此,公网服务器可以直接获得目标域名信息关联的目标IP地址,并向第一对象返回该目标IP地址,从而无需在各个内部网络内自行搭建域名服务器,即减少了域名服务器的搭建和维护,进而有效降低了网络构建成本,以及网络运维成本。The domain name resolution method, apparatus, electronic device, and storage medium provided in this application embodiment have the following advantages: since the database corresponding to the public network server records at least one domain name information and associated IP address corresponding to each internal network established in the public network, the public network server can directly obtain the target IP address associated with the target domain name information and return the target IP address to the first object. This eliminates the need to build domain name servers in each internal network, thereby reducing the construction and maintenance of domain name servers and effectively reducing network construction costs and network operation and maintenance costs.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings.
附图说明Attached Figure Description
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
图1为相关技术中的一种域名解析的示意图;Figure 1 is a schematic diagram of a domain name resolution method in related technologies;
图2为本申请实施例中的一种应用场景的一个可选的示意图;Figure 2 is a schematic diagram of an optional application scenario in an embodiment of this application;
图3为本申请实施例中的一种确定数据库的方法流程示意图;Figure 3 is a schematic flowchart of a method for determining a database in an embodiment of this application;
图4为本申请实施例中的对象的标识和接口地址关联存储的示意图;Figure 4 is a schematic diagram of the associated storage of object identifiers and interface addresses in an embodiment of this application;
图5为本申请实施例中的对象的标识和接口地址关联存储的另一示意图;Figure 5 is another schematic diagram of the associated storage of object identifiers and interface addresses in an embodiment of this application;
图6为本申请实施例中的包括第一绑定关系的数据库的示意图;Figure 6 is a schematic diagram of a database including a first binding relationship in an embodiment of this application;
图7为本申请实施例中的配置域名配置信息的显示界面的示意图;Figure 7 is a schematic diagram of the display interface for configuring domain name information in an embodiment of this application;
图8为本申请实施例中的包括第二绑定关系的数据库的示意图;Figure 8 is a schematic diagram of a database including a second binding relationship in an embodiment of this application;
图9为本申请实施例中的包括第一绑定关系和第二绑定关系的完整数据库的示意图;Figure 9 is a schematic diagram of a complete database including a first binding relationship and a second binding relationship in an embodiment of this application;
图10为本申请实施例中的一种域名解析场景的示意图;Figure 10 is a schematic diagram of a domain name resolution scenario in an embodiment of this application;
图11A为本申请实施例中的一种域名解析方法的方法流程示意图;Figure 11A is a schematic flowchart of a domain name resolution method according to an embodiment of this application;
图11B为本申请实施例中的一种展示累计次数的示意图;Figure 11B is a schematic diagram illustrating the cumulative number of times in an embodiment of this application;
图11C为本申请实施例中的一种展示提示信息的示意图;Figure 11C is a schematic diagram of a display of prompt information in an embodiment of this application;
图12为本申请实施例中的一种域名解析的完整方法流程示意图;Figure 12 is a schematic diagram of a complete domain name resolution method in an embodiment of this application;
图13为本申请实施例中的一种域名解析装置的组成结构示意图;Figure 13 is a schematic diagram of the composition structure of a domain name resolution device in an embodiment of this application;
图14为本申请实施例中的一种电子设备的一个硬件组成结构示意图。Figure 14 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application.
具体实施方式Detailed Implementation
为使本申请的目的、技术方案和优点更加清楚明白,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.
为便于理解本申请实施例提供的技术方案,这里先对本申请实施例使用的一些关键名词进行解释:To facilitate understanding of the technical solutions provided in the embodiments of this application, some key terms used in the embodiments of this application will be explained below:
1、内部网络:内部网络也可以称为内网或局域网,通过一个公共的网关访问因特网。内网的覆盖范围一般是方圆几千米之内,其具备的安装便捷、成本节约、扩展方便等特点使其在各类办公室内运用广泛。1. Internal Network: An internal network, also known as an intranet or local area network, accesses the Internet through a public gateway. The coverage area of an intranet is generally within a radius of several kilometers. Its advantages, such as easy installation, cost-effectiveness, and convenient expansion, make it widely used in various types of offices.
2、公网:公网一般是相对于内网而言的,具体的,基于内网上网的计算机得到的互联网协议(Internet Protocol,IP)地址是因特网上的保留地址,即内网一般是通过一个公共的网关访问因特网;而基于公网上网的计算机得到的IP地址是因特网的公用地址,即公网的计算机和因特网上的其他计算机可随意互相访问。2. Public network: The public network is generally in contrast to the internal network. Specifically, the Internet Protocol (IP) address obtained by a computer accessing the Internet through an internal network is a reserved address on the Internet, meaning that the internal network generally accesses the Internet through a public gateway; while the IP address obtained by a computer accessing the Internet through a public network is a public address on the Internet, meaning that computers on the public network can freely access each other with other computers on the Internet.
3、公有云:一般指第三方提供商为用户提供的能够使用的云,公有云一般可通过因特网使用,公有云的核心属性是共享资源服务。3. Public cloud: Generally refers to a cloud provided by a third-party provider that can be used by users. Public clouds are generally accessible via the Internet, and their core attribute is shared resource service.
4、私有网络:私有网络一般指虚拟私有云(Virtual Private Cloud,VPC),虚拟私有云是公有云上的私有网络,即用户可以自可定义的网络,例如用户可以通过控制台或者应用程序接口(Application Programming Interface,API)自定义私有网络网段、子网网段和路由控制策略,还可以进一步将网络继续划分为多个子网,并在子网内部署应用程序和服务。此外,私有网络可以配置公网网关来访问因特网。4. Private Network: A private network generally refers to a Virtual Private Cloud (VPC). A VPC is a private network on a public cloud, meaning it's a user-defined network. For example, users can customize private network segments, subnet segments, and routing control policies through the console or Application Programming Interface (API). The network can be further divided into multiple subnets, and applications and services can be deployed within each subnet. Furthermore, a private network can be configured with a public gateway to access the Internet.
5、Hosts:一般是指一个系统文件,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”。5. Hosts: This is generally a system file whose function is to establish a database that associates commonly used website domains with their corresponding IP addresses.
6、域名:域名又称网域,一般是由一串用点分隔的名字组成的因特网上某一台计算机或计算机组的名称,用于在数据传输时对计算机的定位标识。6. Domain name: A domain name, also known as a network domain, is generally a name of a computer or group of computers on the Internet consisting of a string of names separated by dots. It is used to locate and identify the computer during data transmission.
7、IP地址:一般指互联网协议地址或者是网际协议地址,具体的,IP地址是IP协议提供的一种统一的地址格式,它为互联网上的每一个网络和每一台主机分配一个逻辑地址,以此来屏蔽物理地址的差异。7. IP address: Generally refers to Internet Protocol address or Internet Protocol address. Specifically, an IP address is a unified address format provided by the IP protocol. It assigns a logical address to every network and every host on the Internet to mask the differences in physical addresses.
目前,参阅图1所示,图1为相关技术中公网环境下,各个内部网络针对域名进行解析时的示意图。具体的,各个内部网络需要各自自行搭建对应的至少一个域名服务器,然后基于在域名服务器中设置其针对的各个业务域名与各个业务域名对应的各个IP地址,从而在接收到域名解析请求中携带的域名信息时,可以通过域名服务器进行解析,从而获得该域名信息对应的IP地址。Currently, referring to Figure 1, which is a schematic diagram of domain name resolution in a public network environment in related technologies, each internal network needs to build at least one corresponding domain name server. Then, based on configuring the domain name server with its respective business domain name and corresponding IP address, when a domain name resolution request is received, the domain name server can resolve the domain name information to obtain the corresponding IP address.
举例来说,内部网络1对应自行搭建一个域名服务器1,然后将业务A的域名,例如该域名为“xxx.zzzzz.com”,与业务A的域名对应的IP地址对应配置在域名服务器1上,内部网络1对应的对象1,向当域名服务器1发送针对业务A的域名的域名解析请求,然后域名服务器1可以基于该域名解析请求中携带的域名信息,确定域名服务器1中是否存在与业务A的域名对应的IP地址,当域名服务器1确定存在业务A的域名对应的IP地址,则将该IP地址反馈给内部网络1对应的对象1。For example, internal network 1 has its own domain name server 1. Then, the domain name of business A, for example, "xxx.zzzzz.com", is configured with the corresponding IP address on domain name server 1. Object 1 of internal network 1 sends a domain name resolution request for business A's domain name to domain name server 1. Then, domain name server 1 can determine whether there is an IP address corresponding to business A's domain name based on the domain name information carried in the domain name resolution request. When domain name server 1 determines that there is an IP address corresponding to business A's domain name, it sends the IP address back to object 1 of internal network 1.
当域名服务器1确定不存在业务A的域名对应的IP地址,则可以首先向根域名服务器发起请求,询问“.com”的域名服务器地址是什么,然后根服务器返回包含“.com”的顶级域名服务器有“a到m”这么多台,从而域名服务器1基于根服务器返回的信息中的多台包括该域名信息的顶级域名服务器中任一台例如a顶级域名服务器发起请求,查询“zzzzz.com”的域名服务器地址是什么,然后该台顶级域名服务器向域名服务器1返回“zzzzz.com”的权威域名服务器有“s1到s4”这些台。进而域名服务器1向其中一台权威域名服务器,例如s1域名服务器发起请求,查询,“xxx.zzzzz.com”的解析值是什么,权威域名服务器返回域名有“fffff”。进一步地,在基于前述从域名服务器1到根域名服务器再到权威域名服务器的查询顺序查询“fffff”的解析值,直到查询到IP地址为止,然后对象1可以获得域名服务器1发送的IP地址。When Domain Name Server 1 determines that there is no IP address corresponding to the domain name of business A, it can first send a request to the root name server to inquire about the address of the name server for ".com". The root server then returns that there are "a to m" top-level name servers containing ".com". Domain Name Server 1 then sends a request to any of the top-level name servers containing the domain name information returned by the root server, for example, top-level name server 'a', to inquire about the address of the name server for "zzzzz.com". This top-level name server then returns to Domain Name Server 1 that there are "s1 to s4" authoritative name servers for "zzzzz.com". Domain Name Server 1 then sends a request to one of these authoritative name servers, for example, domain name server 's1', to inquire about the resolved value of "xxx.zzzzz.com". The authoritative name server returns the domain name "fffff". Further, based on the aforementioned query order from Domain Name Server 1 to the root name server and then to the authoritative name server, the query continues until an IP address is found. Then, object 1 can obtain the IP address sent by Domain Name Server 1.
鉴于此,本申请实施例中,提供了一种新的对域名进行解析的系统架构,在该系统架构中不再对各个内部网络设置各自对应的域名解析服务器,而是基于公网服务器对应的数据库,对应确定域名所对应的IP地址。具体的,公网服务器对应的数据库中,记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址,因此,公网服务器可以基于数据库和域名进行域名解析,从而获得域名对应的IP地址。即有效降低了网络构建成本,以及网络运维成本,还有效提高了对域名进行解析的解析效率。此外,还可以实现在包括多个内部网络的大规模环境下,对多个内部网络分别对应的域名解析的整体管理。Therefore, this application provides a novel system architecture for domain name resolution. This architecture eliminates the need for separate domain name resolution servers for each internal network. Instead, it uses a database on a public network server to determine the IP address corresponding to each domain name. Specifically, the database on the public network server records at least one domain name and its associated IP address for each internal network established on the public network. Therefore, the public network server can perform domain name resolution based on the database and the domain name to obtain the corresponding IP address. This effectively reduces network construction and maintenance costs while significantly improving the efficiency of domain name resolution. Furthermore, it enables comprehensive management of domain name resolution for multiple internal networks in a large-scale environment.
在介绍完本申请实施例的设计思想之后,下面对本申请实施例的技术方案能够适用的应用场景做一些简单介绍,需要说明的是,以下介绍的应用场景仅用于说明本申请实施例而非限定。在具体实施过程中,可以根据实际需要灵活地应用本申请实施例提供的技术方案。After introducing the design concept of the embodiments of this application, the following is a brief introduction to the application scenarios to which the technical solutions of the embodiments of this application can be applied. It should be noted that the application scenarios described below are only for illustrating the embodiments of this application and are not intended to limit the scope. In specific implementation, the technical solutions provided by the embodiments of this application can be flexibly applied according to actual needs.
本申请实施例提供的方案可以适用于大多数域名解析场景中。参阅图2所示,为本申请实施例提供的一种场景示意图,在该场景中可以包括多个终端设备201和公网服务器202,其中,终端设备201-1、终端设备201-2、……、终端101-n中可以被不同的用户使用。The solution provided in this application embodiment can be applied to most domain name resolution scenarios. Referring to Figure 2, which is a schematic diagram of a scenario provided in this application embodiment, the scenario may include multiple terminal devices 201 and a public network server 202, wherein terminal devices 201-1, terminal devices 201-2, ..., terminals 101-n can be used by different users.
以及,在本申请实施例中,用户可以在终端设备201上,登录其在公网中已申请注册的账户,并在登录后通过终端设备向公网服务器202发送域名解析请求。具体的,用户使用的终端设备201所对应的网络可以理解为内部网络,该内部网络可以有多种实现方式,例如:用户使用的终端设备201所连接的办公室的网络,用户使用的终端设备201所连接的家庭的网络,或者,用户使用的终端设备201所连接的私有云网络,该私有云网络为用户使用其对应的账户在公网中已申请的网络。前述的账户可以是个人账户,也可以是公司账户,本申请实施例中对此并不做限制。Furthermore, in this embodiment, the user can log in to their publicly registered account on terminal device 201 and, after logging in, send a domain name resolution request to the public server 202 via the terminal device. Specifically, the network corresponding to the user's terminal device 201 can be understood as an internal network. This internal network can be implemented in various ways, such as: the office network connected to the user's terminal device 201, the home network connected to the user's terminal device 201, or the private cloud network connected to the user's terminal device 201, which is the network that the user has applied for on the public network using their corresponding account. The aforementioned account can be a personal account or a company account, and this embodiment does not impose any restrictions on this.
在后文中将“账户”可以描述为“对象”,例如,第一对象、第二对象等,但需要说明的是,“第一对象”和“第二对象”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。In the following text, "account" may be described as an "object," such as a first object, a second object, etc. However, it should be noted that "first object" and "second object," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data used can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein.
终端设备201例如可以为手机、平板电脑(PAD)、个人计算机(Personal computer,PC)、智能电视、智能车载设备以及可穿戴设备等。其中,每个终端设备101均可以包括一个或多个处理器2011、存储器2012以及与服务器交互的I/O接口2013等。Terminal device 201 can be, for example, a mobile phone, tablet computer (PAD), personal computer (PC), smart TV, smart in-vehicle device, and wearable device. Each terminal device 101 may include one or more processors 2011, memory 2012, and I/O interface 2013 for interacting with the server.
在本申请实施例中,公网服务器202可以是以提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(ContentDelivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器,但并不局限于此。In this embodiment of the application, the public network server 202 may be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms, but is not limited to this.
举例来说,各个用户可以在终端设备201上,登录其在公网中已申请注册的账户,向公网服务器202发送域名解析请求,同样的,公网服务器202会对各个对象发送的域名解析请求进行处理,例如:对象A通过终端设备201-1向公网服务器202发送的域名解析请求,那么公网服务器202会为对该域名解析请求进行处理,并向对象A反馈该域名解析请求中携带的域名信息对应的IP地址。For example, each user can log in to their registered account on the public network on terminal device 201 and send a domain name resolution request to public network server 202. Similarly, public network server 202 will process the domain name resolution requests sent by each object. For example, if object A sends a domain name resolution request to public network server 202 through terminal device 201-1, then public network server 202 will process the domain name resolution request and return the IP address corresponding to the domain name information carried in the domain name resolution request to object A.
其中,终端设备201和公网服务器202之间,以及各个终端设备101之间均可以通过一个或者多个网络203进行直接或间接的通信连接。该网络203可以是有线网络,也可以是无线网络,例如无线网络可以是移动蜂窝网络,或者可以是无线保真(Wireless-Fidelity,WIFI)网络,当然还可以是其他可能的网络,本申请实施例对此不做限制。In this embodiment, terminal device 201 and public network server 202, as well as various terminal devices 101, can communicate directly or indirectly through one or more networks 203. The network 203 can be a wired network or a wireless network. For example, the wireless network can be a mobile cellular network or a Wireless-Fidelity (WIFI) network, or other possible networks. This application embodiment does not limit this.
当然,本申请实施例提供的方法并不限用于图2所示的应用场景中,还可以用于其他可能的应用场景,本申请实施例并不进行限制。对于图2所示的应用场景的各个设备所能实现的功能将在后续的方法实施例中一并进行描述,在此先不过多赘述。Of course, the method provided in this application embodiment is not limited to the application scenario shown in Figure 2, and can also be used in other possible application scenarios. This application embodiment does not impose any limitations. The functions that each device in the application scenario shown in Figure 2 can achieve will be described in subsequent method embodiments, and will not be elaborated on here.
本申请实施例中,在公网服务器中设置有数据库,各个对象均可以向公网服务器申请建立关联关系,并将公网服务器针对各个对象各自建立的关联关系记录在数据库中。In this embodiment of the application, a database is set up in the public network server. Each object can apply to the public network server to establish an association relationship, and the association relationship established by the public network server for each object is recorded in the database.
具体的,本申请实施例中,可以将向公网服务器发送域名解析请求的各个对象称为第一对象,以及将在预处理阶段,向公网服务器申请建立关联关系的各个对象称为第二对象;每个第二对象在申请建立关联关系之后,也可以作为第一对象向公网服务器发送域名解析请求,以及,各个第二对象之外的,未在公网中建立关联关系的其他对象,也可以作为第一对象向公网服务器发送域名解析请求。Specifically, in this embodiment, each object that sends a domain name resolution request to the public network server can be referred to as a first object, and each object that applies to the public network server to establish an association during the preprocessing stage can be referred to as a second object. After applying to establish an association, each second object can also send a domain name resolution request to the public network server as a first object. In addition, other objects that have not established an association in the public network, other than the second objects, can also send a domain name resolution request to the public network server as a first object.
参阅图3所示,本申请实施例中,以一个第二对象为例,对数据库的建立过程进行介绍,具体流程如下:Referring to Figure 3, in this embodiment of the application, the database establishment process is described using a second object as an example. The specific process is as follows:
步骤301:接收第二对象发送的关联关系建立请求,其中,第二对象已在公网中请求建立了相应的内部网络。Step 301: Receive the association establishment request sent by the second object, wherein the second object has already requested to establish the corresponding internal network in the public network.
具体的,当确定第二对象已在公网中请求建立了相应的内部网络,则第二对象可以向公网服务器发送关联关系建立请求,该关联关系建立请求中至少携带第二对象的标识。Specifically, once it is determined that the second object has requested the establishment of the corresponding internal network in the public network, the second object can send an association establishment request to the public network server. The association establishment request must at least carry the identifier of the second object.
步骤302:基于关联关系建立请求,为第二对象分配相应的接口地址,以及为第二对象创建相应的域名解析实例,并生成相应的实例标识;其中,域名解析实例用于对第二对象请求建立的内部网络所对应的域名信息进行解析。Step 302: Based on the association relationship, establish a request, assign a corresponding interface address to the second object, create a corresponding domain name resolution instance for the second object, and generate a corresponding instance identifier; wherein, the domain name resolution instance is used to resolve the domain name information corresponding to the internal network requested by the second object.
在本申请实施例中,公网服务器可以为第二对象分配相应的接口地址,然后,第二对象可以基于公网服务器为其分配的接口地址,向公网服务器发送域名解析请求,从而公网服务器可以对第二对象发送的域名解析请求进行处理;或者,其他第一对象可以从第二对象获得相应的接口地址后,向公网服务器发送域名解析请求,从而公网服务器可以对第一对象发送的域名解析请求进行处理。In this embodiment of the application, the public network server can allocate a corresponding interface address to the second object. Then, the second object can send a domain name resolution request to the public network server based on the interface address allocated to it by the public network server, so that the public network server can process the domain name resolution request sent by the second object; or, other first objects can obtain the corresponding interface address from the second object and send a domain name resolution request to the public network server, so that the public network server can process the domain name resolution request sent by the first objects.
其中,该接口地址可以是弹性公网IP地址(Elastic IP Address,EIP),当然,也可以是其它,本申请实施例中不做限制。The interface address can be an Elastic IP Address (EIP), or other types, which are not limited in this embodiment.
具体的,当公网服务器接收到第二对象发送的建立关联关系请求时,公网服务器可以判断该关联关系建立请求是否合法,当确定该关联关系建立请求合法时,可以基于关联关系建立请求和公网服务器对应的资源池,向第二对象分配相应的接口地址;以及,当第二对象申请撤销关联关系时,公网服务器可以回收该接口地址。Specifically, when the public network server receives a request from the second object to establish a relationship, the public network server can determine whether the relationship establishment request is valid. If the relationship establishment request is valid, the public network server can allocate the corresponding interface address to the second object based on the relationship establishment request and the resource pool corresponding to the public network server. When the second object applies to revoke the relationship, the public network server can reclaim the interface address.
此外,公网服务器在对第二对象进行接口地址的分发和回收时,均可以对第二对象的标识和接口地址进行绑定,并存储于公网服务器对应的数据库中。需要说明的是,对象的标识的表述方式可以包括但不限于字符、汉字、图形或者是其它语言文字,本申请实施例中不做限制。Furthermore, when the public network server distributes and reclaims the interface address of the second object, it can bind the identifier of the second object to the interface address and store it in the corresponding database of the public network server. It should be noted that the representation of the object identifier can include, but is not limited to, characters, Chinese characters, graphics, or other languages and scripts, and is not limited in this embodiment.
在相关技术中,hosts文件仅包括域名与其对应的IP地址,例如参见表1所示,表1为相关技术中的hosts文件的存储示意表:In related technologies, the hosts file only includes domain names and their corresponding IP addresses, as shown in Table 1. Table 1 is a schematic table of the storage of hosts files in related technologies:
表1Table 1
在本申请实施中,可以将第二对象的标识与为第二对象分配的地址以表的形式对应存储,例如,参见表2所示,表2为本申请中的存储示意表:In this application, the identifier of the second object and the address allocated to the second object can be stored in the form of a table. For example, see Table 2, which is a storage illustration table in this application:
表2Table 2
基于表2可知,本申请中可以一个第二对象的标识对应一个接口地址关联存储。As shown in Table 2, in this application, the identifier of a second object can be associated with an interface address for storage.
举例来说,若确定第二对象A的标识表示为ID_a,将第二对象A分配成功的接口地址表示为IP_a,则可以得到的大致为(ID_a,IP_a)的一个数组,并将数组存储进数据库。For example, if the identifier of the second object A is determined to be ID_a, and the interface address to which the second object A is successfully assigned is represented as IP_a, then an array of approximately (ID_a, IP_a) can be obtained, and the array can be stored in the database.
例如,参阅图4所示,数据库中包括第二对象1与其对应的接口地址1、第二对象2与其对应的接口地址2、……、第二对象n1与其对应的接口地址n1,其中,n1为大于1的正整数。For example, as shown in Figure 4, the database includes second object 1 and its corresponding interface address 1, second object 2 and its corresponding interface address 2, ..., second object n1 and its corresponding interface address n1, where n1 is a positive integer greater than 1.
在本申请实施例中,公网服务器可以为一个第二对象分配一个接口地址,且该第二对象还可以将该接口地址分配给与之关联的其它对象,从而其它对象可以基于该接口地址实现域名解析的处理。In this embodiment of the application, a public network server can assign an interface address to a second object, and the second object can also assign the interface address to other objects associated with it, so that other objects can perform domain name resolution based on the interface address.
例如,将第二对象的标识、第二对象的子对象的标识,以及为第二对象分配的地址对应存储,例如,参见表3所示,表3为本申请中的又一存储示意表:For example, the identifier of the second object, the identifier of the sub-objects of the second object, and the address allocated to the second object are stored accordingly. For example, see Table 3, which is another storage illustration table in this application:
表3Table 3
又如,参阅图5所示,数据库中包括第二对象1与其对应的接口地址1、第二对象2与其对应的接口地址1、……、第二对象n1与其对应的接口地址n1。其中,第二对象1将其对应的接口地址1可以发送给第二对象1的子对象1-01、第二对象1的子对象1-02……第二对象1的子对象1-0m1;第二对象n1将其对应的接口地址n1,可以发送给第二对象n1的子对象n1-01、第二对象n1的子对象n1-02,m1和n1均为大于1的正整数。For example, referring to Figure 5, the database includes second object 1 and its corresponding interface address 1, second object 2 and its corresponding interface address 1, ..., second object n1 and its corresponding interface address n1. Second object 1 can send its corresponding interface address 1 to its child object 1-01, child object 1-02, ..., child object 1-0m1; second object n1 can send its corresponding interface address n1 to its child object n1-01, child object n1-02, where m1 and n1 are both positive integers greater than 1.
在本申请实施例中,公网服务器还可以用于为第二对象创建应的域名解析实例,并生成相应的实例标识;其中,域名解析实例用于对第二对象请求建立的内部网络所对应的域名信息进行解析。In this embodiment of the application, the public network server can also be used to create a corresponding domain name resolution instance for the second object and generate a corresponding instance identifier; wherein, the domain name resolution instance is used to resolve the domain name information corresponding to the internal network requested by the second object.
具体的,实例标识可以是与对象的标识含相关字符的标识,例如对象的标识表示为:ID_w,则实例标识可以表示为:Cloud_HostsID_W,当然,实例标识还可以是基于其它的标识确定方式确定,且标识可以是英文字母、数字以及其它字符,本申请实施例中不做限定。Specifically, the instance identifier can be an identifier containing characters related to the object identifier. For example, if the object identifier is represented as ID_w, then the instance identifier can be represented as Cloud_HostsID_W. Of course, the instance identifier can also be determined based on other identifier determination methods, and the identifier can be English letters, numbers, and other characters. This application embodiment does not impose any limitations.
步骤303:将第二对象对应的接口地址与实例标识进行关联绑定,确定第一绑定关系,并将第一绑定关系存储于数据库中。Step 303: Associate and bind the interface address corresponding to the second object with the instance identifier to determine the first binding relationship, and store the first binding relationship in the database.
具体的,公网服务器可以将第二对象对应的接口地址与实例标识进行关联绑定,确定第一绑定关系,并将第一绑定关系存储于数据库中。Specifically, the public server can associate and bind the interface address corresponding to the second object with the instance identifier to determine the first binding relationship, and store the first binding relationship in the database.
可见,当获得第二对象对应的接口地址之后,可以基于接口地址对应确定实例标识,从而可以调用域名解析实例,这样的基于标识的关联触发,可以更简单快速的确定对应的实例。As can be seen, once the interface address corresponding to the second object is obtained, the instance identifier can be determined based on the interface address, and the domain name resolution instance can be called. This identifier-based association triggering can more easily and quickly determine the corresponding instance.
具体的,公网服务器可以将申请建立关联关系的所有对象所对应的第一绑定关系存储于数据库中,为了便于数据库的管理,可以将任意一条第一绑定关系中的实例标识和接口地址以数组的方式存储于数据。Specifically, the public server can store the first binding relationship corresponding to all objects that have applied to establish an association in the database. To facilitate database management, the instance identifier and interface address in any first binding relationship can be stored in the database as an array.
举例来讲,第1条第一绑定关系可以表示为(IP_c,Cloud_HostsID_C),第2条第一绑定关系可以表示为(IP_t,Cloud_HostsID_T),则数据库中保存为:IP_c,Cloud_HostsID_C);(IP_t,Cloud_HostsID_T)。For example, the first binding relationship can be represented as (IP_c, Cloud_HostsID_C), and the second binding relationship can be represented as (IP_t, Cloud_HostsID_T). In the database, it is stored as: (IP_c, Cloud_HostsID_C); (IP_t, Cloud_HostsID_T).
例如,请参阅图6所示,数据库中包括第二对象1对应的第一绑定关系1、第二对象2对应的第一绑定关系2、……、第二对象n2对应的第一绑定关系n2。其中,第一绑定关系1为接口地址1和实例标识1进行绑定所确定的关系、第一绑定关系2为对接口地址2和实例标识2进行绑定所确定的关系,以及第一绑定关系n2为接口地址n2和实例标识n2进行绑定所确定的关系,n2为大于1的正整数。For example, as shown in Figure 6, the database includes a first binding relationship 1 corresponding to the second object 1, a first binding relationship 2 corresponding to the second object 2, ..., a first binding relationship n2 corresponding to the second object n2. Here, first binding relationship 1 is the relationship determined by binding interface address 1 and instance identifier 1; first binding relationship 2 is the relationship determined by binding interface address 2 and instance identifier 2; and first binding relationship n2 is the relationship determined by binding interface address n2 and instance identifier n2, where n2 is a positive integer greater than 1.
步骤304:接收第二对象发送的域名配置信息,域名配置信息至少包括相应的内部网络对应的至少一个域名信息以及每个域名信息关联的IP地址。Step 304: Receive the domain name configuration information sent by the second object. The domain name configuration information includes at least one domain name information corresponding to the internal network and the IP address associated with each domain name information.
具体的,当确定第一绑定关系之后,公网服务器还可以接收第二对象发送的域名配置信息,然后将第二对象对应的实例标识与域名配置信息进行关联绑定,确定第二绑定关系,并将第二绑定关系存储于数据库中。Specifically, after the first binding relationship is determined, the public server can also receive the domain name configuration information sent by the second object, then associate and bind the instance identifier corresponding to the second object with the domain name configuration information to determine the second binding relationship, and store the second binding relationship in the database.
具体的,第二对象可以在终端设备上进行域名配置信息的选择,从而公网服务器可以接收第二对象发送的域名配置信息。需要说明的是,选择的方式可以是以单击、双击或者是其它方式,本申请实施例中不做限定。Specifically, the second object can select domain name configuration information on the terminal device, so that the public server can receive the domain name configuration information sent by the second object. It should be noted that the selection method can be a single click, double click, or other methods, and this embodiment does not limit the method.
在本申请实施例中,第二对象可以配置其对应的DNS的IP地址为其分配的接口地址,然后在终端设备上进行域名配置信息的选择。具体的,可以先选择需要解析的解析记录,该解析记录例如是:www.IN.A.192.168.0.1、www.IN.A.168.168.0.1以及ccc.IN.A.10.101.10.10,再确定对应的域名信息,例如qq.com。In this embodiment, the second object can configure its corresponding DNS IP address as the interface address it is assigned, and then select the domain name configuration information on the terminal device. Specifically, it can first select the DNS records to be resolved, such as www.IN.A.192.168.0.1, www.IN.A.168.168.0.1, and ccc.IN.A.10.101.10.10, and then determine the corresponding domain name information, such as qq.com.
需要说明的是,在本申请实施例中,第二对象可以为一个域名配置多个IP地址,也可以为一个IP地址配置多个域名,本申请对此不做限制。例如,参阅图7所示,图7为本申请实施例示例性示出的一种域名配置信息选择的界面示意图。其中,用户在终端设备上设置域名配置信息时,用户可以选择在终端设备上手动输入域名信息,也可以从预设的域名候选项中选择默认配置的域名信息,终端设备会基于用户的操作确定域名配置信息包含的各个域名信息。It should be noted that in this application embodiment, the second object can be configured with multiple IP addresses for one domain name, or multiple domain names for one IP address; this application does not impose any restrictions on this. For example, referring to Figure 7, Figure 7 is a schematic diagram of an interface for selecting domain name configuration information, exemplarily shown in an embodiment of this application. When a user sets domain name configuration information on a terminal device, the user can choose to manually enter the domain name information on the terminal device, or select the default configured domain name information from preset domain name candidates. The terminal device will determine the various domain name information included in the domain name configuration information based on the user's operation.
如图7所示,用户在终端设备上设置域名配置信息时,用户可以选择在终端设备上手动输入“xxx.zzzzzz.com”,也可以从预设的域名候选项中,即“xxx.zzzwsz.com、……、xxx.zzsopz.com”中选择默认配置的“xxx.zzzwsz.com”。As shown in Figure 7, when setting domain name configuration information on a terminal device, the user can choose to manually enter "xxx.zzzzzz.com" on the terminal device, or select the default configuration "xxx.zzzwsz.com" from the preset domain name candidates, namely "xxx.zzzwsz.com, ..., xxx.zzsopz.com".
以及,针对域名配置信息包含的与域名信息对应的IP地址,用户可以选择在终端设备上手动输入IP地址,也可以从预设的IP地址候选项中选择默认配置的IP地址,终端设备会基于用户的操作域名配置信息包含的各个IP地址。In addition, regarding the IP address corresponding to the domain name information contained in the domain name configuration information, users can choose to manually enter the IP address on the terminal device, or they can choose the default IP address from the preset IP address candidates. The terminal device will then select the IP address from the domain name configuration information based on the user's operation.
如图7所示,用户在终端设备上设置域名配置信息时,用户可以选择在终端设备上手动输入“11.11.34.222”,也可以从预设的IP地址候选项,即“11.11.20.221、……、11.11.13.146”中选择默认配置的“11.11.20.221”。As shown in Figure 7, when setting domain name configuration information on a terminal device, the user can choose to manually enter "11.11.34.222" on the terminal device, or select the default configuration "11.11.20.221" from the preset IP address candidates, namely "11.11.20.221, ..., 11.11.13.146".
示例性的,域名配置信息还可以包括但不限于以下信息:权重、记录类型以及可用状态信息。For example, domain name configuration information may also include, but is not limited to, the following: weight, record type, and availability status information.
其中,记录类型可以包括但不限于地址记录(Address,A)记录、域名服务器记录(Name Server,NS)、邮件交换记录(Mail Exchanger,MX)以及别名记录(Canonical Name,CNAME)。具体的,A记录是用来指定主机名(或域名)对应的IP地址记录,即A记录是指定域名对应的IP地址;域名服务器记录是用来指定该域名由哪个DNS服务器来进行解析,即指定由哪个DNS服务器解析域名;邮件交换记录,它指向一个邮件服务器,用于电子邮件系统发邮件时根据收信人的地址后缀来定位邮件服务器;别名记录,允许将多个域名映射到同一台计算机。The record types can include, but are not limited to, address (A) records, name server (NS) records, mail exchange (MX) records, and canonical name (CNAME) records. Specifically, an A record specifies the IP address corresponding to a hostname (or domain name); a name server record specifies which DNS server resolves the domain name; a mail exchange record points to a mail server and is used by email systems to locate the mail server based on the recipient's address suffix when sending emails; and an alias record allows multiple domain names to be mapped to the same computer.
具体的,权重用于表征同一个子域名的情况下实现记录返回的次数的策略,其主要用于实现各个IP地址对应的负载动态均衡的作用。权重的取值一般为大于1的正整数,例如:权重取值为1-100。Specifically, the weight is used to represent the strategy for returning records within the same subdomain, and it is mainly used to achieve dynamic load balancing across IP addresses. The weight value is generally a positive integer greater than 1, for example, a weight value between 1 and 100.
举例来讲,若同一域名对应两个IP地址,分别为第一IP地址和第二IP地址,若该域名对应的第一IP地址对应的权重为1,且该域名对应的第二IP地址对应的权重为10,那么,当接收到针对该域名的域名解析请求时,若上次返回的是第一IP地址,则后续10次接收到针对该域名的域名解析请求,均返回第二IP地址,以及,当在确定反馈10次第二IP地址后,再接收到针对该域名的域名解析请求时,返回第一IP地址。也就是说,在接收到针对该域名的域名解析请求时,基于权重循环反馈两个IP地址,从而尽量确保各个IP地址对应负载均衡。For example, if a domain name corresponds to two IP addresses, designated as IP address 1 and IP address 2, and the weight of IP address 1 is 10, then when a domain name resolution request for that domain name is received, if the first IP address was returned previously, the second IP address will be returned for the next 10 requests. Furthermore, after 10 requests have been returned using the second IP address, the first IP address will be returned for any subsequent domain name resolution request. In other words, when a domain name resolution request is received, both IP addresses are returned cyclically based on their weights to ensure load balancing across all IP addresses.
进一步地,针对域名配置信息中的权重、记录类型以及可用状态的信息,都可以是用户在对应的候选项中选择确定的,在此不再赘述。Furthermore, the information regarding the weight, record type, and availability status in the domain name configuration can all be selected and confirmed by the user from the corresponding options, which will not be elaborated further here.
需要说明的是,图7是示例性示出的一种界面显示图,在具体实施中,域名配置信息中的各个配置信息的功能模块显示方式可以基于实际实施情况对应确定,例如可以是横排展示,或者是各个功能模块的模块图形不一样等,本申请实施例中不做限定。It should be noted that Figure 7 is an exemplary interface display diagram. In specific implementations, the display method of the functional modules of each configuration information in the domain name configuration information can be determined according to the actual implementation situation. For example, it can be displayed horizontally, or the module graphics of each functional module are different, etc. This application embodiment does not limit it.
需要说明的是,在本申请实施例中,一个接口地址所对应绑定的域名配置信息中,每个域名信息是不同的,即域名配置信息中各个域名信息是唯一的,但每个域名信息对应的IP地址可以是多个。也就是说,域名配置信息中可以包括至少一个域名信息,且每个一个域名信息可以对应多个IP地址。It should be noted that, in this embodiment of the application, each domain name in the domain name configuration information bound to an interface address is different; that is, each domain name in the domain name configuration information is unique, but each domain name can correspond to multiple IP addresses. In other words, the domain name configuration information can include at least one domain name, and each domain name can correspond to multiple IP addresses.
此外,在本申请实施例中,域名配置信息还可以基于用户的操作进行更新,具体的,可以是用户通过终端设备基于实际需求随时进行更新,也可以是基于预设时间间隔向终端设备发送更新提示,从而用户通过该终端设备进行域名配置信息的更新,其中,该预设时间间隔可以基于实际应用环境进行灵活配置,例如,一周、1个月等等,本申请实施例中不做限制。Furthermore, in this embodiment, the domain name configuration information can also be updated based on user operations. Specifically, the user can update it at any time based on actual needs through the terminal device, or an update prompt can be sent to the terminal device based on a preset time interval, so that the user can update the domain name configuration information through the terminal device. The preset time interval can be flexibly configured based on the actual application environment, such as one week, one month, etc., and is not limited in this embodiment.
步骤305:将第二对象对应的实例标识与域名配置信息进行关联绑定,确定第二绑定关系,并将第二绑定关系存储于数据库中。Step 305: Associate and bind the instance identifier corresponding to the second object with the domain name configuration information to determine the second binding relationship, and store the second binding relationship in the database.
具体的,公网服务器为第二对象提供了接口地址之后,还可以将第二对象自行确定的域名配置信息和实例标识进行关联绑定,从而确定第二绑定关系。Specifically, after the public server provides the interface address to the second object, it can also associate and bind the domain name configuration information and instance identifier determined by the second object itself, thereby determining the second binding relationship.
采用上述配置方式,可以由第二对象自定义所需的域名配置信息,因而可以满足第二对象的实际使用需求。By using the above configuration method, the second object can customize the required domain name configuration information, thus meeting the actual usage needs of the second object.
在本申请实施例中,当确定第二对象所对应的域名配置信息和实例标识之后,可以对应确定第二绑定关系。In this embodiment of the application, after determining the domain name configuration information and instance identifier corresponding to the second object, the second binding relationship can be determined accordingly.
举例来说,第二绑定关系可以表示为:(Str_A,Cloud_HostsID_A,example.com INA1.1.1.1,0,-1);其中,“Str_A”用于表示第二对象A的标识;“Cloud_HostsID_A”用于表示第二对象A的实例标识;“example.com 10IN A1.1.1.1”中,“example.com”用于表征样例域名、“10”用于表征若接收101次到对“example.com”的解析,则10次返回“1.1.1.1”这个IP地址,“IN”用于表征记录的固定格式为记录类型,即向发送域名解析请求的对象反馈的类型是反馈IP地址,以及“1.1.1.1”样例域名对应的样例IP地址,“0”用于表征域名配置信息的是否可用的状态信息,“-1”用于表征样例域名是否处于被锁定的状态,即该域名配置信息除了配置其的人员,其他人员无法对其进行更改。For example, the second binding relationship can be represented as: (Str_A, Cloud_HostsID_A, example.com INA1.1.1.1, 0, -1); where "Str_A" represents the identifier of the second object A; "Cloud_HostsID_A" represents the instance identifier of the second object A; in "example.com 10IN A1.1.1.1", "example.com" represents the example domain name, "10" represents that if 101 resolutions to "example.com" are received, then 10 will return the IP address "1.1.1.1", "IN" represents that the fixed format of the record is the record type, that is, the type of feedback to the object that sent the domain name resolution request is the feedback IP address, and the example IP address corresponding to the example domain name "1.1.1.1", "0" represents the status information of whether the domain name configuration information is available, and "-1" represents whether the example domain name is in a locked state, that is, the domain name configuration information cannot be changed by other personnel except the person who configured it.
例如,参阅图8所示,数据库中包括第二对象1对应的第二绑定关系1、第二对象2对应的第二绑定关系2、……、第二对象n3对应的第二绑定关系n3。其中,第二绑定关系1为域名配置信息1和实例标识1进行绑定所确定的关系、第二绑定关系2为对域名配置信息2和实例标识2进行绑定所确定的关系,以及第二绑定关系n3为域名配置信息n3和实例标识n3进行绑定所确定的关系,n3为大于1的正整数。For example, referring to Figure 8, the database includes second binding relationship 1 corresponding to second object 1, second binding relationship 2 corresponding to second object 2, ..., and second binding relationship n3 corresponding to second object n3. Here, second binding relationship 1 is the relationship determined by binding domain name configuration information 1 and instance identifier 1; second binding relationship 2 is the relationship determined by binding domain name configuration information 2 and instance identifier 2; and second binding relationship n3 is the relationship determined by binding domain name configuration information n3 and instance identifier n3, where n3 is a positive integer greater than 1.
上述实施例仅以一个第二对象为例进行介绍,实际应用中,各个第二对象均可以建立相应的第一绑定关系和第二绑定关系,并保存在数据库中。而前述第一绑定关系以及第二绑定关系所对应的数据的汇总,便形成了数据库中设置的各个域名信息和各个IP地址之间的映射关系。The above embodiment only uses one second object as an example. In practical applications, each second object can establish corresponding first and second binding relationships and store them in the database. The summary of the data corresponding to the aforementioned first and second binding relationships forms the mapping relationship between each domain name information and each IP address set in the database.
在本申请实施例中,可以将第一绑定关系和第二绑定关系对应存储于一个表中,例如,参见表4所示,表4为本申请中的完整存储示意表:In this embodiment of the application, the first binding relationship and the second binding relationship can be stored in a table, for example, see Table 4, which is a complete storage illustration table in this application:
表4Table 4
可见,在本申请实施例中,可以将包括第二对象的标识、接口地址、云hosts实例标识以及域名配置信息组成的数组,组成一个表,存储数据库中。As can be seen, in this embodiment of the application, an array consisting of the identifier of the second object, the interface address, the cloud hosts instance identifier, and the domain name configuration information can be formed into a table and stored in the database.
例如,参阅图9所示,图9为本申请实施例中的完整数据库的示意图。该完整数据库中包括第二对象1所对应的第一绑定关系1和第二绑定关系1、第二对象2所对应的第一绑定关系2和第二绑定关系2、……、以及第二对象n所对应的第一绑定关系n4和第二绑定关系n4,其中,n4为大于1的正整数。For example, referring to Figure 9, which is a schematic diagram of a complete database in an embodiment of this application, the complete database includes a first binding relationship 1 and a second binding relationship 1 corresponding to a second object 1, a first binding relationship 2 and a second binding relationship 2 corresponding to a second object 2, ..., and a first binding relationship n4 and a second binding relationship n4 corresponding to a second object n, where n4 is a positive integer greater than 1.
参阅图10所示,图10为本申请实施例中示出的一种域名解析的系统架构图。即在任一对象基于使用对应的内部网络的终端设备触发域名解析服务请求时,公网服务器可以对各个对象基于终端设备发送的域名解析服务器请求进行处理,并向各个对象反馈各自对应的IP地址。Referring to Figure 10, which is a system architecture diagram of domain name resolution shown in an embodiment of this application, when any object triggers a domain name resolution service request based on a terminal device using the corresponding internal network, the public network server can process the domain name resolution server requests sent by each object based on the terminal device and return the corresponding IP address to each object.
可见,本申请实施例提供了一种新的对域名进行解析的系统架构,在该系统架构中不再对各个内部网络设置各自对应的域名解析服务器,而是基于公网服务器对应的数据库,对应确定域名所对应的IP地址。As can be seen, the embodiments of this application provide a new system architecture for resolving domain names. In this system architecture, instead of setting up separate domain name resolution servers for each internal network, the IP address corresponding to the domain name is determined based on the database of the public network server.
具体的,公网服务器对应的数据库中,记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址,因此,公网服务器可以基于数据库和域名进行域名解析,从而获得域名对应的IP地址。即有效降低了网络构建成本,以及网络运维成本,还有效提高了对域名进行解析的解析效率。此外,还可以实现在包括多个内部网络的大规模环境下,对多个内部网络分别对应的域名解析的整体管理。Specifically, the database corresponding to the public network server records at least one domain name and its associated IP address for each internal network established on the public network. Therefore, the public network server can perform domain name resolution based on the database and the domain names to obtain the IP address corresponding to the domain name. This effectively reduces network construction and maintenance costs, and also significantly improves the efficiency of domain name resolution. Furthermore, it enables comprehensive management of domain name resolution for multiple internal networks in a large-scale environment.
在本申请实施例中,参阅图11A所示,图11A为本申请实施例提供的一种域名解析的方法的流程的示意图。具体的,该方法可以由前述的公网服务器执行,包括以下步骤:In this embodiment of the application, referring to Figure 11A, Figure 11A is a schematic flowchart of a domain name resolution method provided in this embodiment of the application. Specifically, the method can be executed by the aforementioned public network server, including the following steps:
步骤1101:接收第一对象发送的域名解析请求,域名解析请求中携带有目标域名信息。Step 1101: Receive the domain name resolution request sent by the first object, which carries the target domain name information.
在本申请实施例中,公网服务器可以接收第一对象发送的域名解析请求,其中,域名解析请求中携带有目标域名信息。具体的,该第一对象可以是任意一个在公网中已建立了相应的内部网络的对象。此外,域名解析请求中还可以携带有对应的接口地址,其中,该接口地址可以是公网服务器对第一对象分配的,也可以是公网服务器为其它的第二对象分配的接口地址,且第一对象可以对应获取到该接口地址。In this embodiment, the public network server can receive a domain name resolution request sent by a first object, wherein the domain name resolution request carries target domain name information. Specifically, the first object can be any object that has established a corresponding internal network on the public network. Furthermore, the domain name resolution request may also carry a corresponding interface address, wherein the interface address can be assigned by the public network server to the first object, or it can be an interface address assigned by the public network server to other second objects, and the first object can obtain the corresponding interface address.
步骤1102:基于目标域名信息,在数据库中查找是否存在与目标域名信息关联的目标IP地址,数据库中记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址。Step 1102: Based on the target domain name information, search the database to see if there is a target IP address associated with the target domain name information. The database records at least one domain name and associated IP address corresponding to each internal network established in the public network.
可选的,本申请实施例中,当公网服务器确定数据库还记录有:每个域名配置信息至少包括相应的内部网络对应的至少一个域名信息、每个域名信息关联的IP地址以及可用状态的信息时,公网服务器在接收到第一对象发送的域名解析请求之后,在执行步骤1102之前,进一步地,还可以先在数据库中查询是否存在处于可用状态的域名配置信息,并在确定存在处于可用状态的域名配置信息时,再开始执行步骤1102。Optionally, in this embodiment of the application, when the public network server determines that the database also records: each domain name configuration information includes at least one domain name information corresponding to the corresponding internal network, the IP address associated with each domain name information, and the information on availability status, after receiving the domain name resolution request sent by the first object, before executing step 1102, the public network server may further query the database to see if there is any domain name configuration information in an available state, and start executing step 1102 only after determining that there is any domain name configuration information in an available state.
举例来讲,数据库中记录有:包括可用状态信息的域名配置信息1、包括可用状态信息的域名配置信息2、……、包括可用状态信息的域名配置信息n5,公网服务器在接收到第一对象发送的域名解析请求之后,可以在数据库中查询可用状态信息的域名配置信息1、包括可用状态信息的域名配置信息2、……、包括可用状态信息的域名配置信息n5中的可用状态信息的具体状态,若确定域名配置信息2中的可用状态信息对应的值为0,即表明域名配置信息2处于可用状态,则公网服务器可以在数据库中查找是否存在与目标域名信息关联的目标IP地址。For example, the database records: Domain configuration information 1 (including availability status information), Domain configuration information 2 (including availability status information), ..., Domain configuration information n5 (including availability status information). After receiving the domain name resolution request sent by the first object, the public network server can query the database for the specific status of the availability status information in Domain configuration information 1, Domain configuration information 2, ..., Domain configuration information n5. If it is determined that the value corresponding to the availability status information in Domain configuration information 2 is 0, it indicates that Domain configuration information 2 is in an available state. Then, the public network server can search the database to see if there is a target IP address associated with the target domain name information.
换言之,当确定存在处于可用状态的域名配置信息时,公网服务器才可以开始在数据库中查找是否存在与目标域名信息关联的目标IP地址,这样的方式,可以确定域名配置信息是可用的,从而可以进行有效的域名解析处理。In other words, only when it is determined that the domain name configuration information exists in a usable state can the public server begin to search the database for a target IP address associated with the target domain name information. This method can determine that the domain name configuration information is usable, thereby enabling effective domain name resolution processing.
在本申请实施例中,在执行步骤1102时,公网服务器可以基于目标域名信息,在数据库中,查找是否存在与目标域名信息关联的目标IP地址;其中,该数据库可以是基于前述图3的方法所创建的数据库。In this embodiment of the application, when performing step 1102, the public network server can search in the database for a target IP address associated with the target domain name information based on the target domain name information; wherein, the database can be a database created based on the method in Figure 3 above.
示例性的,公网服务器在数据库中查找是否存在与目标域名信息关联的目标IP地址的具体过程可以是:基于域名解析请求携带的目标接口地址和第一绑定关系,确定与目标接口地址关联的目标实例标识;然后可以基于目标实例标识,调用相应的目标域名解析实例,在数据库中查找是否存在与目标域名信息关联的目标IP地址。For example, the specific process by which a public server searches the database for a target IP address associated with the target domain name information can be as follows: based on the target interface address and the first binding relationship carried in the domain name resolution request, determine the target instance identifier associated with the target interface address; then, based on the target instance identifier, call the corresponding target domain name resolution instance to search the database for a target IP address associated with the target domain name information.
例如,参阅图8所示,假设域名解析请求携带的目标接口地址为接口地址1,以及第一绑定关系为接口地址1与实例标识1绑定,则公网服务器可以对应确定与目标接口地址关联的目标实例标识为实例标识1,然后可以基于目标实例标识即实例标识1,调用与实例标识1对应的目标域名解析实例,在数据库中查找与目标域名信息关联的目标IP地址。For example, referring to Figure 8, assuming that the target interface address carried in the domain name resolution request is interface address 1, and the first binding relationship is that interface address 1 is bound to instance identifier 1, then the public network server can determine that the target instance identifier associated with the target interface address is instance identifier 1. Then, based on the target instance identifier, i.e. instance identifier 1, it can call the target domain name resolution instance corresponding to instance identifier 1 and search for the target IP address associated with the target domain name information in the database.
具体的,公网服务器调用与实例标识1对应的目标域名解析实例,在数据库中查找与目标域名信息关联的目标IP地址时,公网服务器可以基于第二绑定关系,对应确定与目标接口地址关联的目标实例标识所对应的域名配置信息,从而公网服务器可以基于域名配置信息和目标域名信息,对应确定与目标域名信息关联的目标IP地址。Specifically, when the public server calls the target domain name resolution instance corresponding to instance identifier 1 and searches for the target IP address associated with the target domain name information in the database, the public server can determine the domain name configuration information corresponding to the target instance identifier associated with the target interface address based on the second binding relationship. Thus, the public server can determine the target IP address associated with the target domain name information based on the domain name configuration information and the target domain name information.
例如:目标接口地址关联的目标实例标识“Cloud_HostsID_2w”,从而可以基于第二绑定关系,对应确定目标IP地址为“11.123.13.46”。For example, the target instance identifier "Cloud_HostsID_2w" associated with the target interface address can be used to determine the target IP address as "11.123.13.46" based on the second binding relationship.
可见,本申请实施例中可以基于在数据库中预先存储的第一绑定关系,对应确定与目标接口地址关联的目标实例标识,从而可以基于目标实例标识,调用相应的目标域名解析实例,并基于第二绑定关系,在数据库中查找是否存在与目标域名信息关联的目标IP地址。As can be seen, in this embodiment of the application, the target instance identifier associated with the target interface address can be determined based on the first binding relationship pre-stored in the database. Thus, the corresponding target domain name resolution instance can be called based on the target instance identifier, and the target IP address associated with the target domain name information can be searched in the database based on the second binding relationship.
另一方面,在本申请实施例中,当确定不存在处于可用状态的域名配置信息时,公网服务器可以基于预设转发策略,将域名解析请求转发给与目标域名信息关联的域名服务器,以使域名服务器基于预设转发策略对域名解析请求进行递归解析,获得另一目标IP地址,并将另一目标IP地址反馈至第一对象;其中,域名服务器设置于公网中。On the other hand, in this embodiment of the application, when it is determined that there is no domain name configuration information in an available state, the public network server can forward the domain name resolution request to the domain name server associated with the target domain name information based on a preset forwarding strategy, so that the domain name server can recursively resolve the domain name resolution request based on the preset forwarding strategy, obtain another target IP address, and feed back the other target IP address to the first object; wherein, the domain name server is set in the public network.
具体的,当公网服务器确定不存在处于可用状态的域名配置信息时,则可以首先向根域名服务器转发前述域名解析请求,然后接收根服务器返回顶级域名服务器的信息,从而公网服务器向顶级域名服务器再次发送上述域名解析请求,并接收顶级域名服务器返回的权威域名服务器的信息,进而公网服务器基于顶级域名服务器返回的权威域名服务器的信息,再次向权威域名服务器发送上述域名解析请求,而权威域名服务器接收到上述域名解析请求,并执行相应的域名解析处理,并返回解析值。Specifically, when the public server determines that there is no domain name configuration information in an available state, it can first forward the aforementioned domain name resolution request to the root name server, then receive the information of the top-level name server returned by the root server, and then send the aforementioned domain name resolution request to the top-level name server again, and receive the information of the authoritative name server returned by the top-level name server. Then, based on the information of the authoritative name server returned by the top-level name server, the public server sends the aforementioned domain name resolution request to the authoritative name server again. The authoritative name server receives the aforementioned domain name resolution request, performs the corresponding domain name resolution processing, and returns the resolved value.
若公网服务器确定获得的解析值不符合预设IP格式,则可以再基于相同方式再次获得新的解析值,直到查询到符合上述预设IP格式的另一目标IP地址为止,然后公网服务器可以向第一对象返回获得的另一目标IP地址。If the public server determines that the obtained resolution value does not conform to the preset IP format, it can obtain a new resolution value again in the same way until another target IP address that conforms to the above preset IP format is found. Then the public server can return the obtained other target IP address to the first object.
例如,目标域名信息为“sss.vvvv.com”,则公网服务器可以向与域名信息关联的根域名服务器、顶级域名服务器以及权威域名服务器的发送目标域名信息,直至公网服务器确定权威域名服务器反馈的解析值符合预设IP格式,从而公网服务器可以获得“11.156.36.12”,并向第一对象反馈“11.156.36.12”。For example, if the target domain name information is "sss.vvvv.com", the public server can send the target domain name information to the root name server, top-level name server, and authoritative name server associated with the domain name information until the public server determines that the resolution value returned by the authoritative name server conforms to the preset IP format. Thus, the public server can obtain "11.156.36.12" and return "11.156.36.12" to the first object.
可见,在本申请实施例中,当确定公网服务器中不存在处于可用状态的域名配置信息时,还可以对域名解析请求进行处理。As can be seen, in this embodiment of the application, when it is determined that there is no domain name configuration information in an available state on the public network server, the domain name resolution request can still be processed.
也就是说,本申请实施例中提供了一种既可以实现在公网中自定义特定业务的域名解析,又可以支持公网递归解析服务。In other words, this application provides a method that can both enable custom domain name resolution for specific services on the public network and support recursive resolution services on the public network.
步骤1103:当确定存在目标IP地址时,向第一对象反馈目标IP地址。Step 1103: When it is determined that a target IP address exists, the target IP address is fed back to the first object.
在本申请实施例中,当确定公网服务器对应的数据库中存在目标IP地址时,则可以向第一对象反馈目标IP地址。In this embodiment of the application, when it is determined that the target IP address exists in the database corresponding to the public network server, the target IP address can be fed back to the first object.
在本申请实施例中,公网服务器可以接收第一对象发送的域名解析请求,其中,域名解析请求中携带有目标域名信息,且由于公网服务器对应的数据库中记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址,因此,公网服务器可以基于目标域名信息,以及数据库中针对各个内部网络预设的域名与IP地址的映射关系,直接获得目标域名信息关联的目标IP地址,并向第一对象返回该目标IP地址,从而无需在各个内部网络内自行搭建域名服务器,即减少了域名服务器的搭建和维护,进而有效降低了网络构建成本,以及网络运维成本,另一方面,有效提高了对目标域名信息进行解析的解析效率。此外,由于各个内部网络各自对应的至少一个域名信息及关联的IP地址均存储于数据库中,因而可以实现大规模环境下的域名解析管理,提升对域名解析的管理效果。In this embodiment, the public network server can receive a domain name resolution request sent by a first object. The domain name resolution request carries target domain name information. Since the database corresponding to the public network server records at least one domain name and associated IP address for each internal network established on the public network, the public network server can directly obtain the target IP address associated with the target domain name based on the target domain name information and the pre-defined domain name-IP address mapping relationship for each internal network in the database. It then returns the target IP address to the first object, eliminating the need to build domain name servers within each internal network. This reduces the construction and maintenance of domain name servers, effectively lowering network construction and operation costs. Furthermore, it significantly improves the resolution efficiency of the target domain name information. Moreover, since at least one domain name and associated IP address for each internal network are stored in the database, domain name resolution management in a large-scale environment can be achieved, improving the management effectiveness of domain name resolution.
基于上述实施例,在一种可能的实施方式中,分配到接口地址的第二对象可能将其接口地址分配给其它对象,或者,该第二对象的接口地址可能被盗用,若发现上述情况,会导致在较短时间内公网服务器接收多个域名解析请求,且该多个域名解析请求是针对同一域名信息,可见,公网服务器还需要针对前述情况进行定期检测。Based on the above embodiments, in one possible implementation, the second object assigned to the interface address may assign its interface address to other objects, or the interface address of the second object may be stolen. If the above situation is discovered, it will cause the public network server to receive multiple domain name resolution requests in a short period of time, and the multiple domain name resolution requests are for the same domain name information. It can be seen that the public network server also needs to perform regular checks on the aforementioned situation.
具体的,仍以上述第一对象为例,公网服务器可以针对预设时间段,统计接收到携带上述目标域名信息的其他域名解析请求的累计次数,若确定预设时间段对应的累计次数达到设定阈值,则向第一对象发送提示信息,提示信息用于提示第一对象针对接口地址进行重复性检查。Specifically, taking the first object mentioned above as an example, the public network server can count the cumulative number of other domain name resolution requests carrying the target domain name information received within a preset time period. If it is determined that the cumulative number of requests within the preset time period reaches a set threshold, a prompt message is sent to the first object. The prompt message is used to prompt the first object to perform a duplicate check on the interface address.
例如:参阅图11B所示,在8:00-9:00时间段内,针对携带有目标域名信息的域名解析请求进行统计,从而获得8:00-9:00时间段内,携带有目标域名信息的域名解析请求的累计次数为50000次,且确定在8:00-9:00时间段内的累计次数对应的设定阈值为30000次,则可以确定在8:00-9:00时间段内的累计次数达到设定阈值。For example, referring to Figure 11B, during the period from 8:00 to 9:00, statistics are collected on domain name resolution requests carrying target domain name information. This results in a cumulative total of 50,000 domain name resolution requests carrying target domain name information during the period from 8:00 to 9:00. If the set threshold for the cumulative total during the period from 8:00 to 9:00 is determined to be 30,000, then it can be determined that the cumulative total during the period from 8:00 to 9:00 has reached the set threshold.
例如:参阅图11C所示,当确定,携带有目标域名信息的域名解析请求的累计次数达到设定阈值时,从而向第一对象发送提示信息,提示第一对象针对其对应的接口地址进行重复性检查。其中,提示信息例如是:提示:对应绑定的接口地址,重复触发域名解析请求,请注意检查。For example, referring to Figure 11C, when it is determined that the cumulative number of domain name resolution requests carrying target domain name information has reached a set threshold, a prompt message is sent to the first object, prompting the first object to perform a duplicate check on its corresponding interface address. The prompt message might be something like: "Prompt: The corresponding bound interface address has triggered duplicate domain name resolution requests. Please check carefully."
为了更好地解释本申请实施例,下面以对第一对象的域名解析为例,介绍本申请实施例提供的一种域名解析方法,该方法由公网服务器执行,包括以下步骤,如图12所示:To better explain the embodiments of this application, the following uses the domain name resolution of a first object as an example to introduce a domain name resolution method provided by the embodiments of this application. This method is executed by a public network server and includes the following steps, as shown in Figure 12:
步骤1201:接收第一对象发送的域名解析请求,域名解析请求中携带有目标域名信息。Step 1201: Receive the domain name resolution request sent by the first object, which carries the target domain name information.
例如,假设公网服务器接收到第一对象发送的域名解析请求中携带的目标域名信息为“mmm.wosz.com”,以及域名解析请求中还携带有第一对象对应的标识,从而公网服务器可以基于第一对象所对应的标识,确定与第一对象对应的目标接口地址,如,该目标接口地址为“1.2.3.4”。当然,域名解析请求中还可以携带有目标接口地址,如,该目标接口地址为“1.2.3.4”。For example, suppose a public server receives a domain name resolution request from a first object, containing the target domain name information "mmm.wosz.com" and an identifier corresponding to the first object. Based on this identifier, the public server can determine the target interface address corresponding to the first object, such as "1.2.3.4". Of course, the domain name resolution request can also include the target interface address, such as "1.2.3.4".
步骤1202:在数据库中查询是否存在处于可用状态的域名配置信息;其中,数据库中记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址;若是,则执行步骤1203,否则,执行步骤1206。Step 1202: Query the database to see if there are any domain name configuration information that are available. The database records at least one domain name and associated IP address for each internal network that has been established on the public network. If yes, proceed to step 1203; otherwise, proceed to step 1206.
具体的,公网服务器可以对数据库中存在的各个域名配置信息进行检测,确定各个域名配置信息所对应的是否处于可用状态,即确定各个域名配置信息是否可以被使用,避免最终基于域名配置信息所取得的目标IP地址无法使用。Specifically, the public server can check the configuration information of each domain name in the database to determine whether the configuration information of each domain name is in an available state, that is, to determine whether the configuration information of each domain name can be used, so as to avoid the target IP address obtained based on the domain name configuration information being unusable.
步骤1203:基于域名解析请求携带的目标接口地址和第一绑定关系,确定与目标接口地址关联的目标实例标识。Step 1203: Based on the target interface address and the first binding relationship carried in the domain name resolution request, determine the target instance identifier associated with the target interface address.
例如,当公网服务器确定存在处于可用状态的域名配置信息时,继续以上述目标接口地址为“1.2.3.4”,然后基于第一绑定关系,对应确定与目标接口地址关联的目标实例标识为“Cloud_HostsID_1”。For example, when the public server determines that there is a domain name configuration information that is available, it continues to use the above target interface address as "1.2.3.4", and then, based on the first binding relationship, determines the target instance identifier associated with the target interface address as "Cloud_HostsID_1".
步骤1204:基于目标实例标识,调用相应的目标域名解析实例,在数据库中查找是否存在与目标域名信息关联的目标IP地址。Step 1204: Based on the target instance identifier, call the corresponding target domain name resolution instance to search the database for a target IP address associated with the target domain name information.
例如,当公网服务器确定目标实例标识为“Cloud_HostsID_1”之后,则可以调用与“Cloud_HostsID_1”对应的目标域名解析实例,即HostsID_1对应的数据库中的hosts文件,且基于hosts文件可以对应确定第二绑定关系,然后可以基于第二绑定关系查找目标IP地址。具体的,hosts文件中关联存储有域名配置信息,该域名配置信息至少包括域名信息以及与该域名信息对应的IP地址。For example, once the public server determines that the target instance is identified as "Cloud_HostsID_1", it can access the target domain name resolution instance corresponding to "Cloud_HostsID_1", that is, the hosts file in the database corresponding to HostsID_1. Based on the hosts file, a second binding relationship can be determined, and then the target IP address can be found based on the second binding relationship. Specifically, the hosts file stores domain name configuration information, which includes at least the domain name information and the IP address corresponding to that domain name information.
例如,当公网服务器确定hosts文件中存储的多个域名配置信息中的第一域名配置信息包括“mmm.wosz.com”这一域名信息,则可以将第一域名配置信息中的“mmm.wosz.com”对应的IP地址即“11.134.10.12”确定为目标IP地址。For example, if a public server determines that the first domain name configuration information among the multiple domain name configuration information stored in the hosts file includes the domain name "mmm.wosz.com", then the IP address corresponding to "mmm.wosz.com" in the first domain name configuration information, namely "11.134.10.12", can be determined as the target IP address.
步骤1205:当确定数据库中存在目标IP地址时,向第一对象反馈目标IP地址。Step 1205: When it is determined that the target IP address exists in the database, the target IP address is fed back to the first object.
例如,公网服务器可以基于第二绑定关系,查找与“mmm.wosz.com”关联的目标IP地址为“11.134.10.12”时,则可以向第一对象反馈“11.134.10.12”。For example, when a public server finds the target IP address associated with "mmm.wosz.com" as "11.134.10.12" based on the second binding relationship, it can then send "11.134.10.12" back to the first object.
可见,在本申请实施例中,当需要解析的域名信息为数据库中的域名配置信息中所包括的域名信息,则可以直接基于前述步骤1201-步骤1205执行。很显然,当需要解析的域名信息为第一对象预先配置的域名信息时,即第一对象对应的内部网络可解析的域名信息时,则可以基于数据库中预存的信息直接快速对应确定。As can be seen, in this embodiment of the application, when the domain name information to be resolved is the domain name information included in the domain name configuration information in the database, it can be directly executed based on the aforementioned steps 1201-1205. Obviously, when the domain name information to be resolved is the domain name information pre-configured by the first object, that is, the domain name information that the internal network corresponding to the first object can resolve, it can be directly and quickly determined based on the information pre-stored in the database.
此外,当需要解析的域名信息不为数据库中域名配置信息中所包括的域名信息,即第一对象请求进行的域名信息不为内部网络可解析的域名信息时,则可以执行以下步骤1206。In addition, when the domain name information to be resolved is not the domain name information included in the domain name configuration information in the database, that is, when the domain name information requested by the first object is not the domain name information that can be resolved by the internal network, the following step 1206 can be executed.
步骤1206:基于预设转发策略,将域名解析请求转发给与目标域名信息关联的域名服务器,以使域名服务器基于预设转发策略对域名解析请求进行递归解析,获得另一目标IP地址,并将另一目标IP地址反馈至第一对象。Step 1206: Based on the preset forwarding strategy, forward the domain name resolution request to the domain name server associated with the target domain name information, so that the domain name server recursively resolves the domain name resolution request based on the preset forwarding strategy, obtains another target IP address, and feeds back the other target IP address to the first object.
具体举例已在前述确定另一目标IP地址的步骤中具体描述,在此不再赘述。Specific examples have been described in detail in the steps for determining another target IP address, and will not be repeated here.
可见,本申请实施例提供了一种既可以实现在公网中自定义特定业务的域名解析,又可以支持公网递归解析的方案,避免内部网络自行搭建域名服务器,且可以基于用户的实际使用需求设置域名配置信息,提升了用户的使用体验。As can be seen, the embodiments of this application provide a solution that can both enable customized domain name resolution for specific services on the public network and support recursive resolution on the public network, avoiding the need to build a domain name server on the internal network, and allowing users to set domain name configuration information based on their actual usage needs, thereby improving the user experience.
基于相同的发明构思,本申请实施例还提供一种域名解析装置。如图13所示,其为域名解析装置1300的结构示意图,可以包括:Based on the same inventive concept, this application also provides a domain name resolution device. As shown in Figure 13, which is a structural schematic diagram of the domain name resolution device 1300, it may include:
接收单元1301,用于接收第一对象发送的域名解析请求,该域名解析请求中携带有目标域名信息;The receiving unit 1301 is used to receive a domain name resolution request sent by the first object, the domain name resolution request carrying target domain name information;
处理单元1302,用于基于目标域名信息,在数据库中查找是否存在与该目标域名信息关联的目标IP地址,上述数据库中记录有:在公网中已建立的各个内部网络各自对应的至少一个域名信息及关联的IP地址;The processing unit 1302 is used to search in the database for a target IP address associated with the target domain name information based on the target domain name information. The database records at least one domain name and associated IP address for each internal network established in the public network.
反馈单元1303,用于当确定数据库中存在目标IP地址时,向第一对象反馈该目标IP地址。Feedback unit 1303 is used to feed back the target IP address to the first object when it is determined that the target IP address exists in the database.
可选的,在接收单元接收第一对象发送的域名解析请求之前,处理单元1302还用于:Optionally, before the receiving unit receives the domain name resolution request sent by the first object, the processing unit 1302 is further configured to:
接收第二对象发送的关联关系建立请求,其中,第二对象已在公网中请求建立了相应的内部网络,以及第二对象与第一对象为同一对象,或者,为不同对象;Receive a relationship establishment request sent by a second object, wherein the second object has already requested to establish a corresponding internal network in the public network, and the second object and the first object are the same object or different objects;
基于关联关系建立请求,为第二对象分配相应的接口地址,以及为第二对象创建相应的域名解析实例,并生成相应的实例标识;其中,域名解析实例用于对第二对象请求建立的内部网络所对应的域名信息进行解析;Based on the relationship, a request is established, a corresponding interface address is assigned to the second object, and a corresponding domain name resolution instance is created for the second object, and a corresponding instance identifier is generated; wherein, the domain name resolution instance is used to resolve the domain name information corresponding to the internal network requested by the second object;
将第二对象对应的接口地址与实例标识进行关联绑定,确定第一绑定关系,并将第一绑定关系存储于数据库中。Associate and bind the interface address corresponding to the second object with the instance identifier to determine the first binding relationship, and store the first binding relationship in the database.
可选的,在确定第一绑定关系之后,处理单元1302还用于:Optionally, after determining the first binding relationship, the processing unit 1302 is further configured to:
接收第二对象发送的域名配置信息,域名配置信息至少包括相应的内部网络对应的至少一个域名信息以及每个域名信息关联的IP地址;Receive domain name configuration information sent by the second object. The domain name configuration information includes at least one domain name information corresponding to the internal network and the IP address associated with each domain name information.
将第二对象对应的实例标识与域名配置信息进行关联绑定,确定第二绑定关系,并将第二绑定关系存储于数据库中。Associate and bind the instance identifier corresponding to the second object with the domain name configuration information to determine the second binding relationship, and store the second binding relationship in the database.
可选的,基于目标域名信息,在数据库中查找是否存在与目标域名信息关联的目标IP地址时,处理单元1302具体用于:Optionally, when searching the database for a target IP address associated with the target domain name information based on the target domain name information, the processing unit 1302 is specifically used for:
基于域名解析请求携带的目标接口地址和第一绑定关系,确定与该目标接口地址关联的目标实例标识;Based on the target interface address and the first binding relationship carried in the domain name resolution request, determine the target instance identifier associated with the target interface address;
基于目标实例标识,调用相应的目标域名解析实例,在数据库中查找是否存在与目标域名信息关联的目标IP地址。Based on the target instance identifier, the corresponding target domain name resolution instance is invoked to search the database for a target IP address associated with the target domain name information.
可选的,若数据库还记录有:每个域名配置信息至少包括相应的内部网络对应的至少一个域名信息、每个域名信息关联的IP地址以及可用的状态信息;Optionally, the database may also record: each domain name configuration information includes at least one domain name information corresponding to the internal network, the IP address associated with each domain name information, and available status information;
则在该数据库中查找是否存在与目标域名信息关联的目标IP地址之前,处理单元还用于:Before searching the database for a target IP address associated with the target domain name information, the processing unit also performs the following:
在数据库中查询是否存在处于可用状态的域名配置信息;Check the database to see if there is any domain name configuration information that is available.
当确定存在处于可用状态的域名配置信息时,在数据库中查找是否存在与目标域名信息关联的目标IP地址。Once it is determined that there is domain name configuration information that is in an available state, the database is searched to see if there is a target IP address associated with the target domain name information.
可选的,在数据库中查询是否存在处于可用状态的域名配置信息之后,处理单元1302还用于:Optionally, after querying the database to see if there is any domain name configuration information in an available state, the processing unit 1302 is further used to:
当确定不存在处于可用状态的域名配置信息时,基于预设转发策略,将域名解析请求转发给与目标域名信息关联的域名服务器,以使域名服务器基于预设转发策略对域名解析请求进行递归解析,获得另一目标IP地址,并将另一目标IP地址反馈至第一对象;When it is determined that there is no domain name configuration information in an available state, the domain name resolution request is forwarded to the domain name server associated with the target domain name information based on the preset forwarding policy, so that the domain name server recursively resolves the domain name resolution request based on the preset forwarding policy, obtains another target IP address, and feeds back the other target IP address to the first object;
其中,域名服务器设置于公网中。The domain name server is set up on the public network.
可选的,若基于域名解析请求中携带的对象所对应终端的标识,确定存在与第一对象使用相同接口地址的其他对象,则在接收域名解析请求之后,处理单元1302还用于:Optionally, if based on the identifier of the terminal corresponding to the object carried in the domain name resolution request, it is determined that there are other objects using the same interface address as the first object, then after receiving the domain name resolution request, the processing unit 1302 is further configured to:
针对预设时间段,统计接收到携带目标域名信息的其他域名解析请求的累计次数;For a preset time period, count the cumulative number of other domain name resolution requests carrying the target domain name information received;
若确定预设时间段对应的累计次数达到设定阈值,则向第一对象发送提示信息,提示信息用于提示第一对象针对接口地址进行重复性检查。If the cumulative number of times corresponding to the preset time period is determined to reach the set threshold, a prompt message is sent to the first object. The prompt message is used to prompt the first object to perform a duplicate check on the interface address.
在上述实施方式中,避免了内部网络自行搭建域名服务器,引入了公网服务器,实现了既可以实现在公网中自定义特定业务的域名解析,又可以支持公网递归解析的,降低了内部网络的运维成本。In the above implementation, the internal network avoids building its own domain name server and introduces a public network server, which enables both custom domain name resolution for specific services on the public network and supports recursive resolution on the public network, thereby reducing the operation and maintenance costs of the internal network.
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本申请时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。For ease of description, the above sections are divided into modules (or units) according to their functions and described separately. Of course, in implementing this application, the functions of each module (or unit) can be implemented in one or more software or hardware components.
在介绍了本申请示例性实施方式的域名解析方法和装置之后,接下来,介绍根据本申请的另一示例性实施方式的电子设备。Having introduced the domain name resolution method and apparatus according to exemplary embodiments of this application, we will now introduce an electronic device according to another exemplary embodiment of this application.
所属技术领域的技术人员能够理解,本申请的各个方面可以实现为系统、方法或程序产品。因此,本申请的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art will understand that various aspects of this application can be implemented as a system, method, or program product. Therefore, various aspects of this application can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, collectively referred to herein as a "circuit," "module," or "system."
与上述方法实施例基于同一发明构思,本申请实施例中还提供了一种电子设备。在一种实施例中,该电子设备可以是公网服务器,如图3所示的公网服务器。在该实施例中,电子设备的结构可以如图14所示,本申请实施例还提供一种电子设备,如图14所示,本申请实施例中的电子设备包括至少一个处理器1401,以及与至少一个处理器1401连接的存储器1402和通信接口1403,本申请实施例中不限定处理器1401与存储器1402之间的具体连接介质,图14中是以处理器1401和存储器1402之间通过总线1400连接为例,总线1400在图14中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。总线1400可以分为地址总线、数据总线、控制总线等,为便于表示,图14中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Based on the same inventive concept as the above-described method embodiments, this application also provides an electronic device. In one embodiment, the electronic device can be a public network server, as shown in Figure 3. In this embodiment, the structure of the electronic device can be as shown in Figure 14. This application also provides an electronic device, as shown in Figure 14. The electronic device in this application includes at least one processor 1401, and a memory 1402 and a communication interface 1403 connected to at least one processor 1401. This application does not limit the specific connection medium between the processor 1401 and the memory 1402. Figure 14 shows an example of the connection between the processor 1401 and the memory 1402 via a bus 1400. The bus 1400 is represented by a thick line in Figure 14. The connection methods between other components are only for illustrative purposes and are not intended to be limiting. The bus 1400 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in Figure 14, but this does not mean that there is only one bus or one type of bus.
在本申请实施例中,存储器1402存储有可被至少一个处理器1401执行的指令,至少一个处理器1401通过执行存储器1402存储的指令,可以执行前述的域名解析方法中所包括的步骤。In this embodiment of the application, the memory 1402 stores instructions that can be executed by at least one processor 1401. By executing the instructions stored in the memory 1402, at least one processor 1401 can perform the steps included in the aforementioned domain name resolution method.
其中,处理器1401是电子设备的控制中心,可以利用各种接口和线路连接整个故障检测设备的各个部分,通过运行或执行存储在存储器1402内的指令以及调用存储在存储器1402内的数据,执行电子设备的各种功能和处理数据。可选的,处理器1401可包括一个或多个处理单元,处理器1401可集成应用处理器和调制解调处理器,其中,处理器1401主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1401中。在一些实施例中,处理器1401和存储器1402可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。The processor 1401 is the control center of the electronic device. It can connect to various parts of the fault detection device through various interfaces and lines. By running or executing instructions stored in the memory 1402 and calling data stored in the memory 1402, it performs various functions of the electronic device and processes data. Optionally, the processor 1401 may include one or more processing units. The processor 1401 may integrate an application processor and a modem processor. The processor 1401 mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1401. In some embodiments, the processor 1401 and the memory 1402 may be implemented on the same chip; in some embodiments, they may also be implemented on separate chips.
处理器1401可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。Processor 1401 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
存储器1402作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器1402可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random AccessMemory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器1402是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器1402还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。Memory 1402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 1402 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disk, etc. Memory 1402 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 1402 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and/or data.
通信接口1403是能够用于进行通信的传输接口,可以通过通信接口1403接收数据或者发送数据。Communication interface 1403 is a transmission interface that can be used for communication. Data can be received or sent through communication interface 1403.
此外,该电子设备还包括帮助电子设备内的各个器件之间传输信息的基本输入/输出系统(I/O系统)1404、用于存储操作系统1405、应用程序1406和其他程序模块1407的大容量存储设备1408。In addition, the electronic device also includes a basic input/output system (I/O system) 1404 that helps transmit information between various devices within the electronic device, and a large-capacity storage device 1408 for storing the operating system 1405, application programs 1406 and other program modules 1407.
基本输入/输出系统1404包括有用于显示信息的显示器1409和用于用户输入信息的诸如鼠标、键盘之类的输入设备1410。其中显示器1409和输入设备1410都通过连接到系统总线1400的基本输入/输出系统1404连接到处理器1401。其中,基本输入/输出系统1404还可以包括输入输出控制器以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器还提供输出到显示屏、打印机或其他类型的输出设备。The basic input/output system 1404 includes a display 1409 for displaying information and an input device 1410 for user input, such as a mouse or keyboard. Both the display 1409 and the input device 1410 are connected to the processor 1401 via the basic input/output system 1404 connected to the system bus 1400. The basic input/output system 1404 may also include an input/output controller for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input/output controller also provides output to a display screen, printer, or other types of output devices.
具体的,大容量存储设备1408通过连接到系统总线1400的大容量存储控制器(未示出)连接到处理器1401。其中,大容量存储设备1408及其相关联的计算机可读介质为该服务器包提供非易失性存储。也就是说,大容量存储设备1408可以包括诸如硬盘或者CD-ROM驱动器之类的计算机可读介质(未示出)。Specifically, mass storage device 1408 is connected to processor 1401 via a mass storage controller (not shown) connected to system bus 1400. Mass storage device 1408 and its associated computer-readable media provide non-volatile storage for the server package. That is, mass storage device 1408 may include computer-readable media (not shown) such as hard disk drives or CD-ROM drives.
根据本申请的各种实施例,该电子设备还可以通过诸如因特网等网络连接到网络上的远程计算机运行。也即该电子设备可以通过连接在系统总线1400上的通信接口1403连接到网络1411,或者说,也可以使用通信接口1403来连接到其他类型的网络或远程计算机系统(未示出)。According to various embodiments of this application, the electronic device can also be connected to a remote computer on a network such as the Internet. That is, the electronic device can be connected to the network 1411 through the communication interface 1403 connected to the system bus 1400, or the communication interface 1403 can be used to connect to other types of networks or remote computer systems (not shown).
在一些可能的实施方式中,本申请提供的域名解析方法的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在电子设备上运行时,程序代码用于使电子设备执行本说明书上述描述的根据本申请各种示例性实施方式的域名解析方法中的步骤,例如,电子设备可以执行如图11A中所示的步骤。In some possible implementations, various aspects of the domain name resolution method provided in this application can also be implemented in the form of a program product, which includes program code. When the program product is run on an electronic device, the program code is used to cause the electronic device to perform the steps in the domain name resolution method according to various exemplary embodiments of this application described above. For example, the electronic device can perform the steps shown in FIG11A.
程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
本申请的实施方式的程序产品可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在计算装置上运行。然而,本申请的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被命令执行系统、装置或者器件使用或者与其结合使用。The program product of the embodiments of this application may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a computing device. However, the program product of this application is not limited thereto. In this document, the readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with a command execution system, apparatus, or device.
可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由命令执行系统、装置或者器件使用或者与其结合使用的程序。A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code. This propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting a program for use by or in conjunction with a command execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
可以以一种或多种程序设计语言的任意组合来编写用于执行本申请操作的程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算装置上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算装置上部分在远程计算装置上执行、或者完全在远程计算装置或服务器上执行。在涉及远程计算装置的情形中,远程计算装置可以通过任意种类的网络包括局域网(LAN)或广域网(WAN)连接到用户计算装置,或者,可以连接到外部计算装置(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims (13)
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK40083053A HK40083053A (en) | 2023-06-23 |
| HK40083053B true HK40083053B (en) | 2025-02-21 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11095711B2 (en) | DNS Resolution of internal tenant-specific domain addresses in a multi-tenant computing environment | |
| US10469314B2 (en) | API gateway for network policy and configuration management with public cloud | |
| CN109688235B (en) | Virtual network service processing method, device and system, controller, storage medium | |
| CN108370391B (en) | Shared multi-tenant Domain Name System (DNS) server for virtual networks | |
| KR102540776B1 (en) | address migration service | |
| CN103370111B (en) | Method and device for sending cloud server address | |
| KR101914318B1 (en) | Global traffic management using modified hostname | |
| CN102982091B (en) | Techniques for Dynamic Domain-Based Isolation | |
| CN108494891A (en) | A kind of domain name analytic method, server and system | |
| US11570278B1 (en) | Dynamic content delivery network selection using DNS | |
| KR102131083B1 (en) | System and method for cloud based hosting service | |
| US10986065B1 (en) | Cell-based distributed service architecture with dynamic cell assignment | |
| US11303606B1 (en) | Hashing name resolution requests according to an identified routing policy | |
| CN104486589B (en) | Access method and device in video monitoring system based on GVRP | |
| US11641410B1 (en) | Distributed metric collection for dynamic content delivery network selection using DNS | |
| CN111212134A (en) | Request message processing method and device, edge computing system and electronic equipment | |
| CN110071986A (en) | A system for domain name resolution | |
| CN103428302A (en) | Domain name resolution method, domain name resolution server and domain name resolution system | |
| WO2022111313A1 (en) | Request processing method and micro-service system | |
| CN103501358A (en) | Domain name hosting management method and device | |
| CN103535015B (en) | The management method of public network address resource, port control protocols server and client | |
| US10122828B1 (en) | Geographic-aware virtual desktops | |
| US10243920B1 (en) | Internet protocol address reassignment between virtual machine instances | |
| CN110213398B (en) | Alias management method, device, server and storage medium | |
| WO2023050933A1 (en) | Method and apparatus for determining lost host |