WO2018090933A1 - Method, apparatus, and system for resolving service platform address - Google Patents

Method, apparatus, and system for resolving service platform address Download PDF

Info

Publication number
WO2018090933A1
WO2018090933A1 PCT/CN2017/111142 CN2017111142W WO2018090933A1 WO 2018090933 A1 WO2018090933 A1 WO 2018090933A1 CN 2017111142 W CN2017111142 W CN 2017111142W WO 2018090933 A1 WO2018090933 A1 WO 2018090933A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
target
terminal
address
domain name
Prior art date
Application number
PCT/CN2017/111142
Other languages
French (fr)
Chinese (zh)
Inventor
吴江琪
姜凤波
胡浩
秦俊
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018090933A1 publication Critical patent/WO2018090933A1/en
Priority to US16/362,461 priority Critical patent/US10972425B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/695Types of network addresses using masks or ranges of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to a method, device, and system for address resolution of a service platform.
  • URL domain name is almost no It includes location information of the host in the Internet, such as baidu.com, and the IP address corresponds to the location information of the host in the Internet, for example, 192.158.100.011. Since the URL domain name is mnemonic, and the IP address is a numeric name, it is difficult to understand and memorize, so people generally access the corresponding host through the URL domain name.
  • IP address corresponding to the URL domain name by the domain name system (English name: Domain Name Service, English abbreviation: DNS) server of the Internet, and then the browser according to the corresponding The IP address accesses the service server corresponding to the URL domain name.
  • domain name system English name: Domain Name Service, English abbreviation: DNS
  • the Internet access lines obtained by the DNS server are classified according to operators or regions. For some websites that are in the design state, some users can be selected as grayscale users first, and grayscale users can access the website before ordinary users. And after the visit, assist the website developer to improve the website until the website meets the user's needs before going online. At this time, the ordinary user can also access the website.
  • grayscale users In order to facilitate the management and monitoring of grayscale users' operations on online websites, developers need to find these grayscale users accurately. If users are divided by operators or regions, it may be difficult to locate because of the wide range. The case of grayscale users.
  • the embodiment of the present application provides a method, a related device, and a system for address resolution of a service platform.
  • a customized line By adopting a customized line, a more precise range can be located to provide services for users in the range, and the customized line is a service development. According to the need to set a line in advance, thereby improving the flexibility and practicability of the solution, and also facilitating the selection of grayscale users for business experience.
  • the first aspect of the embodiments of the present application provides a method for address resolution of a service platform, including:
  • the server receives the domain name system DNS resolution request sent by the terminal, and the DNS resolution request includes the domain name to be resolved;
  • the server acquires the target Internet Protocol IP information of the terminal according to the DNS resolution request;
  • the server obtains a preset first parsing record according to the target custom line, where the first parsing record is used to indicate that the terminal establishes a communication connection with the first target server of the domain to be resolved;
  • the server sends the first IP address corresponding to the domain name to be resolved to the terminal according to the first parsing record set in advance.
  • the second aspect of the embodiment of the present application provides a method for address resolution of a service platform, including:
  • the terminal sends a domain name system DNS resolution request to the server, the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal;
  • the terminal receives the first IP address corresponding to the to-be-resolved domain name sent by the server, where the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line.
  • the first parsing record is used to instruct the terminal to establish a communication connection with the target server.
  • a third aspect of the embodiments of the present application provides a server, including:
  • a first receiving module configured to receive a domain name system DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved;
  • a first acquiring module configured to acquire, according to a DNS resolution request received by the first receiving module, target network protocol IP information of the terminal;
  • a second obtaining module configured to acquire a preset first parsing record according to the target custom line, if the target IP information acquired by the first acquiring module has a corresponding target custom line, where the first parsing record is used to indicate the terminal and the waiting Resolving the first target server of the domain name to establish a communication connection;
  • the first sending module is configured to send, according to the preset first parsing record acquired by the second obtaining module, the first IP address corresponding to the domain name to be resolved to the terminal.
  • a fourth aspect of the embodiments of the present application provides a terminal, including:
  • a first sending module configured to send a domain name system DNS resolution request to the server, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal;
  • the first receiving module is configured to: if the target IP information has a corresponding target customized line, receive a first IP address corresponding to the domain name to be resolved sent by the server, where the first IP address is obtained by the server according to the target customized line.
  • the first parsing record is used to indicate that the terminal establishes a communication connection with the target server.
  • a fifth aspect of the embodiments of the present application provides a service platform address resolution system, including the server provided by the foregoing third aspect, and the terminal provided by the fourth aspect.
  • a sixth aspect of the embodiments of the present application provides a storage medium, where the storage medium is used to store program code, and the program code is used to execute the method for service platform address resolution as described in the first aspect above.
  • a seventh aspect of the embodiments of the present application provides a storage medium, where the storage medium is used to store program code, and the program code is used to execute the method for service platform address resolution as described in the second aspect above.
  • An eighth aspect of the embodiments of the present application provides a computer program product comprising instructions, when executed on a server, causing a server to perform a method for address resolution of a service platform as described in the first aspect above.
  • a ninth aspect of the embodiments of the present application provides a computer program product comprising instructions, when executed on a terminal, causing the terminal to perform the method for address resolution of the service platform as described in the second aspect above.
  • the embodiments of the present application have the following advantages:
  • a method for address resolution of a service platform is provided.
  • the server first receives a DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved, and then obtains a target IP information of the terminal according to the DNS resolution request. If the target IP information has a corresponding target custom line, you can obtain the pre-defined line according to the target.
  • the first parsing record of the target custom line is set, the first parsing record is used to indicate that the terminal establishes a communication connection with the first target server of the domain name to be resolved, and finally, according to the first parsing record preset by the user, to the terminal.
  • the custom line is a line set by the service developer according to the need.
  • the custom line can be used to define the corresponding IP address range, so that the user terminal in the IP address range can obtain the specific IP address corresponding to the access domain name, that is, Users within a precise range provide services, which enhances the flexibility and practicability of the solution, and also facilitates the selection of grayscale users for business experience.
  • FIG. 1 is a structural diagram of a service platform address resolution system in an embodiment of the present application
  • FIG. 2 is a schematic diagram of an interaction embodiment of a method for address resolution of a service platform in an embodiment of the present application
  • FIG. 3 is a schematic diagram of an embodiment of a method for address resolution of a service platform according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of a static structure of an analytical record in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another embodiment of a method for address resolution of a service platform according to an embodiment of the present application
  • FIG. 6 is a schematic diagram of an interaction process of adding a custom line in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of an interface for adding a custom line in an application scenario
  • FIG. 8 is a schematic diagram of an embodiment of a server in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another embodiment of a server in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another embodiment of a server in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another embodiment of a server in an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another embodiment of a server in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of an embodiment of a terminal in an embodiment of the present application.
  • FIG. 14 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application.
  • 15 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application.
  • 16 is a schematic structural diagram of a server in an embodiment of the present application.
  • 17 is a schematic structural diagram of a terminal in an embodiment of the present application.
  • FIG. 18 is a schematic diagram of an embodiment of a service platform address resolution system according to an embodiment of the present application.
  • the embodiment of the present application provides a method, a related device, and a system for address resolution of a service platform.
  • a customized line By using a customized line, a more precise IP address range can be located to provide services for users in the IP address range, and the customization is performed.
  • the line can be a line set by the service developer according to the need, thereby improving the flexibility and practicability of the solution, and also facilitating the selection of the grayscale user for the service experience.
  • FIG. 1 is a structural diagram of a service platform address resolution system according to an embodiment of the present application.
  • a network operator a network operator
  • mobile another network operator
  • Unicom another network operator
  • the terminal of each line through the IP address obtained by the DNS server can access the server of the domain name corresponding to each line, for a custom user, that is, a specific server can be accessed, and the DNS server sets the specific server " Whitelist, which adds the IP address of the accessible user to the "whitelist".
  • these accessible users are grayscale users.
  • the terminal of the mobile user sends a DNS resolution request including a domain name to the DNS server, and the DNS server can obtain the IP address of the mobile subscriber line to access the domain name, and the terminal of the mobile user can access the domain name through the IP address.
  • the specific IP address of the access domain name that the user can obtain through the DNS server can access the specific server corresponding to the domain name, so that some custom users can access the specific server of the domain name.
  • a DNS server can be understood as a distributed database with a domain name and an IP address mapped to each other, which enables users to access the Internet more conveniently without having to remember the IP number string that can be directly read by the machine.
  • the process of obtaining the IP address corresponding to the host name by the DNS server through the host name is called domain name resolution.
  • the DNS protocol runs on the User Datagram Protocol (English Datagram Protocol, English abbreviation: UDP) protocol and uses port number 53.
  • UDP User Datagram Protocol
  • RFC 2181 has a specification for DNS
  • RFC 2136 describes the dynamic update of DNS
  • each terminal device is configured with a mapping from host name to IP address, and each terminal device independently maintains its own mapping table, and is only used by the terminal device;
  • Dynamic mapping establish a set of domain name resolution system, configure the mapping of host name to IP address on a dedicated DNS server.
  • the device that needs to communicate with the host name on the network needs to first query the DNS server for the IP address corresponding to the host name.
  • domain name resolution or host name resolution
  • FIG. 2 is a schematic diagram of an interaction embodiment of a method for address resolution of a service platform according to an embodiment of the present application.
  • step 101 the user sends a DNS resolution request to the DNS server through the terminal, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used to instruct the DNS resolution program in the DNS server to start domain name resolution. And a DNS resolution request belongs to only one domain name.
  • the DNS resolver obtains the IP address of the terminal, and the IP address of the terminal may be the DNS IP address of the terminal, and the DNS IP address may be understood as the IP address assigned by the network operator to the terminal.
  • the IP address of the terminal is also available. Think of the actual IP address of the terminal.
  • the DNS resolver locates a certain IP address range according to the terminal IP address and the domain name to be resolved. Specifically, the DNS resolver saves the custom line information in the background database for each domain name, and the custom line information corresponds to one or more IP address ranges, and the custom domain name can be obtained according to the domain name to be resolved.
  • the line information may further search for the terminal IP address in one or more IP address ranges corresponding to the customized line information, and locate the terminal IP address to a certain IP address range corresponding to the customized line information.
  • step 104 the DNS resolver locates the customized line according to the IP address range, thereby being able to determine a unique custom line identifier.
  • Each of the custom line identifiers has a unique identifier.
  • the custom line identifier to which the IP address range belongs can also be known.
  • the DNS resolver then obtains the domain name record set by the user according to the customized line identifier.
  • the domain name record includes the correspondence between the domain name and the IP address that accesses the domain name.
  • the DNS resolver searches for the domain name record setting according to the customized line identifier. If it can be found, the domain name resolution of the custom line is set, and if the domain name resolution of the custom line is not found, the ordinary line is followed. The processing is performed to locate the identifier of the normal line, and further find whether the user has set the domain name resolution of the ordinary line.
  • the DNS resolver returns the set domain name record value to the terminal according to the search result.
  • the value of the domain name record can be understood as the IP address of the domain name to be resolved.
  • the IP address of the domain name to be resolved can be understood as the IP address of a server corresponding to the domain name to be resolved.
  • the terminal can feed back the IP address 1 to enable the terminal to use the IP address 1 to access the domain name.
  • an embodiment of the method for address resolution of the service platform in the embodiment of the present application includes:
  • the DNS server receives the DNS resolution request sent by the terminal, and the DNS resolution request carries a domain name requested by the user through the terminal, and a DNS resolution request corresponds to a domain name, and the domain name is a domain name to be resolved.
  • a domain name is the name of a computer or group of computers on a network consisting of a series of dot-separated names. It is used to identify the electronic orientation of a computer during data transmission, and sometimes also refers to geographic location, geographic domain name, and A local area of administrative autonomy.
  • a domain name is a "mask" on an IP address. The purpose of the domain name is to facilitate the memorization and communication of the addresses of a group of servers.
  • the DNS server obtains the target IP information corresponding to the terminal according to the DNS resolution request, and the target IP information includes an IP address, and may also include IP address range information where the IP address is located.
  • the target IP information has a corresponding target custom line, obtain a pre-set first parsing record according to the target custom line, where the first parsing record is used to instruct the terminal to establish a communication connection with the first target server of the domain to be resolved.
  • the DNS server determines, according to the target IP information, whether the target IP address is stored in the background database.
  • the target custom line corresponding to the information, if present, the DNS server obtains the preset first parsing record according to the custom line.
  • the first resolution record may be used to indicate that the terminal used by the user establishes a communication connection with the first target server of the domain name to be resolved, and the first target server may provide a service for the specified user accessing the domain name to be resolved.
  • the first parsing record may include at least one of a record identifier, a record name, a record value, and a custom line identifier set by the user in advance.
  • the record identifier is a domain name, such as "www.aabbcc.com”
  • the record name is the host name, such as "admin”
  • the record value is an IP address, such as "8.8.8.8”
  • the custom line identifier is DNS random assignment or user setting. A unique identifier that distinguishes between different custom lines.
  • the DNS server may send the record value in the first parsing record to the terminal, that is, the first IP address corresponding to the domain name to be resolved, so that the terminal passes the first IP address.
  • the address establishes a communication connection with the first target server of the domain to be resolved, and can enable the terminal to obtain the corresponding service from the target server.
  • a method for address resolution of a service platform is provided.
  • the server first receives a DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved, and then obtains a target IP information of the terminal according to the DNS resolution request. If the target IP information has a corresponding target custom line, the first parsing record including the target custom line may be obtained according to the target custom line, where the first parsing record is used to indicate the first end of the terminal and the domain to be resolved.
  • the target server establishes a communication connection, and finally sends a first IP address corresponding to the domain name to be resolved to the terminal according to the first resolution record set by the user.
  • the custom line is a line set by the service developer according to the need.
  • the custom line can be used to define the corresponding IP address range, so that the user terminal in the IP address range can obtain the specific IP address corresponding to the access domain name, that is, Users within a precise range provide services, which enhances the flexibility and practicability of the solution, and also facilitates the selection of grayscale users for business experience.
  • the method may further include:
  • the target customized line corresponding to the target IP information is determined by the correspondence between the IP address range stored in the background database and the customized line.
  • the corresponding relationship between the IP address range and the customized line may be queried in the background database in the DNS server, and the corresponding relationship is preset by the user, for example,
  • the "custom line 5" for resolving the domain name contains the IP address range 4.4.4.4 to 4.4.4.255.
  • the target IP information can correspond to the "custom line" of the domain to be resolved. 5".
  • the DNS server can also determine the target customized line corresponding to the target IP information by using the correspondence between the IP address range stored in the background database and the customized line. In the above manner, the DNS server is convenient to find the target customized line associated with the target IP information, thereby improving the reliability of the solution. Find the corresponding relationship in the database to ensure the feasibility of the solution.
  • the specific implementation of determining the target customized line that is associated with the target IP information by using the mapping between the IP address range and the customized line stored in the background database may include:
  • the target IP information is searched in the IP address range corresponding to the custom line of the domain name to be resolved;
  • the custom line of the domain name to be resolved whose IP address range includes the target IP information is determined as the target custom line corresponding to the target IP information.
  • the first IP address corresponding to the domain name to be resolved is obtained from the first parsed record, and the first IP address corresponding to the domain to be resolved is sent to the terminal.
  • FIG. 4 is a schematic diagram of a static structure of a parsing record in an embodiment of the present application, where the parsing record may be a first parsing record.
  • the first resolution record may include a domain name record, that is, a record name of the domain name and a record value of the domain name, and the record name of the domain name may be a record identifier or a host name, and the record identifier may be a domain name, for example, “www.aabbcc.com ", the host name is "admin”, the record value of the domain name is the IP address, such as "8.8.8.8".
  • a domain name record can correspond to a custom line.
  • the first resolution record can also include a custom line.
  • the custom line includes a custom line identifier and a custom line name.
  • the custom line identifier is unique and customized.
  • the line name can be set as needed.
  • a custom line can correspond to multiple IP address ranges, that is, multiple IP segments. Each address range needs to include a starting IP address and an ending IP address to form a reasonable range.
  • the IP address range can be "2.2.2.2 to 2.2.2.2", that is, an IP address range consisting of only one IP address, or "4.4.4.4 to 4.4.4.255", that is, an IP address range composed of multiple IP addresses.
  • the above is only one illustration and should not be construed as limiting the present scheme.
  • the DNS server can determine the domain name to be resolved according to the DNS resolution request, and obtain the customized route of the domain to be resolved, and then the IP address corresponding to the custom route of the domain to be resolved according to the multiple IP address ranges corresponding to the customized route.
  • the target IP information is searched for in the range. If the DNS server determines that the target IP address of the terminal exists in the IP address range corresponding to the custom route of the domain name to be resolved, the customized route is the target customized line corresponding to the target IP information.
  • the first IP address of the first target server of the domain to be resolved may be searched from the first parsing record corresponding to the target custom line in the background database, and the first IP address is sent to the terminal.
  • a method for determining a first IP address by a DNS server is introduced.
  • the DNS server can provide a corresponding IP address for the terminal by using a custom line preset by the user, so that a specific user can access the user. Access to a specific server for the domain name enhances the usability and feasibility of the solution.
  • the method may further include:
  • the DNS server may further receive a custom line add request sent by at least one terminal, and use the custom line add request to update information in the background database.
  • the user sends a custom line add request to the DNS server through the terminal, where the custom line add request carries a series of parsing records to be added, such as at least one of a record identifier, a record name, a record value, and a custom line identifier. item.
  • the DNS server can parse the custom line add request, obtain the parsing record to be added set by the user, and store the parsing record to be added to the backend database of the DNS server.
  • IP address range of multiple custom lines added for the same domain name cannot have an intersection.
  • the DNS server checks to ensure that one domain name is accessed for the same domain name.
  • the IP address of the terminal can only correspond to a range of IP addresses, and thus locate a unique custom line.
  • the DNS may also receive a custom line add request in real time, and the custom line add request carries the parsing record to be added, so that the DNS server may add a request according to the custom line, and add the custom line to the request. Add a parsing record to the backend database.
  • the method may further include:
  • the second parsing record corresponding to the target IP information is searched according to the preset priority, and the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain to be resolved. ;
  • the DNS server finds that the target IP information does not have a corresponding target customized line by searching the correspondence between the IP address range in the background database and the customized line, then the second corresponding to the target IP is searched according to the preset priority. Analyze the record. The second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain name to be resolved.
  • the default custom line has the highest priority in the DNS server, for example, when the target IP information corresponds to the "custom line 5" of the domain to be resolved, "shenzhen (a city name of China) telecommunications line", “Guangdong ( In China, a provincial name) "telecom line” and "China Telecom line”, the DNS server will preferentially establish a communication connection from the terminal to the target server of the domain to be resolved through "custom line 5". If the target IP information does not have a corresponding custom line, the DNS establishes a communication connection of the terminal to another target server of the domain to be resolved through the "Shenzhen Telecom Line” according to the preset priority, and so on, and obtains the preset priority order. It is a custom line, a city operation line, a provincial operation line, and a national operation line.
  • the DNS server searches for the route used by the target IP information, and determines a second parsing record corresponding to the route.
  • the second parsing record also includes at least one of a preset record identifier, a record name, a record value, and a custom line identifier.
  • the DNS server sends a record value corresponding to the domain name to be resolved to the terminal, where the record value is the second IP address of the second target server for accessing the domain name to be resolved, so that the terminal adopts the first
  • the second IP address establishes a communication connection with the target server that provides the service, and acquires the corresponding service.
  • the DNS server searches for the second parsing record corresponding to the target IP information according to the preset priority, and then sends the second to the terminal according to the second parsing record. IP address.
  • the DNS server may also send the second IP address to the terminal corresponding to the non-custom line. The address ensures that the DNS can send the corresponding IP address to the terminal according to the priority order, thereby improving the practicability and operability of the solution.
  • the foregoing embodiment is a method for analyzing the address of the service platform in the present application from the perspective of the server.
  • the method for the address resolution of the service platform in the present application is introduced from the perspective of the terminal. Referring to FIG. 5, the service platform in the embodiment of the present application is provided.
  • An embodiment of the method of address resolution includes:
  • the terminal first sends a DNS resolution request to the DNS server, where the DNS resolution request carries a domain name requested by the user, and a DNS resolution request corresponds to a domain name, and the domain name is a domain name to be resolved.
  • the DNS server obtains the target IP information corresponding to the terminal according to the DNS resolution request.
  • the target IP information includes the IP address of the terminal, and may further include the IP address range information of the IP address.
  • the target IP information has a corresponding target customized line
  • the first IP address corresponding to the to-be-resolved domain name sent by the server is received, and the first IP address is determined by the server according to the target custom line acquisition preset first parsing record.
  • the first parsing record is used to instruct the terminal to establish a communication connection with the target server.
  • the DNS server determines, according to the target IP information, whether the target customized line corresponding to the target IP information is stored in the background database, and if yes, the DNS server obtains the preset first parsing record according to the customized line, and The terminal sends the first IP address in the first resolution record.
  • the first resolution record is used to indicate that the terminal used by the user establishes a communication connection with the first target server of the domain name to be resolved, and the first target server may provide a service for the specified user accessing the domain name to be resolved.
  • the first parsing record may include at least one of a record identifier, a record name, a record value, and a custom line identifier set by the user in advance.
  • the terminal establishes a communication connection with the first target server of the domain to be resolved through the first IP address, and can obtain the corresponding service from the target server.
  • a method for address resolution of a service platform is provided.
  • the terminal sends a DNS resolution request to the server.
  • the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal. If the target IP information has a corresponding target custom line, the first IP address corresponding to the to-be-resolved domain name sent by the server is received, and the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line.
  • the first resolution record is used to instruct the terminal to establish a communication connection with the target server.
  • a custom line can be used to define a corresponding IP address range, so that the user terminal in the IP address range can obtain a specific IP address corresponding to the access domain name, that is, provide services for users in a more precise range, thereby improving the solution. Flexibility and practicality, but also easy to select grayscale users for business experience.
  • the method may further include:
  • the terminal may receive a custom line add request sent by the user, and the custom line add request Carrying at least one of the record to be added, such as a record identifier, a record name, a record value, and a custom line identifier, the DNS server adds a request according to the custom line, and parses the request to store the parsing record to be added to the background database.
  • the custom line add request Carrying at least one of the record to be added, such as a record identifier, a record name, a record value, and a custom line identifier
  • the DNS server adds a request according to the custom line, and parses the request to store the parsing record to be added to the background database.
  • FIG. 6 is a schematic diagram of the interaction process of adding a custom line in the embodiment of the present application.
  • the user logs in to the DNS client corresponding to the DNS server on the terminal, and adds a custom line through the DNS client, and Set the IP address range corresponding to the custom line.
  • the console S1 in the DNS server writes this custom line to the DNS queue S2.
  • the DNS queue S2 is a special kind of linear table. The special feature is that it only allows the delete operation at the front end of the table, and the insert operation at the back end of the table is the same as the stack.
  • the DNS queue S2 is a linear table with restricted operations. The end that performs the insert operation is called the tail of the queue, and the end that performs the delete operation is called the head of the queue.
  • custom line identification such as custom line identification, custom line priority, IP address range, etc.
  • IP address range such as IP address range, etc.
  • the priority of the custom line is the highest level, and the priority of the line can be the city operator, the provincial operator and the national operator. It should be noted that this is only a schematic and should not be It is understood to be a limitation of the present application.
  • the DNS resolver S3 periodically pulls the DNS queue S2 and updates to the local cache to support the custom line.
  • IP address range of multiple custom lines added by the same domain name cannot have an intersection.
  • the DNS server checks to ensure that one domain name is accessed for the same domain name.
  • the IP address of the terminal can only correspond to an IP address range, and then locates a unique custom line.
  • the terminal first receives a custom line add request sent by the user, and the custom line add request carries the parsing record to be added, and then sends a custom line add request to the server, so that the server stores the parsing record to be added to the server.
  • Background database In the above manner, it is convenient to update the background database of the DNS server in real time according to requirements, and the terminal range of the access target server is accurate to a specific range, thereby enhancing the operability of the solution.
  • the method may further include:
  • the second IP address corresponding to the to-be-resolved domain name sent by the server is received, and the second IP address is determined by the server to search for the second parsing record corresponding to the IP information according to the preset priority.
  • the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain name to be resolved.
  • the DNS server finds that the target IP information does not have a corresponding target customized line by searching the correspondence between the IP address range in the background database and the customized line, then the second corresponding to the target IP is searched according to the preset priority. Analyze the record.
  • the default custom line has the highest priority in the DNS server, for example, when the target IP information corresponds to the "custom line 5", "Shenzhen Telecom Line", “Guangdong Telecom Line”, and "China Telecom Line” of the domain name to be resolved.
  • the DNS server will preferentially establish a communication connection from the terminal to the target server of the domain to be resolved through "custom line 5". If the target IP information does not have a corresponding custom line, the DNS establishes a communication connection of the terminal to another target server of the domain to be resolved through the "Shenzhen Telecom Line” according to the preset priority, and so on, and obtains the preset priority order. It is a custom line, a city operation line, a provincial operation line, and a national operation line.
  • the DNS server searches for the route used by the target IP information, and determines a second parsing record corresponding to the route.
  • the second parsing record also includes at least one of a preset record identifier, a record name, a record value, and a custom line identifier.
  • the DNS server sends a record value corresponding to the domain name to be resolved to the terminal, where the record value is the second IP address of the second target server for accessing the domain name to be resolved, so that the terminal adopts the first
  • the second IP address establishes a communication connection with the target server that provides the service, and acquires the corresponding service.
  • the terminal receives the second IP address sent by the DNS server, and the second IP address is the server searches for the target IP information according to the preset priority. Corresponding to the second parsing record is determined.
  • the DNS server can also send the second IP address to the terminal corresponding to the non-custom line, ensuring that the DNS can send the corresponding IP address to the terminal according to the priority order, thereby improving the practicability and operation of the solution. Sex.
  • Company A is a start-up Internet company. Currently, the company is committed to developing a website for communication between designers. However, before the official launch, Company A chose a layer of designers in its own company as a grayscale. Users need to test this website according to the user experience of grayscale users to achieve better use.
  • FIG. 7 is a schematic diagram of an interface for adding a custom line in an application scenario, and the website developer adds the IP address of the grayscale user terminal to the “My Custom Line”, for example, “5.5.5.5-5.5.5.5”.
  • the website developer can also add or delete the IP address range in the "My Custom Line" corresponding to Figure 7, thereby adjusting the range of the grayscale user.
  • the user can use the terminal to send a DNS resolution request to the DNS server.
  • the domain name to be resolved in the DNS resolution request is “www.abcdefg.com”
  • the DNS server can determine the IP address of the terminal. If the IP address of the terminal is “5.5.5.5- Within the IP address range of 5.5.5.5” and the IP address range of "2.2.2.2-3.3.3.3", you can determine that this custom route is the target custom line of the domain name to be resolved. Further, the record value in the parsing information corresponding to the custom route may be obtained, and the record value is the server IP address of the domain name “www.abcdefg.com”. Thus, the grayscale user can access the server that provides the new website service according to the IP address.
  • the server in the embodiment of the present application is a server in the service platform address resolution system, and the server includes:
  • the first receiving module 401 is configured to receive a domain name system DNS resolution request sent by the terminal, where the DNS resolution request includes Domain name to be resolved;
  • the first obtaining module 402 is configured to acquire the target internet protocol IP information of the terminal according to the DNS resolution request received by the first receiving module 401;
  • the second obtaining module 403 is configured to: if the target IP information acquired by the first acquiring module has a corresponding target customized line, obtain a preset first parsing record according to the target customized line, where the first parsing record is used to indicate the terminal and the Establishing a communication connection by the first target server of the domain name to be resolved;
  • the first sending module 404 is configured to send, according to the preset first parsing record acquired by the second acquiring module, the first IP address corresponding to the domain name to be resolved to the terminal.
  • the first receiving module 401 receives the domain name system DNS resolution request sent by the terminal, and the DNS resolution request includes the domain name to be resolved.
  • the first obtaining module 402 acquires the target internet protocol of the terminal according to the DNS resolution request received by the first receiving module 401.
  • the IP information if the target IP information acquired by the first obtaining module 402 has a corresponding target custom line, the second obtaining module 403 obtains a preset first parsing record according to the target custom line, where the first parsing record is used to indicate
  • the terminal establishes a communication connection with the first target server of the domain name to be resolved, and the first sending module 404 sends the first IP address corresponding to the domain to be resolved to the terminal according to the preset first resolution record acquired by the second obtaining module 403.
  • a server for address resolution of a service platform first receives a DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved, and then obtains a target IP address of the terminal according to the DNS resolution request. If the target IP information has a corresponding target custom line, the first parsing record including the target custom line may be obtained according to the target custom line, where the first parsing record is used to indicate the terminal and the domain to be resolved.
  • the first target server establishes a communication connection, and finally sends a first IP address corresponding to the domain name to be resolved to the terminal according to the first resolution record set by the user.
  • the custom line is a line set by the service developer according to the need.
  • the custom line can be used to define the corresponding IP address range, so that the user terminal in the IP address range can obtain the specific IP address corresponding to the access domain name, that is, Users within a precise range provide services, which enhances the flexibility and practicability of the solution, and also facilitates the selection of grayscale users for business experience.
  • the server 40 further includes:
  • the determining module 405 is configured to: after the first obtaining module 402 obtains the target IP information of the terminal according to the DNS resolution request, determine the target customized line corresponding to the target IP information by using the correspondence between the IP address range stored in the background database and the customized line. .
  • the DNS server can also determine the target customized line corresponding to the target IP information by using the correspondence between the IP address range stored in the background database and the customized line. In the above manner, the DNS server is convenient to find the target customized line associated with the target IP information, thereby improving the reliability of the solution and finding the corresponding relationship in the background database, thereby ensuring the feasibility of the solution.
  • the determining module can include:
  • the finding sub-module 4051 is configured to search for the target IP information in the IP address range corresponding to the custom line of the domain name to be resolved according to the correspondence between the IP address range and the customized line;
  • the determining sub-module 4052 is configured to determine, according to the search result of the search sub-module, a custom line whose IP address range includes the domain name to be resolved of the target IP information, as the target custom line corresponding to the target IP information.
  • the first sending module may include:
  • Obtaining a sub-module (not shown), configured to obtain a first IP address corresponding to the domain name to be resolved from the preset first parsing record;
  • the sending sub-module (not shown) is configured to send, to the terminal, a first IP address corresponding to the to-be-resolved domain name obtained by the acquiring sub-module.
  • a method for determining a first IP address by a DNS server is introduced.
  • the DNS server can provide a corresponding IP address for the terminal by using a custom line preset by the user, so that a specific user can access the user. Access to a specific server for the domain name enhances the usability and feasibility of the solution.
  • Server 40 also includes:
  • a second receiving module 408, configured to receive a custom line add request, where the custom line add request carries the parsing record to be added;
  • the adding module 409 is configured to store the to-be-added analysis record in the custom line add request received by the second receiving module to the background database.
  • the DNS may also receive a custom line add request in real time, and the custom line add request carries the parsing record to be added, so that the DNS server may add a request according to the custom line, and add the custom line to the request. Add a parsing record to the backend database.
  • Server 40 also includes:
  • the searching module 411 is configured to: after the first obtaining module 402 acquires the target IP information of the terminal according to the DNS resolution request, if the target IP information does not have a corresponding target customized line, the second corresponding to the target IP information is searched according to the preset priority. Parsing the record, the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain name to be resolved;
  • the second sending module 412 is configured to send, according to the second parsing record searched by the searching module 411, the second IP address corresponding to the domain name to be resolved to the terminal.
  • the DNS server searches for the second parsing record corresponding to the target IP information according to the preset priority, and then sends the second IP to the terminal according to the second parsing record. address.
  • the DNS server can also send the second IP address to the terminal corresponding to the non-custom line, ensuring that the DNS can send the corresponding IP address to the terminal according to the priority order, thereby improving the practicability and operation of the solution. Sex.
  • the terminal in the present application is described in detail below.
  • the terminal in the embodiment of the present application is a terminal in the service platform address resolution system, and the terminal includes:
  • the first sending module 501 is configured to send a domain name system DNS resolution request to the server, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal;
  • the first receiving module 502 is configured to: if the target IP information has a corresponding target customized line, receive a first IP address corresponding to the to-be-resolved domain name sent by the server, where the first IP address is preset by the server according to the target customized line.
  • the first parsing record is used to indicate that the terminal establishes a communication connection with the target server.
  • the first sending module 501 sends a domain name system DNS resolution request to the server, where the DNS resolution request includes the domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal, if the target IP information has a corresponding target.
  • the first receiving module 502 receives the first IP address corresponding to the domain name to be resolved sent by the server, and the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line, and the first parsing is performed. The record is used to instruct the terminal to establish a communication connection with the target server.
  • a terminal for address resolution of a service platform sends a DNS resolution request to the server.
  • the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal. If the target IP information has a corresponding target custom line, the first IP address corresponding to the to-be-resolved domain name sent by the server is received, and the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line.
  • the first resolution record is used to instruct the terminal to establish a communication connection with the target server.
  • a custom line can be used to define a corresponding IP address range, so that the user terminal in the IP address range can obtain a specific IP address corresponding to the access domain name, that is, provide services for users in a more precise range, thereby improving the solution. Flexibility and practicality, but also easy to select grayscale users for business experience.
  • the terminal 50 further includes:
  • a second receiving module 503 configured to receive a custom line add request, where the custom line add request carries the parsing record to be added;
  • the second sending module 504 is configured to send, to the server, a custom line add request received by the second receiving module 503, so that the server stores the parsing record to be added to the background database.
  • the terminal first receives a custom line add request sent by the user, and the custom line add request carries the parsing record to be added, and then sends a custom line add request to the server, so that the server stores the parsing record to be added to the server.
  • Background database In the above manner, it is convenient to update the background database of the DNS server in real time according to requirements, and the terminal range of the access target server is accurate to a specific range, thereby enhancing the operability of the solution.
  • the terminal 50 further includes:
  • the third sending module 505 is configured to: after the first sending module sends the domain name system DNS resolution request to the server, if the target IP information does not have a corresponding target customized line, the receiving the second IP address corresponding to the domain name to be resolved sent by the server, The second IP address is determined by the server to find the second parsing record corresponding to the target IP information according to the preset priority, and the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain to be resolved.
  • the terminal receives the second IP address sent by the DNS server, and the second IP address is the server searches for the target IP information according to the preset priority. Corresponding to the second parsing record is determined.
  • the DNS server may also send a second IP address to the terminal corresponding to the non-custom line, ensuring that the DNS may send the corresponding to the terminal according to the priority sequence. The IP address, which improves the usability and operability of the solution.
  • FIG. 16 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the server 600 may have a large difference due to different configurations or performances, and may include one or more central processing units (English full name: central processing units, English abbreviation) CPU(s) 622 (eg, one or more processors) and memory 632, one or more storage media 630 that store application 642 or data 644 (eg, one or one storage device in Shanghai).
  • the memory 632 and the storage medium 630 may be short-term storage or persistent storage.
  • the program stored on storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations in the server.
  • central processor 622 can be configured to communicate with storage medium 930, executing a series of instruction operations in storage medium 630 on server 600.
  • Server 600 may also include one or more power sources 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, and/or one or more operating systems 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
  • the steps performed by the server in the above embodiment may be based on the server structure shown in FIG.
  • the central processing unit 622 is configured to
  • the first parsing record is obtained according to the target custom line, where the first parsing record is used to indicate that the terminal establishes a communication connection with the first target server of the domain to be resolved;
  • the method further includes:
  • the target customized line corresponding to the target IP information is determined by the correspondence between the IP address range stored in the background database and the customized line.
  • determining a target customized line of the domain name to be resolved corresponding to the target IP information including:
  • the target IP information is searched in the IP address range corresponding to the custom line of the domain name to be resolved;
  • the custom line of the domain name to be resolved whose IP address range includes the target IP information is determined as the target custom line corresponding to the target IP information.
  • the first IP address corresponding to the domain name to be resolved is sent to the terminal according to the first parsing record set in advance, including:
  • the method further includes:
  • the second parsing record corresponding to the target IP information is searched according to the preset priority, and the second parsing record is used to indicate that the terminal establishes communication with the second target server of the domain to be resolved. connection;
  • the embodiment of the present application further provides a terminal.
  • a terminal As shown in FIG. 17 , for the convenience of description, only the parts related to the embodiment of the present application are shown. For details that are not disclosed, refer to the method part of the embodiment of the present application.
  • the terminal can be any terminal including a wearable camera, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (English full name: Point of Sales, English abbreviation: POS), a car computer, and the like.
  • PDA Personal Digital Assistant
  • POS Point of Sales
  • the device uses the terminal as the mobile phone as an example:
  • FIG. 17 is a block diagram showing a structure of a mobile phone part related to a terminal provided by an embodiment of the present application.
  • the mobile phone includes: radio frequency (English full name: Radio Frequency, English abbreviation: RF) circuit 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuit 760, wireless fidelity (English full name: wireless fidelity , English abbreviation: WiFi) module 770, processor 780, and power supply 790 and other components.
  • radio frequency English full name: Radio Frequency, English abbreviation: RF
  • memory 720 input unit 730
  • display unit 740 sensor 750
  • audio circuit 760 includes: wireless fidelity (English full name: wireless fidelity , English abbreviation: WiFi) module 770, processor 780, and power supply 790 and other components.
  • wireless fidelity English full name: wireless fidelity , English abbreviation: WiFi
  • the RF circuit 710 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 780 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • the RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (English name: Low Noise Amplifier, LNA), a duplexer, and the like.
  • RF circuitry 710 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to the global mobile communication system (English full name: Global System of Mobile communication, English abbreviation: GSM), general packet radio service (English full name: General Packet Radio Service, English Abbreviations: GPRS), code division multiple access (English full name: Code Division Multiple Access, English abbreviation: CDMA), wideband code division multiple access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), long-term evolution (English full name : Long Term Evolution, English abbreviation: LTE), e-mail, short message service (English full name: Short Messaging Service, English abbreviation: SMS).
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 720 can be used to store software programs and modules, and the processor 780 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 720.
  • the memory 720 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 720 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 730 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 730 may include a touch panel 731 and other input devices 732.
  • the touch panel 731 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 731 or near the touch panel 731. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 731 may include a touch detection device and a touch control Two parts.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 780 is provided and can receive commands from the processor 780 and execute them.
  • the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 730 may also include other input devices 732.
  • other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 740 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 740 can include a display panel 741, and can be configured and displayed in the form of a liquid crystal display (English name: Liquid Crystal Display, English abbreviation: LCD) or an organic light-emitting diode (English name: Organic Light-Emitting Diode, English abbreviation: OLED).
  • Panel 741 can cover the display panel 741. When the touch panel 731 detects a touch operation on or near the touch panel 731, it transmits to the processor 780 to determine the type of the touch event, and then the processor 780 according to the touch event.
  • the type provides a corresponding visual output on display panel 741.
  • the touch panel 731 and the display panel 741 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 7, in some embodiments, the touch panel 731 can be integrated with the display panel 741. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 750, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may close the display panel 741 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 760, a speaker 761, and a microphone 762 can provide an audio interface between the user and the handset.
  • the audio circuit 760 can transmit the converted electrical data of the received audio data to the speaker 761 for conversion to the sound signal output by the speaker 761; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal by the audio circuit 760. After receiving, it is converted into audio data, and then processed by the audio data output processor 780, sent to, for example, another mobile phone via the RF circuit 710, or outputted to the memory 720 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 770, which provides users with wireless broadband Internet access.
  • FIG. 17 shows the WiFi module 770, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 780 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 720, and invoking data stored in the memory 720, The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 780 can include one or more processing units; preferably, the processor 780 can integrate an application processor and a modem processor, where the application The processor primarily processes the operating system, user interface, applications, etc.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 780.
  • the handset also includes a power source 790 (such as a battery) that supplies power to the various components.
  • a power source 790 such as a battery
  • the power source can be logically coupled to the processor 780 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 780 included in the terminal further has the following functions:
  • the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal;
  • the target IP information has a corresponding target custom line
  • the first IP address corresponding to the to-be-resolved domain name sent by the server is received, and the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line.
  • the first resolution record is used to instruct the terminal to establish a communication connection with the target server.
  • the method further includes:
  • the second IP address corresponding to the to-be-resolved domain name sent by the server is received, and the second IP address is determined by the server to search for the second parsing record corresponding to the IP information according to the preset priority.
  • the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain name to be resolved.
  • FIG. 18 is a service platform address resolution system according to an embodiment of the present application, including: a server 801 and a terminal 802;
  • the server may be the server provided in the foregoing embodiment, and the terminal may be the terminal provided in the foregoing embodiment.
  • the terminal 802 may send a DNS resolution request to the server 801, where the DNS resolution request may include a domain name to be resolved.
  • the server 801 acquires the target IP information of the terminal 802 according to the DNS resolution request.
  • the server 801 obtains a preset first parsing record according to the target custom line, where the first parsing record is used to instruct the terminal 802 to establish a communication connection with the first target server of the domain to be resolved. ;
  • the server 801 sends the first IP address corresponding to the domain name to be resolved to the terminal 802 according to the first resolution record set by the user.
  • a service platform address resolution system In the embodiment of the present application, a service platform address resolution system is provided.
  • the server first receives a DNS resolution request sent by a terminal, where the DNS resolution request includes a domain name to be resolved, and then obtains a target IP information of the terminal according to the DNS resolution request. If the target IP information has a corresponding target custom line, the first parsing record including the target custom line may be obtained according to the target custom line, where the first parsing record is used to indicate the terminal and the domain to be resolved.
  • a target server establishes a communication connection, and finally sends a first IP address corresponding to the domain name to be resolved to the terminal according to the first resolution record set by the user.
  • the custom line is a line set by the service developer according to the need.
  • the custom line can define the corresponding IP address range so that the user ends in the IP address range.
  • the terminal can obtain a specific IP address corresponding to the domain name, that is, provide services for users within a more precise range, thereby improving the flexibility and practicability of the solution, and also facilitating the selection of grayscale users for the service experience.
  • the embodiment of the present application further provides a storage medium, where the storage medium is used to store program code, and the program code is used to execute the method for address resolution of the service platform described above.
  • the embodiment of the present application further provides a computer program product including instructions, which when executed on a server, causes the server to perform the foregoing method for address resolution of the service platform.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of cells is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • An integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic A variety of media that can store program code, such as a disc or a disc.

Landscapes

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

Abstract

The embodiments of the application disclose a method of resolving a service platform address, the method comprising: a server receives a DNS resolving request transmitted from a terminal and comprising a domain name to be resolved; the server obtains, according to the DNS resolving request, target IP information of the terminal; if a corresponding target self-defined route is present in the target IP information, the server obtains, according to the target self-defined route, a preconfigured first resolution record; and the server transmits, according to the preconfigured first resolution record, and to the terminal, a first IP address corresponding to the domain to be resolved. The embodiments of the application also disclose a server, a terminal, and a system for resolving a service platform address. The embodiments of the application are utilized to adopt a self-defined route to define a corresponding IP address range, to enable a user in the IP address range to obtain a specific IP address corresponding to an access domain, providing the user in a more precise range with a service, and facilitating selection of a gray release user to provide service experience.

Description

业务平台地址解析的方法、设备及系统Method, device and system for service platform address resolution
本申请要求于2016年11月17日提交中国专利局、申请号为201611011967.5、发明名称为“一种业务平台地址解析的方法、相关设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on November 17, 2016, the Chinese Patent Office, the application number is 201611011967.5, and the invention name is “a method for address resolution of a service platform, related equipment and systems”. The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及互联网技术领域,尤其涉及业务平台地址解析的方法、设备及系统。The present application relates to the field of Internet technologies, and in particular, to a method, device, and system for address resolution of a service platform.
背景技术Background technique
随着通信技术的发展,因特网在人们的日常工作生活中有着越来越重要的地位。因特网中的主机可以有多种方式标识,例如统一资源定位符(英文全称:Uniform Resource Locator,英文缩写:URL)域名和网际协议(英文全称:Internet Protocol,英文缩写:IP),URL域名几乎不包括主机在因特网中的位置信息,例如baidu.com,而IP地址对应主机在因特网中的位置信息,例如192.158.100.011。由于URL域名具有助记性,而IP地址是数字型名字,难于理解和记忆,因此人们一般通过URL域名访问对应的主机。通过URL域名访问对应的主机,需要先由因特网的域名系统(英文全称:Domain Name Service,英文缩写:DNS)服务器根据URL域名查询到与该URL域名对应的IP地址,再由浏览器根据对应的IP地址访问该URL域名对应的业务服务器。With the development of communication technology, the Internet has an increasingly important position in people's daily work and life. Hosts on the Internet can be identified in a variety of ways, such as Uniform Resource Locator (English name: Uniform Resource Locator, English abbreviation: URL) domain name and Internet Protocol (English full name: Internet Protocol, English abbreviation: IP), URL domain name is almost no It includes location information of the host in the Internet, such as baidu.com, and the IP address corresponds to the location information of the host in the Internet, for example, 192.158.100.011. Since the URL domain name is mnemonic, and the IP address is a numeric name, it is difficult to understand and memorize, so people generally access the corresponding host through the URL domain name. To access the corresponding host through the URL domain name, you need to first query the IP address corresponding to the URL domain name by the domain name system (English name: Domain Name Service, English abbreviation: DNS) server of the Internet, and then the browser according to the corresponding The IP address accesses the service server corresponding to the URL domain name.
目前,DNS服务器获取的上网线路是按照运营商或者地区划分的,对于一些正在处于设计状态的网站而言,可以先选择一部分的用户作为灰度用户,灰度用户可以先于普通用户访问该网站,并且在访问后协助网站开发者进行网站的改进,直到该网站满足用户的需求才进行上线,此时,普通用户也可以访问该网站。At present, the Internet access lines obtained by the DNS server are classified according to operators or regions. For some websites that are in the design state, some users can be selected as grayscale users first, and grayscale users can access the website before ordinary users. And after the visit, assist the website developer to improve the website until the website meets the user's needs before going online. At this time, the ordinary user can also access the website.
然而,为了便于管理和监控灰度用户对待上线网站的操作,开发者需要精确查找到这部分灰度用户,如果通过运营商或者地区的不同划分用户,可能会因为范围较广而出现较难定位灰度用户的情况。However, in order to facilitate the management and monitoring of grayscale users' operations on online websites, developers need to find these grayscale users accurately. If users are divided by operators or regions, it may be difficult to locate because of the wide range. The case of grayscale users.
发明内容Summary of the invention
本申请实施例提供了一种业务平台地址解析的方法、相关设备及系统,通过采用自定义线路可以定位到一个更精确的范围,以便为该范围内的用户提供业务,自定义线路是业务开发者根据需要预先设置的一个线路,从而提升方案的灵活度和实用性,同时也便于选取灰度用户进行业务体验。The embodiment of the present application provides a method, a related device, and a system for address resolution of a service platform. By adopting a customized line, a more precise range can be located to provide services for users in the range, and the customized line is a service development. According to the need to set a line in advance, thereby improving the flexibility and practicability of the solution, and also facilitating the selection of grayscale users for business experience.
有鉴于此,本申请实施例第一方面提供了一种业务平台地址解析的方法,包括:In view of this, the first aspect of the embodiments of the present application provides a method for address resolution of a service platform, including:
服务器接收终端发送的域名系统DNS解析请求,DNS解析请求包括待解析域名;The server receives the domain name system DNS resolution request sent by the terminal, and the DNS resolution request includes the domain name to be resolved;
服务器根据DNS解析请求获取终端的目标网际协议IP信息;The server acquires the target Internet Protocol IP information of the terminal according to the DNS resolution request;
若目标IP信息存在对应的目标自定义线路,则服务器根据目标自定义线路获取预先设置的第一解析记录,第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接; If the target IP information has a corresponding target custom line, the server obtains a preset first parsing record according to the target custom line, where the first parsing record is used to indicate that the terminal establishes a communication connection with the first target server of the domain to be resolved;
服务器根据预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。The server sends the first IP address corresponding to the domain name to be resolved to the terminal according to the first parsing record set in advance.
本申请实施例第二方面提供了一种业务平台地址解析的方法,包括:The second aspect of the embodiment of the present application provides a method for address resolution of a service platform, including:
终端向服务器发送域名系统DNS解析请求,DNS解析请求包括待解析域名,DNS解析请求用于服务器获取终端的目标网际协议IP信息;The terminal sends a domain name system DNS resolution request to the server, the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal;
若目标IP信息存在对应的目标自定义线路,则终端接收服务器发送的待解析域名对应的第一IP地址,第一IP地址为服务器根据目标自定义线路获取预先设置的第一解析记录所确定的,第一解析记录用于指示终端与目标服务器建立通信连接。If the target IP information has a corresponding target custom line, the terminal receives the first IP address corresponding to the to-be-resolved domain name sent by the server, where the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line. The first parsing record is used to instruct the terminal to establish a communication connection with the target server.
本申请实施例第三方面提供了一种服务器,包括:A third aspect of the embodiments of the present application provides a server, including:
第一接收模块,用于接收终端发送的域名系统DNS解析请求,DNS解析请求包括待解析域名;a first receiving module, configured to receive a domain name system DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved;
第一获取模块,用于根据第一接收模块接收的DNS解析请求获取终端的目标网际协议IP信息;a first acquiring module, configured to acquire, according to a DNS resolution request received by the first receiving module, target network protocol IP information of the terminal;
第二获取模块,用于若第一获取模块获取的目标IP信息存在对应的目标自定义线路,则根据目标自定义线路获取预先设置的第一解析记录,第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接;a second obtaining module, configured to acquire a preset first parsing record according to the target custom line, if the target IP information acquired by the first acquiring module has a corresponding target custom line, where the first parsing record is used to indicate the terminal and the waiting Resolving the first target server of the domain name to establish a communication connection;
第一发送模块,用于根据第二获取模块获取的预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。The first sending module is configured to send, according to the preset first parsing record acquired by the second obtaining module, the first IP address corresponding to the domain name to be resolved to the terminal.
本申请实施例第四方面提供了一种终端,包括:A fourth aspect of the embodiments of the present application provides a terminal, including:
第一发送模块,用于向服务器发送域名系统DNS解析请求,DNS解析请求包括待解析域名,DNS解析请求用于服务器获取终端的目标网际协议IP信息;a first sending module, configured to send a domain name system DNS resolution request to the server, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal;
第一接收模块,用于若目标IP信息存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第一IP地址,第一IP地址为服务器根据目标自定义线路获取预先设置的第一解析记录所确定的,第一解析记录用于指示终端与目标服务器建立通信连接。The first receiving module is configured to: if the target IP information has a corresponding target customized line, receive a first IP address corresponding to the domain name to be resolved sent by the server, where the first IP address is obtained by the server according to the target customized line. The first parsing record is used to indicate that the terminal establishes a communication connection with the target server.
本申请实施例第五方面提供了一种业务平台地址解析系统,包括如上述第三方面提供的服务器以及第四方面提供的终端。A fifth aspect of the embodiments of the present application provides a service platform address resolution system, including the server provided by the foregoing third aspect, and the terminal provided by the fourth aspect.
本申请实施例第六方面提供了一种存储介质,存储介质用于存储程序代码,程序代码用于执行如上述第一方面提供的述的业务平台地址解析的方法。A sixth aspect of the embodiments of the present application provides a storage medium, where the storage medium is used to store program code, and the program code is used to execute the method for service platform address resolution as described in the first aspect above.
本申请实施例第七方面提供了一种存储介质,存储介质用于存储程序代码,程序代码用于执行如上述第二方面提供的述的业务平台地址解析的方法。A seventh aspect of the embodiments of the present application provides a storage medium, where the storage medium is used to store program code, and the program code is used to execute the method for service platform address resolution as described in the second aspect above.
本申请实施例第八方面提供了一种包括指令的计算机程序产品,当其在服务器上运行时,使得服务器执行如上述第一方面提供的述的业务平台地址解析的方法。An eighth aspect of the embodiments of the present application provides a computer program product comprising instructions, when executed on a server, causing a server to perform a method for address resolution of a service platform as described in the first aspect above.
本申请实施例第九方面提供了一种包括指令的计算机程序产品,当其在终端上运行时,使得终端执行如上述第二方面提供的述的业务平台地址解析的方法。A ninth aspect of the embodiments of the present application provides a computer program product comprising instructions, when executed on a terminal, causing the terminal to perform the method for address resolution of the service platform as described in the second aspect above.
从以上技术方案可以看出,本申请实施例具有以下优点:As can be seen from the above technical solutions, the embodiments of the present application have the following advantages:
本申请实施例中,提供了一种业务平台地址解析的方法,服务器先接收终端发送的DNS解析请求,该DNS解析请求中包括待解析域名,然后根据DNS解析请求获取终端的目标IP信息,如果目标IP信息存在对应的目标自定义线路,则可以根据目标自定义线路获取预 先设置的包括该目标自定义线路的第一解析记录,该第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接,最后根据用户预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。自定义线路是业务开发者根据需要预先设置的一个线路,采用自定义线路可以定义对应的IP地址范围,以便使该IP地址范围内的用户终端可以获得访问域名对应的特定IP地址,即为更精确范围内的用户提供业务,从而提升方案的灵活度和实用性,同时也便于选取灰度用户进行业务体验。In the embodiment of the present application, a method for address resolution of a service platform is provided. The server first receives a DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved, and then obtains a target IP information of the terminal according to the DNS resolution request. If the target IP information has a corresponding target custom line, you can obtain the pre-defined line according to the target. First, the first parsing record of the target custom line is set, the first parsing record is used to indicate that the terminal establishes a communication connection with the first target server of the domain name to be resolved, and finally, according to the first parsing record preset by the user, to the terminal. Send the first IP address corresponding to the domain name to be resolved. The custom line is a line set by the service developer according to the need. The custom line can be used to define the corresponding IP address range, so that the user terminal in the IP address range can obtain the specific IP address corresponding to the access domain name, that is, Users within a precise range provide services, which enhances the flexibility and practicability of the solution, and also facilitates the selection of grayscale users for business experience.
附图说明DRAWINGS
图1为本申请实施例中业务平台地址解析系统架构图;1 is a structural diagram of a service platform address resolution system in an embodiment of the present application;
图2为本申请实施例中业务平台地址解析的方法一个交互实施例示意图;2 is a schematic diagram of an interaction embodiment of a method for address resolution of a service platform in an embodiment of the present application;
图3为本申请实施例中业务平台地址解析的方法一个实施例示意图;FIG. 3 is a schematic diagram of an embodiment of a method for address resolution of a service platform according to an embodiment of the present application;
图4为本申请实施例中解析记录的静态结构示意图;4 is a schematic diagram of a static structure of an analytical record in an embodiment of the present application;
图5为本申请实施例中业务平台地址解析的方法另一个实施例示意图;FIG. 5 is a schematic diagram of another embodiment of a method for address resolution of a service platform according to an embodiment of the present application;
图6为本申请实施例中添加自定义线路的交互流程示意图;6 is a schematic diagram of an interaction process of adding a custom line in the embodiment of the present application;
图7为应用场景中添加自定义线路的界面示意图;FIG. 7 is a schematic diagram of an interface for adding a custom line in an application scenario;
图8为本申请实施例中服务器一个实施例示意图;FIG. 8 is a schematic diagram of an embodiment of a server in an embodiment of the present application;
图9为本申请实施例中服务器另一个实施例示意图;FIG. 9 is a schematic diagram of another embodiment of a server in an embodiment of the present application;
图10为本申请实施例中服务器另一个实施例示意图;FIG. 10 is a schematic diagram of another embodiment of a server in an embodiment of the present application;
图11为本申请实施例中服务器另一个实施例示意图;11 is a schematic diagram of another embodiment of a server in an embodiment of the present application;
图12为本申请实施例中服务器另一个实施例示意图;12 is a schematic diagram of another embodiment of a server in an embodiment of the present application;
图13为本申请实施例中终端一个实施例示意图;FIG. 13 is a schematic diagram of an embodiment of a terminal in an embodiment of the present application;
图14为本申请实施例中终端另一个实施例示意图;FIG. 14 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application;
图15为本申请实施例中终端另一个实施例示意图;15 is a schematic diagram of another embodiment of a terminal in an embodiment of the present application;
图16为本申请实施例中服务器一个结构示意图;16 is a schematic structural diagram of a server in an embodiment of the present application;
图17为本申请实施例中终端一个结构示意图;17 is a schematic structural diagram of a terminal in an embodiment of the present application;
图18为本申请实施例中业务平台地址解析系统一个实施例示意图。FIG. 18 is a schematic diagram of an embodiment of a service platform address resolution system according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供了一种业务平台地址解析的方法、相关设备及系统,通过采用自定义线路可以定位到一个更精确的IP地址范围,以便为该IP地址范围内的用户提供业务,自定义线路可以是业务开发者根据需要预先设置的一个线路,从而提升方案的灵活度和实用性,同时也便于选取灰度用户进行业务体验。The embodiment of the present application provides a method, a related device, and a system for address resolution of a service platform. By using a customized line, a more precise IP address range can be located to provide services for users in the IP address range, and the customization is performed. The line can be a line set by the service developer according to the need, thereby improving the flexibility and practicability of the solution, and also facilitating the selection of the grayscale user for the service experience.
本申请实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系 统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the embodiments of the present application and the above figures are used to distinguish similar objects, and It is not necessary to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate, such that the embodiments of the present application described herein can be implemented, for example, in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprising" and any variants thereof are intended to cover a non-exclusive inclusion, for example, a process, method, or process comprising a series of steps or units. The system, product or device is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
应理解,本申请实施例可以应用于业务平台地址解析系统,请参阅图1,图1为本申请实施例中业务平台地址解析系统架构图,如图1所示,DNS服务器除了可以分别获取电信(一网络运营商)用户、移动(另一网络运营商)用户以及联通(又一网络运营商)用户对应线路访问某一域名对应的IP地址,还可以获取自定义用户终端访问该域名的IP地址,然后各线路的终端通过DNS服务器得到的IP地址,可以访问各线路对应的该域名的服务器,对于自定义用户而言,即可以访问特定的服务器,且DNS服务器设置了该特定服务器的“白名单”,在“白名单”中加入了可访问用户的IP地址,通常情况下,这些可访问用户是灰度用户。例如,移动用户的终端向DNS服务器发送包括某一域名的DNS解析请求,DNS服务器可以获取移动用户线路访问该域名的IP地址,移动用户的终端可以通过该IP地址访问该域名。自定义用户可以通过DNS服务器获取的访问域名的特定IP地址,以访问该域名对应的特定服务器,从而可以使某些自定义用户访问到域名的特定服务器。It should be understood that the embodiment of the present application can be applied to a service platform address resolution system. Please refer to FIG. 1. FIG. 1 is a structural diagram of a service platform address resolution system according to an embodiment of the present application. As shown in FIG. (a network operator) user, mobile (another network operator) user, and Unicom (another network operator) user access the IP address corresponding to a domain name, and can also obtain the IP address of the custom user terminal to access the domain name. Address, and then the terminal of each line through the IP address obtained by the DNS server, can access the server of the domain name corresponding to each line, for a custom user, that is, a specific server can be accessed, and the DNS server sets the specific server " Whitelist, which adds the IP address of the accessible user to the "whitelist". Typically, these accessible users are grayscale users. For example, the terminal of the mobile user sends a DNS resolution request including a domain name to the DNS server, and the DNS server can obtain the IP address of the mobile subscriber line to access the domain name, and the terminal of the mobile user can access the domain name through the IP address. The specific IP address of the access domain name that the user can obtain through the DNS server can access the specific server corresponding to the domain name, so that some custom users can access the specific server of the domain name.
DNS服务器可以理解为具有域名和IP地址相互映射的一个分布式数据库,能够使用户更方便的访问互联网,而不用去记住能够被机器直接读取的IP数串。DNS服务器通过主机名,最终得到该主机名对应的IP地址的过程叫做域名解析。DNS协议运行在用户数据报协议(英文全称:User Datagram Protocol,英文缩写:UDP)协议之上,使用端口号53。在一系列以编号排定的文件(英文全称:Request For Comments,英文缩写:RFC)中RFC 2181对DNS有规范说明,RFC 2136对DNS的动态更新进行说明,RFC 2308对DNS查询的反向缓存进行说明。A DNS server can be understood as a distributed database with a domain name and an IP address mapped to each other, which enables users to access the Internet more conveniently without having to remember the IP number string that can be directly read by the machine. The process of obtaining the IP address corresponding to the host name by the DNS server through the host name is called domain name resolution. The DNS protocol runs on the User Datagram Protocol (English Datagram Protocol, English abbreviation: UDP) protocol and uses port number 53. In a series of numbered documents (English full name: Request For Comments, English abbreviation: RFC), RFC 2181 has a specification for DNS, RFC 2136 describes the dynamic update of DNS, and RFC 2308 reverse buffers for DNS queries. Be explained.
主机名到IP地址的映射可以有两种方式:There are two ways to map a host name to an IP address:
1)静态映射,每台终端设备上都配置主机名到IP地址的映射,各终端设备独立维护自己的映射表,而且只供本终端设备使用;1) Static mapping, each terminal device is configured with a mapping from host name to IP address, and each terminal device independently maintains its own mapping table, and is only used by the terminal device;
2)动态映射,建立一套域名解析系统,在专门的DNS服务器上配置主机名到IP地址的映射,网络上需要使用主机名通信的设备,首先需要到DNS服务器查询主机名所对应的IP地址。2) Dynamic mapping, establish a set of domain name resolution system, configure the mapping of host name to IP address on a dedicated DNS server. The device that needs to communicate with the host name on the network needs to first query the DNS server for the IP address corresponding to the host name.
通过主机名,最终得到该主机名对应的IP地址的过程叫做域名解析(或主机名解析)。在解析域名时,可以首先采用静态域名解析的方法,如果静态域名解析不成功,再采用动态域名解析的方法。可以将一些常用的域名放入静态域名解析表中,这样可以大大提高域名解析效率。The process of obtaining the IP address corresponding to the host name by the host name is called domain name resolution (or host name resolution). When resolving a domain name, you can first use the static domain name resolution method. If the static domain name resolution is unsuccessful, the dynamic domain name resolution method is adopted. You can put some commonly used domain names into the static domain name resolution table, which can greatly improve the efficiency of domain name resolution.
为了便于理解,请参阅图2,图2为本申请实施例中业务平台地址解析的方法一个交互实施例示意图,如图所示,具体为:For ease of understanding, please refer to FIG. 2. FIG. 2 is a schematic diagram of an interaction embodiment of a method for address resolution of a service platform according to an embodiment of the present application.
步骤101中,用户通过终端向DNS服务器发送DNS解析请求,该DNS解析请求包括待解析域名,该DNS解析请求将用于指示DNS服务器中的DNS解析程序开始进行域名解析。且一个DNS解析请求只属于一个域名。In step 101, the user sends a DNS resolution request to the DNS server through the terminal, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used to instruct the DNS resolution program in the DNS server to start domain name resolution. And a DNS resolution request belongs to only one domain name.
步骤102中,DNS解析程序获取到终端的IP地址,该终端的IP地址可以为终端的DNS IP地址,DNS IP地址可以理解为网络运营商为该终端分配的IP地址。终端的IP地址也可 以为终端的实际IP地址。In step 102, the DNS resolver obtains the IP address of the terminal, and the IP address of the terminal may be the DNS IP address of the terminal, and the DNS IP address may be understood as the IP address assigned by the network operator to the terminal. The IP address of the terminal is also available. Think of the actual IP address of the terminal.
步骤103中,DNS解析程序根据终端IP地址以及待解析域名定位到某个IP地址范围。具体地,DNS解析程序会为每个域名在后台数据库中保存自定义线路信息,自定义线路信息对应有一个或多个IP地址范围,则根据待解析域名可以获取到该待解析域名的自定义线路信息,进一步可以将终端IP地址在该自定义线路信息对应的一个或多个IP地址范围中进行查找,将终端IP地址定位到该自定义线路信息对应的某一IP地址范围。In step 103, the DNS resolver locates a certain IP address range according to the terminal IP address and the domain name to be resolved. Specifically, the DNS resolver saves the custom line information in the background database for each domain name, and the custom line information corresponds to one or more IP address ranges, and the custom domain name can be obtained according to the domain name to be resolved. The line information may further search for the terminal IP address in one or more IP address ranges corresponding to the customized line information, and locate the terminal IP address to a certain IP address range corresponding to the customized line information.
步骤104中,DNS解析程序根据IP地址范围定位到的自定义线路,以此能够确定唯一的自定义线路标识。In step 104, the DNS resolver locates the customized line according to the IP address range, thereby being able to determine a unique custom line identifier.
各个自定义线路标识具有唯一标识,在根据终端IP地址以及待解析域名定位到某个IP地址范围时,也可以获知该IP地址范围所属的自定义线路标识。Each of the custom line identifiers has a unique identifier. When the IP address of the terminal and the domain name to be resolved are located to a certain IP address range, the custom line identifier to which the IP address range belongs can also be known.
步骤105中,然后DNS解析程序根据自定义线路标识得到用户设置的域名记录。域名记录包括域名与访问该域名的IP地址之间的对应关系。In step 105, the DNS resolver then obtains the domain name record set by the user according to the customized line identifier. The domain name record includes the correspondence between the domain name and the IP address that accesses the domain name.
具体地,DNS解析程序根据自定义线路标识去查找域名记录设置,如果能够查找到,说明设置了该自定义线路的域名解析,反之,如果没有找到自定义线路的域名解析,则按照普通的线路进行处理,定位到普通线路的标识,在进一步查找用户是否设置了该普通线路的域名解析。Specifically, the DNS resolver searches for the domain name record setting according to the customized line identifier. If it can be found, the domain name resolution of the custom line is set, and if the domain name resolution of the custom line is not found, the ordinary line is followed. The processing is performed to locate the identifier of the normal line, and further find whether the user has set the domain name resolution of the ordinary line.
步骤106中,DNS解析程序根据查找结果,向终端返回设置好的域名记录值。域名记录值可以理解为访问该待解析域名的IP地址,访问该待解析域名的IP地址可以理解为待解析域名对应的某一服务器的IP地址。In step 106, the DNS resolver returns the set domain name record value to the terminal according to the search result. The value of the domain name record can be understood as the IP address of the domain name to be resolved. The IP address of the domain name to be resolved can be understood as the IP address of a server corresponding to the domain name to be resolved.
例如待解析域名为域名1,针对域名1有自定义线路1,存在域名记录为域名1以及访问域名1的IP地址1,则可以向终端反馈IP地址1,以使终端使用IP地址1访问域名1。For example, if the domain name to be resolved is domain name 1, the domain name 1 has a custom line 1, and the domain name record is domain name 1 and the IP address 1 of the domain name 1 is accessed, the terminal can feed back the IP address 1 to enable the terminal to use the IP address 1 to access the domain name. 1.
下面将从服务器的角度,对本申请中业务平台地址解析的方法进行介绍,请参阅图3,本申请实施例中业务平台地址解析的方法一个实施例包括:The following is a description of the method for address resolution of the service platform in the present application from the perspective of the server. Referring to FIG. 3, an embodiment of the method for address resolution of the service platform in the embodiment of the present application includes:
201、接收终端发送的域名系统DNS解析请求,DNS解析请求包括待解析域名。201. Receive a domain name system DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved.
本实施例中,DNS服务器接收终端发送的DNS解析请求,该DNS解析请求中携带了用户通过终端请求的一个域名,且一个DNS解析请求对应一个域名,该域名为待解析域名。域名是由一串用点分隔的名字组成的网络上某一台计算机或计算机组的名称,用于在数据传输时标识计算机的电子方位,有时也指地理位置,地理上的域名,指代有行政自主权的一个地方区域。域名是一个IP地址上的“面具”。域名的目的是便于记忆和沟通的一组服务器的地址。In this embodiment, the DNS server receives the DNS resolution request sent by the terminal, and the DNS resolution request carries a domain name requested by the user through the terminal, and a DNS resolution request corresponds to a domain name, and the domain name is a domain name to be resolved. A domain name is the name of a computer or group of computers on a network consisting of a series of dot-separated names. It is used to identify the electronic orientation of a computer during data transmission, and sometimes also refers to geographic location, geographic domain name, and A local area of administrative autonomy. A domain name is a "mask" on an IP address. The purpose of the domain name is to facilitate the memorization and communication of the addresses of a group of servers.
202、根据DNS解析请求获取终端的目标IP信息。202. Obtain target IP information of the terminal according to the DNS resolution request.
本实施例中,DNS服务器根据DNS解析请求获取终端对应的目标IP信息,该目标IP信息中包括IP地址,还可以包括IP地址所在的IP地址范围信息。In this embodiment, the DNS server obtains the target IP information corresponding to the terminal according to the DNS resolution request, and the target IP information includes an IP address, and may also include IP address range information where the IP address is located.
203、若目标IP信息存在对应的目标自定义线路,则根据目标自定义线路获取预先设置的第一解析记录,第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接。203. If the target IP information has a corresponding target custom line, obtain a pre-set first parsing record according to the target custom line, where the first parsing record is used to instruct the terminal to establish a communication connection with the first target server of the domain to be resolved.
本实施例中,DNS服务器根据目标IP信息判断后台数据库中是否存储了该目标IP信 息对应的目标自定义线路,如果存在,则DNS服务器根据自定义线路获取预先设置的第一解析记录。In this embodiment, the DNS server determines, according to the target IP information, whether the target IP address is stored in the background database. The target custom line corresponding to the information, if present, the DNS server obtains the preset first parsing record according to the custom line.
其中,第一解析记录可以用于指示用户使用的终端与待解析域名的第一目标服务器建立通信连接,第一目标服务器可以为访问待解析域名的指定的用户提供业务。此外,第一解析记录中可以包括用户预先设置的记录标识、记录名称、记录值以及自定义线路标识中的至少一项。The first resolution record may be used to indicate that the terminal used by the user establishes a communication connection with the first target server of the domain name to be resolved, and the first target server may provide a service for the specified user accessing the domain name to be resolved. In addition, the first parsing record may include at least one of a record identifier, a record name, a record value, and a custom line identifier set by the user in advance.
记录标识是域名,例如“www.aabbcc.com”,记录名称为主机名称,例如“admin”,记录值为IP地址,例如“8.8.8.8”,自定义线路标识为DNS随机分配或者用户设定一个唯一标识,用于区别不同的自定义线路。The record identifier is a domain name, such as "www.aabbcc.com", the record name is the host name, such as "admin", the record value is an IP address, such as "8.8.8.8", and the custom line identifier is DNS random assignment or user setting. A unique identifier that distinguishes between different custom lines.
则可以根据自定义路线标识确定包括该标识的第一解析记录,从第一解析记录中获取待解析域名对应的记录值,该记录值即为用于访问待解析域名的第一目标服务器的第一IP地址。And determining, by the first route record, the first resolution record that includes the identifier, and obtaining, from the first resolution record, a record value corresponding to the domain name to be resolved, where the record value is the first target server used to access the domain name to be resolved. An IP address.
204、根据用户预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。204. Send, according to the first parsing record set by the user, the first IP address corresponding to the domain name to be resolved.
本实施例中,DNS服务器从后台数据库中获取到第一解析记录后,可以向终端发送第一解析记录中的记录值,即待解析域名对应的第一IP地址,从而使得终端通过第一IP地址与待解析域名的第一目标服务器建立通信连接,并且可以使终端从目标服务器上获取相应的业务。In this embodiment, after obtaining the first parsing record from the background database, the DNS server may send the record value in the first parsing record to the terminal, that is, the first IP address corresponding to the domain name to be resolved, so that the terminal passes the first IP address. The address establishes a communication connection with the first target server of the domain to be resolved, and can enable the terminal to obtain the corresponding service from the target server.
本申请实施例中,提供了一种业务平台地址解析的方法,服务器先接收终端发送的DNS解析请求,该DNS解析请求中包括待解析域名,然后根据DNS解析请求获取终端的目标IP信息,如果目标IP信息存在对应的目标自定义线路,则可以根据目标自定义线路获取预先设置的包括该目标自定义线路的第一解析记录,该第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接,最后根据用户预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。自定义线路是业务开发者根据需要预先设置的一个线路,采用自定义线路可以定义对应的IP地址范围,以便使该IP地址范围内的用户终端可以获得访问域名对应的特定IP地址,即为更精确范围内的用户提供业务,从而提升方案的灵活度和实用性,同时也便于选取灰度用户进行业务体验。In the embodiment of the present application, a method for address resolution of a service platform is provided. The server first receives a DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved, and then obtains a target IP information of the terminal according to the DNS resolution request. If the target IP information has a corresponding target custom line, the first parsing record including the target custom line may be obtained according to the target custom line, where the first parsing record is used to indicate the first end of the terminal and the domain to be resolved. The target server establishes a communication connection, and finally sends a first IP address corresponding to the domain name to be resolved to the terminal according to the first resolution record set by the user. The custom line is a line set by the service developer according to the need. The custom line can be used to define the corresponding IP address range, so that the user terminal in the IP address range can obtain the specific IP address corresponding to the access domain name, that is, Users within a precise range provide services, which enhances the flexibility and practicability of the solution, and also facilitates the selection of grayscale users for business experience.
在上述图3对应的实施例的基础上,本申请实施例提供的业务平台地址解析的方法一个可选实施例中,根据DNS解析请求获取终端的目标网际协议IP信息之后,还可以包括:On the basis of the foregoing embodiment corresponding to FIG. 3, in an optional embodiment of the service platform address resolution method provided by the embodiment of the present application, after acquiring the target Internet Protocol IP information of the terminal according to the DNS resolution request, the method may further include:
通过后台数据库中存储的IP地址范围与自定义线路的对应关系,确定目标IP信息对应的目标自定义线路。The target customized line corresponding to the target IP information is determined by the correspondence between the IP address range stored in the background database and the customized line.
本实施例中,DNS服务器根据DNS解析请求获取终端的目标IP信息之后,可以DNS服务器中的后台数据库中查询IP地址范围与自定义线路的对应关系,该对应关系是用户预先设置的,比如待解析域名的“自定义线路5”包含了IP地址范围4.4.4.4至4.4.4.255,当目标IP信息中的IP地址为4.4.4.16,即可该目标IP信息对应待解析域名的“自定义线路5”。In this embodiment, after the DNS server obtains the target IP information of the terminal according to the DNS resolution request, the corresponding relationship between the IP address range and the customized line may be queried in the background database in the DNS server, and the corresponding relationship is preset by the user, for example, The "custom line 5" for resolving the domain name contains the IP address range 4.4.4.4 to 4.4.4.255. When the IP address in the target IP information is 4.4.4.16, the target IP information can correspond to the "custom line" of the domain to be resolved. 5".
在本申请实施例中,介绍了DNS服务器还可以通过后台数据库中存储的IP地址范围与自定义线路的对应关系,确定与目标IP信息对应的目标自定义线路。通过上述方式,便于DNS服务器查找目标IP信息关联的目标自定义线路,从而提升了方案的可靠性,在后 台数据库中查找对应关系,以此保证方案的可行性。In the embodiment of the present application, the DNS server can also determine the target customized line corresponding to the target IP information by using the correspondence between the IP address range stored in the background database and the customized line. In the above manner, the DNS server is convenient to find the target customized line associated with the target IP information, thereby improving the reliability of the solution. Find the corresponding relationship in the database to ensure the feasibility of the solution.
在本申请一些可能的实现方式中,通过后台数据库中存储的IP信息地址范围与自定义线路的对应关系,确定与目标IP信息对应关联的目标自定义线路的具体实现可以包括:In some possible implementation manners of the present application, the specific implementation of determining the target customized line that is associated with the target IP information by using the mapping between the IP address range and the customized line stored in the background database may include:
根据IP地址范围与自定义线路的对应关系,在待解析域名的自定义线路对应的IP地址范围内查找目标IP信息;According to the correspondence between the IP address range and the customized line, the target IP information is searched in the IP address range corresponding to the custom line of the domain name to be resolved;
将IP地址范围包括目标IP信息的待解析域名的自定义线路,确定为目标IP信息对应的目标自定义线路。The custom line of the domain name to be resolved whose IP address range includes the target IP information is determined as the target custom line corresponding to the target IP information.
根据预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址,包括:Sending, by the first parsing record set in advance, the first IP address corresponding to the domain name to be resolved, including:
从预先设置的第一解析记录中获取待解析域名对应的第一IP地址;向终端发送待解析域名对应的第一IP地址。The first IP address corresponding to the domain name to be resolved is obtained from the first parsed record, and the first IP address corresponding to the domain to be resolved is sent to the terminal.
请参阅图4,图4为本申请实施例中解析记录的静态结构示意图,解析记录可以为第一解析记录。如图所示,第一解析记录中可以包括域名记录,即域名的记录名和域名的记录值,域名的记录名可以为记录标识或者主机名称,记录标识可以为域名,例如“www.aabbcc.com”,主机名称例如“admin”,域名的记录值即为IP地址,如“8.8.8.8”。Referring to FIG. 4, FIG. 4 is a schematic diagram of a static structure of a parsing record in an embodiment of the present application, where the parsing record may be a first parsing record. As shown in the figure, the first resolution record may include a domain name record, that is, a record name of the domain name and a record value of the domain name, and the record name of the domain name may be a record identifier or a host name, and the record identifier may be a domain name, for example, “www.aabbcc.com ", the host name is "admin", the record value of the domain name is the IP address, such as "8.8.8.8".
一个域名记录可以对应一条自定义线路,第一解析记录中还可以包括自定义线路,自定义线路包括了自定义线路标识和自定义线路名称,其中,自定义线路标识是唯一的,而自定义线路名称可以根据需要进行设置。A domain name record can correspond to a custom line. The first resolution record can also include a custom line. The custom line includes a custom line identifier and a custom line name. The custom line identifier is unique and customized. The line name can be set as needed.
而一个自定义线路可以对应多个IP地址范围,即多个IP段。每个地址范围都需要包括一个起始IP地址和一个结束IP地址,以此构成一个合理的范围。IP地址范围可以是“2.2.2.2至2.2.2.2”,即只有一个IP地址组成的IP地址范围,也可以是“4.4.4.4至4.4.4.255”,即多个IP地址组成的IP地址范围,然而上述仅为一个示意,并不应理解为对本方案的限定。A custom line can correspond to multiple IP address ranges, that is, multiple IP segments. Each address range needs to include a starting IP address and an ending IP address to form a reasonable range. The IP address range can be "2.2.2.2 to 2.2.2.2", that is, an IP address range consisting of only one IP address, or "4.4.4.4 to 4.4.4.255", that is, an IP address range composed of multiple IP addresses. However, the above is only one illustration and should not be construed as limiting the present scheme.
DNS服务器根据DNS解析请求,可以确定需要待解析域名,以此获得待解析域名的自定义路线,再根据自定义路线对应的多个IP地址范围,在待解析域名的自定义路线对应的IP地址范围内查找目标IP信息,若DNS服务器判断在待解析域名的自定义路线对应的IP地址范围中存在终端的目标IP地址,则该自定义路线即为确定为目标IP信息对应的目标自定义线路,可以从后台数据库中目标自定义线路对应的第一解析记录中查找待解析域名的第一目标服务器的第一IP地址,并且向终端发送该第一IP地址。The DNS server can determine the domain name to be resolved according to the DNS resolution request, and obtain the customized route of the domain to be resolved, and then the IP address corresponding to the custom route of the domain to be resolved according to the multiple IP address ranges corresponding to the customized route. The target IP information is searched for in the range. If the DNS server determines that the target IP address of the terminal exists in the IP address range corresponding to the custom route of the domain name to be resolved, the customized route is the target customized line corresponding to the target IP information. The first IP address of the first target server of the domain to be resolved may be searched from the first parsing record corresponding to the target custom line in the background database, and the first IP address is sent to the terminal.
本申请实施例中,介绍了DNS服务器确定第一IP地址的方法,通过上述方式,使得DNS服务器可以利用用户预先设置的自定义线路为终端提供相应的IP地址,从而可以使特定的用户访问待访问域名的特定服务器,提升了方案的实用性和可行性。In the embodiment of the present application, a method for determining a first IP address by a DNS server is introduced. In the foregoing manner, the DNS server can provide a corresponding IP address for the terminal by using a custom line preset by the user, so that a specific user can access the user. Access to a specific server for the domain name enhances the usability and feasibility of the solution.
在上述实施例的基础上,本申请实施例提供的业务平台地址解析的方法另一个可选实施例中,还可以包括:On the basis of the foregoing embodiment, in another optional embodiment of the method for address resolution of the service platform provided by the embodiment of the present application, the method may further include:
接收自定义线路添加请求,自定义线路添加请求中携带待添加解析记录;Receiving a custom line add request, and the custom line add request carries the parsing record to be added;
将自定义线路添加请求中的待添加解析记录存储至后台数据库。Store the pending resolution record in the custom line add request to the backend database.
本实施例中,DNS服务器还可以接收至少一个终端发送的自定义线路添加请求,利用该自定义线路添加请求在后台数据库进行信息更新。 In this embodiment, the DNS server may further receive a custom line add request sent by at least one terminal, and use the custom line add request to update information in the background database.
具体地,用户通过终端向DNS服务器发送自定义线路添加请求,自定义线路添加请求中携带了一系列的待添加解析记录,例如记录标识、记录名称、记录值以及自定义线路标识中的至少一项。DNS服务器可以对自定义线路添加请求进行解析,得到用户设置的待添加解析记录,再将待添加解析记录存储到DNS服务器的后台数据库中。Specifically, the user sends a custom line add request to the DNS server through the terminal, where the custom line add request carries a series of parsing records to be added, such as at least one of a record identifier, a record name, a record value, and a custom line identifier. item. The DNS server can parse the custom line add request, obtain the parsing record to be added set by the user, and store the parsing record to be added to the backend database of the DNS server.
可以理解的是,针对同一个域名添加的多个自定义线路的IP地址范围不能有交集,在添加自定义线路时,DNS服务器会进行检查,这样可以保证对于同一个域名来说一个访问该域名的终端的IP地址只能对应到一个IP地址范围,进而定位到唯一的一条自定义线路。It can be understood that the IP address range of multiple custom lines added for the same domain name cannot have an intersection. When adding a custom line, the DNS server checks to ensure that one domain name is accessed for the same domain name. The IP address of the terminal can only correspond to a range of IP addresses, and thus locate a unique custom line.
本申请实施例中,DNS还可以实时接收自定义线路添加请求,自定义线路添加请求中携带了待添加解析记录,使得DNS服务器可以根据自定义线路添加请求,将自定义线路添加请求中的待添加解析记录存储至后台数据库。通过上述方式,便于可以根据需求实时地对DNS服务器的后台数据库进行更新,将访问目标服务器的终端范围精确到一个特定的范围,以此增强方案的可操作性。In the embodiment of the present application, the DNS may also receive a custom line add request in real time, and the custom line add request carries the parsing record to be added, so that the DNS server may add a request according to the custom line, and add the custom line to the request. Add a parsing record to the backend database. In the above manner, it is convenient to update the background database of the DNS server in real time according to requirements, and to narrow the terminal range of the access target server to a specific range, thereby enhancing the operability of the solution.
在上述实施例的基础上,本申请实施例提供的业务平台地址解析的方法另一个可选实施例中,根据DNS解析请求获取终端的目标IP信息之后,还可以包括:On the basis of the foregoing embodiment, in another optional embodiment of the service platform address resolution method provided by the embodiment of the present application, after acquiring the target IP information of the terminal according to the DNS resolution request, the method may further include:
若目标IP信息不存在对应的目标自定义线路,则按照预置优先级查找目标IP信息对应的第二解析记录,第二解析记录用于指示终端与待解析域名的第二目标服务器建立通信连接;If the target IP information does not have a corresponding target custom line, the second parsing record corresponding to the target IP information is searched according to the preset priority, and the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain to be resolved. ;
根据第二解析记录,向终端发送待解析域名对应的第二IP地址。And sending, according to the second parsing record, the second IP address corresponding to the domain name to be resolved to the terminal.
本实施例中,如果DNS服务器通过查找后台数据库中IP地址范围与自定义线路的对应关系,确定目标IP信息没有对应的目标自定义线路,那么就按照预置优先级查找目标IP对应的第二解析记录。第二解析记录用于指示终端与待解析域名的第二目标服务器建立通信连接。In this embodiment, if the DNS server finds that the target IP information does not have a corresponding target customized line by searching the correspondence between the IP address range in the background database and the customized line, then the second corresponding to the target IP is searched according to the preset priority. Analyze the record. The second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain name to be resolved.
具体地,在DNS服务器中默认自定义线路的优先级最高,例如当目标IP信息对应了待解析域名的“自定义线路5”、“深圳(中国的一个城市名)电信线路”、“广东(中国的一个省名)电信线路”和“中国电信线路”,DNS服务器会优先通过“自定义线路5”建立终端到待解析域名的目标服务器的通信连接。如果目标IP信息没有对应的自定义线路,则DNS按照预置优先级,通过“深圳电信线路”建立终端到待解析域名的另一目标服务器的通信连接,以此类推,得到预置优先级顺序为自定义线路、城市运营线路、省内运营线路以及国家运营线路。Specifically, the default custom line has the highest priority in the DNS server, for example, when the target IP information corresponds to the "custom line 5" of the domain to be resolved, "shenzhen (a city name of China) telecommunications line", "Guangdong ( In China, a provincial name) "telecom line" and "China Telecom line", the DNS server will preferentially establish a communication connection from the terminal to the target server of the domain to be resolved through "custom line 5". If the target IP information does not have a corresponding custom line, the DNS establishes a communication connection of the terminal to another target server of the domain to be resolved through the "Shenzhen Telecom Line" according to the preset priority, and so on, and obtains the preset priority order. It is a custom line, a city operation line, a provincial operation line, and a national operation line.
DNS服务器查找目标IP信息所使用的路线,确定该路线对应的第二解析记录,该第二解析记录中也包括了预先设置的记录标识、记录名称、记录值以及自定义线路标识中的至少一项,同样地,根据第二解析记录,DNS服务器向终端发送待解析域名对应的记录值,该记录值即为用于访问待解析域名的第二目标服务器的第二IP地址,使得终端采用第二IP地址与提供业务的目标服务器建立通信连接,并且获取相应的业务。The DNS server searches for the route used by the target IP information, and determines a second parsing record corresponding to the route. The second parsing record also includes at least one of a preset record identifier, a record name, a record value, and a custom line identifier. In the same manner, the DNS server sends a record value corresponding to the domain name to be resolved to the terminal, where the record value is the second IP address of the second target server for accessing the domain name to be resolved, so that the terminal adopts the first The second IP address establishes a communication connection with the target server that provides the service, and acquires the corresponding service.
本申请实施例中,若目标IP信息不存在对应的目标自定义线路,则DNS服务器按照预置优先级查找目标IP信息对应的第二解析记录,然后根据第二解析记录,向终端发送第二IP地址。通过上述方式,DNS服务器还可以向非自定义线路对应的终端发送第二IP地 址,保证了DNS可以根据优先级的先后顺序向终端发送相应的IP地址,从而提升了方案的实用性和可操作性。In the embodiment of the present application, if the target IP information does not have a corresponding target customized line, the DNS server searches for the second parsing record corresponding to the target IP information according to the preset priority, and then sends the second to the terminal according to the second parsing record. IP address. In the above manner, the DNS server may also send the second IP address to the terminal corresponding to the non-custom line. The address ensures that the DNS can send the corresponding IP address to the terminal according to the priority order, thereby improving the practicability and operability of the solution.
上述实施例是从服务器的角度对本申请中业务平台地址解析的方法进行介绍,下面将以终端的角度对本申请中业务平台地址解析的方法进行介绍,请参阅图5,本申请实施例中业务平台地址解析的方法一个实施例包括:The foregoing embodiment is a method for analyzing the address of the service platform in the present application from the perspective of the server. The method for the address resolution of the service platform in the present application is introduced from the perspective of the terminal. Referring to FIG. 5, the service platform in the embodiment of the present application is provided. An embodiment of the method of address resolution includes:
301、向服务器发送域名系统DNS解析请求,DNS解析请求包括待解析域名,DNS解析请求用于服务器获取终端的目标网际协议IP信息。301. Send a domain name system DNS resolution request to the server, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal.
本实施例中,首先由终端向DNS服务器发送DNS解析请求,该DNS解析请求中携带了用户通过终端请求的一个域名,且一个DNS解析请求对应一个域名,该域名为待解析域名。DNS服务器接收到该请求后,根据DNS解析请求获取终端对应的目标IP信息,该目标IP信息中包括终端的IP地址,此外,还可以包括IP地址所在的IP地址范围信息。In this embodiment, the terminal first sends a DNS resolution request to the DNS server, where the DNS resolution request carries a domain name requested by the user, and a DNS resolution request corresponds to a domain name, and the domain name is a domain name to be resolved. After receiving the request, the DNS server obtains the target IP information corresponding to the terminal according to the DNS resolution request. The target IP information includes the IP address of the terminal, and may further include the IP address range information of the IP address.
302、若目标IP信息存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第一IP地址,第一IP地址为服务器根据目标自定义线路获取预先设置的第一解析记录所确定的,第一解析记录用于指示终端与目标服务器建立通信连接。302. If the target IP information has a corresponding target customized line, the first IP address corresponding to the to-be-resolved domain name sent by the server is received, and the first IP address is determined by the server according to the target custom line acquisition preset first parsing record. The first parsing record is used to instruct the terminal to establish a communication connection with the target server.
本实施例中,DNS服务器根据目标IP信息判断后台数据库中是否存储了该目标IP信息对应的目标自定义线路,如果存在,则DNS服务器根据自定义线路获取预先设置的第一解析记录,并向终端发送第一解析记录中的第一IP地址。其中,第一解析记录用于指示用户使用的终端与待解析域名的第一目标服务器建立通信连接,第一目标服务器可以为访问待解析域名的指定的用户提供业务。此外,第一解析记录中可以包括用户预先设置的记录标识、记录名称、记录值以及自定义线路标识中的至少一项。In this embodiment, the DNS server determines, according to the target IP information, whether the target customized line corresponding to the target IP information is stored in the background database, and if yes, the DNS server obtains the preset first parsing record according to the customized line, and The terminal sends the first IP address in the first resolution record. The first resolution record is used to indicate that the terminal used by the user establishes a communication connection with the first target server of the domain name to be resolved, and the first target server may provide a service for the specified user accessing the domain name to be resolved. In addition, the first parsing record may include at least one of a record identifier, a record name, a record value, and a custom line identifier set by the user in advance.
服务器向终端发送第一解析记录中的第一IP地址的实现过程可以参见上述实施例,在此不再赘述。For the implementation process of the server to send the first IP address in the first parsing record to the terminal, refer to the foregoing embodiment, and details are not described herein again.
终端通过第一IP地址可以与待解析域名的第一目标服务器建立通信连接,并且可以从目标服务器上获取相应的业务。The terminal establishes a communication connection with the first target server of the domain to be resolved through the first IP address, and can obtain the corresponding service from the target server.
本申请实施例中,提供了一种业务平台地址解析的方法,终端向服务器发送DNS解析请求,DNS解析请求包括待解析域名,DNS解析请求用于服务器获取终端的目标网际协议IP信息。若目标IP信息存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第一IP地址,第一IP地址为服务器根据目标自定义线路获取预先设置的第一解析记录所确定的,第一解析记录用于指示终端与目标服务器建立通信连接。通过上述方式,采用自定义线路可以定义对应的IP地址范围,以便使该IP地址范围内的用户终端可以获得访问域名对应的特定IP地址,即为更精确范围内的用户提供业务,从而提升方案的灵活度和实用性,同时也便于选取灰度用户进行业务体验。In the embodiment of the present application, a method for address resolution of a service platform is provided. The terminal sends a DNS resolution request to the server. The DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal. If the target IP information has a corresponding target custom line, the first IP address corresponding to the to-be-resolved domain name sent by the server is received, and the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line. The first resolution record is used to instruct the terminal to establish a communication connection with the target server. In the above manner, a custom line can be used to define a corresponding IP address range, so that the user terminal in the IP address range can obtain a specific IP address corresponding to the access domain name, that is, provide services for users in a more precise range, thereby improving the solution. Flexibility and practicality, but also easy to select grayscale users for business experience.
在上述实施例的基础上,本申请实施例提供的业务平台地址解析的方法一个可选实施例中,还可以包括:On the basis of the foregoing embodiment, in an optional embodiment of the service platform address resolution method provided by the embodiment of the present application, the method may further include:
接收自定义线路添加请求,自定义线路添加请求中携带待添加解析记录;Receiving a custom line add request, and the custom line add request carries the parsing record to be added;
向服务器发送自定义线路添加请求,以使服务器将待添加解析记录存储至后台数据库。Send a custom line add request to the server to have the server store the pending resolution record to the backend database.
本实施例中,终端可以接收用户发送的自定义线路添加请求,该自定义线路添加请求 携带了待添加解析记录,例如记录标识、记录名称、记录值以及自定义线路标识中的至少一项,DNS服务器根据自定义线路添加请求,解析该请求后将待添加解析记录存储至后台数据库,In this embodiment, the terminal may receive a custom line add request sent by the user, and the custom line add request Carrying at least one of the record to be added, such as a record identifier, a record name, a record value, and a custom line identifier, the DNS server adds a request according to the custom line, and parses the request to store the parsing record to be added to the background database.
请参与图6,图6为本申请实施例中添加自定义线路的交互流程示意图,如图所示,用户登录终端上的DNS服务器对应的DNS客户端,通过DNS客户端添加自定义线路,并且设置自定义线路对应的IP地址范围。在DNS服务器中的控制台S1把这条自定义线路写入DNS队列S2。DNS队列S2是一种特殊的线性表,特殊之处在于它只允许在表的前端进行删除操作,而在表的后端进行插入操作,和栈一样。DNS队列S2是一种操作受限制的线性表,进行插入操作的端称为队尾,进行删除操作的端称为队头。Please refer to FIG. 6. FIG. 6 is a schematic diagram of the interaction process of adding a custom line in the embodiment of the present application. As shown in the figure, the user logs in to the DNS client corresponding to the DNS server on the terminal, and adds a custom line through the DNS client, and Set the IP address range corresponding to the custom line. The console S1 in the DNS server writes this custom line to the DNS queue S2. The DNS queue S2 is a special kind of linear table. The special feature is that it only allows the delete operation at the front end of the table, and the insert operation at the back end of the table is the same as the stack. The DNS queue S2 is a linear table with restricted operations. The end that performs the insert operation is called the tail of the queue, and the end that performs the delete operation is called the head of the queue.
在DNS队列S2中包括关于自定义线路的信息,例如自定义线路标识,自定义线路的优先级,IP地址范围等。其中,自定义线路的优先级为最高级,其次可以优先级从高到低可以是市区运营商、省内运营商和国家运营商,需要说明的是,这仅仅为一个示意,并不应理解为对本申请的限定。Information about custom lines, such as custom line identification, custom line priority, IP address range, etc., is included in the DNS queue S2. Among them, the priority of the custom line is the highest level, and the priority of the line can be the city operator, the provincial operator and the national operator. It should be noted that this is only a schematic and should not be It is understood to be a limitation of the present application.
DNS解析程序S3会定时去拉取DNS队列S2,并且更新到本地缓存,以便支持该自定义线路。The DNS resolver S3 periodically pulls the DNS queue S2 and updates to the local cache to support the custom line.
可以理解的是,同一个域名添加的多个自定义线路的IP地址范围不能有交集,在添加自定义线路时,DNS服务器会进行检查,这样可以保证对于同一个域名来说一个访问该域名的终端的IP地址只能对应到一个IP地址范围,进而定位到唯一的一条自定义线路。It can be understood that the IP address range of multiple custom lines added by the same domain name cannot have an intersection. When adding a custom line, the DNS server checks to ensure that one domain name is accessed for the same domain name. The IP address of the terminal can only correspond to an IP address range, and then locates a unique custom line.
本申请实施例中,终端首先接收用户发送的自定义线路添加请求,自定义线路添加请求中携带待添加解析记录,然后向服务器发送自定义线路添加请求,以使服务器将待添加解析记录存储至后台数据库。通过上述方式,便于根据需求实时地对DNS服务器的后台数据库进行更新,将访问目标服务器的终端范围精确到一个特定的范围,以此增强方案的可操作性。In the embodiment of the present application, the terminal first receives a custom line add request sent by the user, and the custom line add request carries the parsing record to be added, and then sends a custom line add request to the server, so that the server stores the parsing record to be added to the server. Background database. In the above manner, it is convenient to update the background database of the DNS server in real time according to requirements, and the terminal range of the access target server is accurate to a specific range, thereby enhancing the operability of the solution.
在上述实施例的基础上,本申请实施例提供的业务平台地址解析的方法另一个可选实施例中,向服务器发送域名系统DNS解析请求之后,还可以包括:On the basis of the foregoing embodiment, in another optional embodiment of the service platform address resolution method provided by the embodiment of the present application, after the domain name system DNS resolution request is sent to the server, the method may further include:
若目标IP信息不存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第二IP地址,第二IP地址为服务器根据预置优先级查找IP信息对应的第二解析记录后确定的,第二解析记录用于指示终端与待解析域名的第二目标服务器建立通信连接。If the target IP information does not have a corresponding target custom line, the second IP address corresponding to the to-be-resolved domain name sent by the server is received, and the second IP address is determined by the server to search for the second parsing record corresponding to the IP information according to the preset priority. The second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain name to be resolved.
本实施例中,如果DNS服务器通过查找后台数据库中IP地址范围与自定义线路的对应关系,确定目标IP信息没有对应的目标自定义线路,那么就按照预置优先级查找目标IP对应的第二解析记录。In this embodiment, if the DNS server finds that the target IP information does not have a corresponding target customized line by searching the correspondence between the IP address range in the background database and the customized line, then the second corresponding to the target IP is searched according to the preset priority. Analyze the record.
具体地,在DNS服务器中默认自定义线路的优先级最高,例如当目标IP信息对应了待解析域名的“自定义线路5”、“深圳电信线路”、“广东电信线路”和“中国电信线路”,DNS服务器会优先通过“自定义线路5”建立终端到待解析域名的目标服务器的通信连接。如果目标IP信息没有对应的自定义线路,则DNS按照预置优先级,通过“深圳电信线路”建立终端到待解析域名的另一目标服务器的通信连接,以此类推,得到预置优先级顺序为自定义线路、城市运营线路、省内运营线路以及国家运营线路。 Specifically, the default custom line has the highest priority in the DNS server, for example, when the target IP information corresponds to the "custom line 5", "Shenzhen Telecom Line", "Guangdong Telecom Line", and "China Telecom Line" of the domain name to be resolved. The DNS server will preferentially establish a communication connection from the terminal to the target server of the domain to be resolved through "custom line 5". If the target IP information does not have a corresponding custom line, the DNS establishes a communication connection of the terminal to another target server of the domain to be resolved through the "Shenzhen Telecom Line" according to the preset priority, and so on, and obtains the preset priority order. It is a custom line, a city operation line, a provincial operation line, and a national operation line.
DNS服务器查找目标IP信息所使用的路线,确定该路线对应的第二解析记录,该第二解析记录中也包括了预先设置的记录标识、记录名称、记录值以及自定义线路标识中的至少一项,同样地,根据第二解析记录,DNS服务器向终端发送待解析域名对应的记录值,该记录值即为用于访问待解析域名的第二目标服务器的第二IP地址,使得终端采用第二IP地址与提供业务的目标服务器建立通信连接,并且获取相应的业务。The DNS server searches for the route used by the target IP information, and determines a second parsing record corresponding to the route. The second parsing record also includes at least one of a preset record identifier, a record name, a record value, and a custom line identifier. In the same manner, the DNS server sends a record value corresponding to the domain name to be resolved to the terminal, where the record value is the second IP address of the second target server for accessing the domain name to be resolved, so that the terminal adopts the first The second IP address establishes a communication connection with the target server that provides the service, and acquires the corresponding service.
本申请实施例中,若DNS服务器检测到目标IP信息不存在对应的目标自定义线路,则终端接收DNS服务器发送的第二IP地址,第二IP地址为服务器根据预置优先级查找目标IP信息对应的第二解析记录后确定的。通过上述方式,DNS服务器还可以向非自定义线路对应的终端发送第二IP地址,保证了DNS可以根据优先级的先后顺序向终端发送相应的IP地址,从而提升了方案的实用性和可操作性。In the embodiment of the present application, if the DNS server detects that the target IP information does not have a corresponding target customized line, the terminal receives the second IP address sent by the DNS server, and the second IP address is the server searches for the target IP information according to the preset priority. Corresponding to the second parsing record is determined. In the above manner, the DNS server can also send the second IP address to the terminal corresponding to the non-custom line, ensuring that the DNS can send the corresponding IP address to the terminal according to the priority order, thereby improving the practicability and operation of the solution. Sex.
为便于理解,下面可以以一个具体应用场景对本申请中业务平台地址解析的过程进行详细描述,具体为:For ease of understanding, the process of address resolution of the service platform in this application may be described in detail in a specific application scenario, specifically:
A公司是一家刚刚起步的互联网公司,目前该公司致力于开发一个用于设计师之间交流的网站,但是在正式上线前,A公司在自己公司内选择了某一层的设计师作为灰度用户进行测试,需要根据灰度用户的使用体验来对这个网站进行改善,从而达到更好的使用效果。Company A is a start-up Internet company. Currently, the company is committed to developing a website for communication between designers. However, before the official launch, Company A chose a layer of designers in its own company as a grayscale. Users need to test this website according to the user experience of grayscale users to achieve better use.
网站开发者先登录DNSPod网站,通过DNSPod网站可以自定义A公司一层设计师可以采用的自定义线路。具体地,图7为应用场景中添加自定义线路的界面示意图,网站开发者将灰度用户使用终端的IP地址加入到“我的自定义线路”,例如可以是“5.5.5.5-5.5.5.5”的IP地址范围以及“2.2.2.2-3.3.3.3”的IP地址范围,于是IP地址在这两个范围内的终端可以与网站开发者开发的新网站进行通信连接。Web developers first log in to the DNSPod website, and through the DNSPod website, they can customize the custom lines that can be used by the designer on the first floor of company A. Specifically, FIG. 7 is a schematic diagram of an interface for adding a custom line in an application scenario, and the website developer adds the IP address of the grayscale user terminal to the “My Custom Line”, for example, “5.5.5.5-5.5.5.5”. The IP address range and the IP address range of "2.2.2.2-3.3.3.3", so that the terminal with the IP address in these two ranges can communicate with the new website developed by the website developer.
此外,网站开发者还可以在图7对应的“我的自定义线路”中增加或者删除IP地址范围,从而调整灰度用户的范围。In addition, the website developer can also add or delete the IP address range in the "My Custom Line" corresponding to Figure 7, thereby adjusting the range of the grayscale user.
在“我的自定义线路”中,网站开发者还可以根据需要添加自定义线路标识,该标识是唯一的,既可以是用户自行添加的,也可以是DNS服务器分配的。此外,还可以添加记录值,即IP地址,该IP地址为提供新网站业务的服务器地址。同时,还可以添加记录名称,即域名,例如这个新网站的域名为“www.abcdefg.com”。利用灰度用户使用新网站的体验,便于网址开发者更新或者调节相应的功能。In "My Custom Lines", web developers can also add custom line IDs as needed. This ID is unique and can be either user-added or assigned by a DNS server. In addition, you can add a record value, the IP address, which is the server address that provides the new website service. At the same time, you can also add the record name, which is the domain name. For example, the domain name of this new website is "www.abcdefg.com". Using the experience of grayscale users to use the new website makes it easy for web developers to update or adjust the corresponding features.
用户可以使用终端向DNS服务器发送DNS解析请求,例如DNS解析请求中待解析域名为“www.abcdefg.com”,同时DNS服务器可以确定终端的IP地址,如果终端的IP地址在“5.5.5.5-5.5.5.5”的IP地址范围以及“2.2.2.2-3.3.3.3”的IP地址范围内,则可以确定这条自定义路线为待解析域名的目标自定义线路。进一步的可以获得这条自定义路线对应的解析信息中的记录值,该记录值即为域名“www.abcdefg.com”的服务器IP地址。从而灰度用户可以根据该IP地址访问提供新网站业务的服务器。The user can use the terminal to send a DNS resolution request to the DNS server. For example, the domain name to be resolved in the DNS resolution request is “www.abcdefg.com”, and the DNS server can determine the IP address of the terminal. If the IP address of the terminal is “5.5.5.5- Within the IP address range of 5.5.5.5" and the IP address range of "2.2.2.2-3.3.3.3", you can determine that this custom route is the target custom line of the domain name to be resolved. Further, the record value in the parsing information corresponding to the custom route may be obtained, and the record value is the server IP address of the domain name “www.abcdefg.com”. Thus, the grayscale user can access the server that provides the new website service according to the IP address.
下面对本申请中的服务器进行详细描述,请参阅图8,本申请实施例中的服务器为业务平台地址解析系统中的服务器,服务器包括:The following is a detailed description of the server in the present application. Referring to FIG. 8, the server in the embodiment of the present application is a server in the service platform address resolution system, and the server includes:
第一接收模块401,用于接收终端发送的域名系统DNS解析请求,DNS解析请求包括 待解析域名;The first receiving module 401 is configured to receive a domain name system DNS resolution request sent by the terminal, where the DNS resolution request includes Domain name to be resolved;
第一获取模块402,用于根据第一接收模块401接收的DNS解析请求获取终端的目标网际协议IP信息;The first obtaining module 402 is configured to acquire the target internet protocol IP information of the terminal according to the DNS resolution request received by the first receiving module 401;
第二获取模块403,用于若第一获取模块获取的目标IP信息存在对应的目标自定义线路,则根据目标自定义线路获取预先设置的第一解析记录,第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接;The second obtaining module 403 is configured to: if the target IP information acquired by the first acquiring module has a corresponding target customized line, obtain a preset first parsing record according to the target customized line, where the first parsing record is used to indicate the terminal and the Establishing a communication connection by the first target server of the domain name to be resolved;
第一发送模块404,用于根据第二获取模块获取的预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。The first sending module 404 is configured to send, according to the preset first parsing record acquired by the second acquiring module, the first IP address corresponding to the domain name to be resolved to the terminal.
本实施例中,第一接收模块401接收终端发送的域名系统DNS解析请求,DNS解析请求包括待解析域名;第一获取模块402根据第一接收模块401接收的DNS解析请求获取终端的目标网际协议IP信息,若第一获取模块402获取的目标IP信息存在对应的目标自定义线路,则第二获取模块403则根据目标自定义线路获取预先设置的第一解析记录,第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接,第一发送模块404根据第二获取模块403获取的预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。In this embodiment, the first receiving module 401 receives the domain name system DNS resolution request sent by the terminal, and the DNS resolution request includes the domain name to be resolved. The first obtaining module 402 acquires the target internet protocol of the terminal according to the DNS resolution request received by the first receiving module 401. The IP information, if the target IP information acquired by the first obtaining module 402 has a corresponding target custom line, the second obtaining module 403 obtains a preset first parsing record according to the target custom line, where the first parsing record is used to indicate The terminal establishes a communication connection with the first target server of the domain name to be resolved, and the first sending module 404 sends the first IP address corresponding to the domain to be resolved to the terminal according to the preset first resolution record acquired by the second obtaining module 403.
本申请实施例中,提供了一种用于业务平台地址解析的服务器,服务器先接收终端发送的DNS解析请求,该DNS解析请求中包括待解析域名,然后根据DNS解析请求获取终端的目标IP信息,如果目标IP信息存在对应的目标自定义线路,则可以根据目标自定义线路获取预先设置的包括该目标自定义线路的第一解析记录,该第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接,最后根据用户预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。自定义线路是业务开发者根据需要预先设置的一个线路,采用自定义线路可以定义对应的IP地址范围,以便使该IP地址范围内的用户终端可以获得访问域名对应的特定IP地址,即为更精确范围内的用户提供业务,从而提升方案的灵活度和实用性,同时也便于选取灰度用户进行业务体验。In the embodiment of the present application, a server for address resolution of a service platform is provided. The server first receives a DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved, and then obtains a target IP address of the terminal according to the DNS resolution request. If the target IP information has a corresponding target custom line, the first parsing record including the target custom line may be obtained according to the target custom line, where the first parsing record is used to indicate the terminal and the domain to be resolved. The first target server establishes a communication connection, and finally sends a first IP address corresponding to the domain name to be resolved to the terminal according to the first resolution record set by the user. The custom line is a line set by the service developer according to the need. The custom line can be used to define the corresponding IP address range, so that the user terminal in the IP address range can obtain the specific IP address corresponding to the access domain name, that is, Users within a precise range provide services, which enhances the flexibility and practicability of the solution, and also facilitates the selection of grayscale users for business experience.
在上述实施例的基础上,请参阅图9,本申请实施例提供的服务器的另一实施例中,服务器40还包括:On the basis of the foregoing embodiment, referring to FIG. 9, in another embodiment of the server provided by the embodiment of the present application, the server 40 further includes:
确定模块405,用于第一获取模块402根据DNS解析请求获取终端的目标IP信息之后,通过后台数据库中存储的IP地址范围与自定义线路的对应关系,确定目标IP信息对应的目标自定义线路。The determining module 405 is configured to: after the first obtaining module 402 obtains the target IP information of the terminal according to the DNS resolution request, determine the target customized line corresponding to the target IP information by using the correspondence between the IP address range stored in the background database and the customized line. .
在本申请实施例中,介绍了DNS服务器还可以通过后台数据库中存储的IP地址范围与自定义线路的对应关系,确定与目标IP信息对应的目标自定义线路。通过上述方式,便于DNS服务器查找目标IP信息关联的目标自定义线路,从而提升了方案的可靠性,在后台数据库中查找对应关系,以此保证方案的可行性。In the embodiment of the present application, the DNS server can also determine the target customized line corresponding to the target IP information by using the correspondence between the IP address range stored in the background database and the customized line. In the above manner, the DNS server is convenient to find the target customized line associated with the target IP information, thereby improving the reliability of the solution and finding the corresponding relationship in the background database, thereby ensuring the feasibility of the solution.
在上述实施例的基础上,请参阅图10,本申请实施例提供的服务器的另一实施例中,On the basis of the foregoing embodiment, referring to FIG. 10, in another embodiment of the server provided by the embodiment of the present application,
确定模块可以包括:The determining module can include:
查找子模块4051,用于根据IP地址范围与自定义线路的对应关系,在待解析域名的自定义线路对应的IP地址范围内查找目标IP信息; The finding sub-module 4051 is configured to search for the target IP information in the IP address range corresponding to the custom line of the domain name to be resolved according to the correspondence between the IP address range and the customized line;
确定子模块4052,用于根据查找子模块的查找结果,将IP地址范围包括目标IP信息的待解析域名的自定义线路,确定为目标IP信息对应的目标自定义线路。The determining sub-module 4052 is configured to determine, according to the search result of the search sub-module, a custom line whose IP address range includes the domain name to be resolved of the target IP information, as the target custom line corresponding to the target IP information.
第一发送模块可以包括:The first sending module may include:
获取子模块(图中未示出),用于从预先设置的第一解析记录中获取待解析域名对应的第一IP地址;Obtaining a sub-module (not shown), configured to obtain a first IP address corresponding to the domain name to be resolved from the preset first parsing record;
发送子模块(图中未示出),用于向终端发送获取子模块获取的待解析域名对应的第一IP地址。The sending sub-module (not shown) is configured to send, to the terminal, a first IP address corresponding to the to-be-resolved domain name obtained by the acquiring sub-module.
本申请实施例中,介绍了DNS服务器确定第一IP地址的方法,通过上述方式,使得DNS服务器可以利用用户预先设置的自定义线路为终端提供相应的IP地址,从而可以使特定的用户访问待访问域名的特定服务器,提升了方案的实用性和可行性。In the embodiment of the present application, a method for determining a first IP address by a DNS server is introduced. In the foregoing manner, the DNS server can provide a corresponding IP address for the terminal by using a custom line preset by the user, so that a specific user can access the user. Access to a specific server for the domain name enhances the usability and feasibility of the solution.
在上述实施例的基础上,请参阅图11,本申请实施例提供的服务器的另一实施例中,On the basis of the foregoing embodiment, referring to FIG. 11 , in another embodiment of the server provided by the embodiment of the present application,
服务器40还包括: Server 40 also includes:
第二接收模块408,用于接收自定义线路添加请求,自定义线路添加请求中携带待添加解析记录;a second receiving module 408, configured to receive a custom line add request, where the custom line add request carries the parsing record to be added;
添加模块409,用于将第二接收模块接收的自定义线路添加请求中的待添加解析记录存储至后台数据库。The adding module 409 is configured to store the to-be-added analysis record in the custom line add request received by the second receiving module to the background database.
本申请实施例中,DNS还可以实时接收自定义线路添加请求,自定义线路添加请求中携带了待添加解析记录,使得DNS服务器可以根据自定义线路添加请求,将自定义线路添加请求中的待添加解析记录存储至后台数据库。通过上述方式,便于可以根据需求实时地对DNS服务器的后台数据库进行更新,将访问目标服务器的终端范围精确到一个特定的范围,以此增强方案的可操作性。In the embodiment of the present application, the DNS may also receive a custom line add request in real time, and the custom line add request carries the parsing record to be added, so that the DNS server may add a request according to the custom line, and add the custom line to the request. Add a parsing record to the backend database. In the above manner, it is convenient to update the background database of the DNS server in real time according to requirements, and to narrow the terminal range of the access target server to a specific range, thereby enhancing the operability of the solution.
在上述实施例的基础上,请参阅图12,本申请实施例提供的服务器的另一实施例中,On the basis of the foregoing embodiment, referring to FIG. 12, in another embodiment of the server provided by the embodiment of the present application,
服务器40还包括: Server 40 also includes:
查找模块411,用于第一获取模块402根据DNS解析请求获取终端的目标IP信息之后,若目标IP信息不存在对应的目标自定义线路,则按照预置优先级查找目标IP信息对应的第二解析记录,第二解析记录用于指示终端与待解析域名的第二目标服务器建立通信连接;The searching module 411 is configured to: after the first obtaining module 402 acquires the target IP information of the terminal according to the DNS resolution request, if the target IP information does not have a corresponding target customized line, the second corresponding to the target IP information is searched according to the preset priority. Parsing the record, the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain name to be resolved;
第二发送模块412,用于根据查找模块411查找的第二解析记录,向终端发送待解析域名对应的第二IP地址。The second sending module 412 is configured to send, according to the second parsing record searched by the searching module 411, the second IP address corresponding to the domain name to be resolved to the terminal.
申请实施例中,若目标IP信息不存在对应的目标自定义线路,则DNS服务器按照预置优先级查找目标IP信息对应的第二解析记录,然后根据第二解析记录,向终端发送第二IP地址。通过上述方式,DNS服务器还可以向非自定义线路对应的终端发送第二IP地址,保证了DNS可以根据优先级的先后顺序向终端发送相应的IP地址,从而提升了方案的实用性和可操作性。In the application embodiment, if the target IP information does not have a corresponding target custom line, the DNS server searches for the second parsing record corresponding to the target IP information according to the preset priority, and then sends the second IP to the terminal according to the second parsing record. address. In the above manner, the DNS server can also send the second IP address to the terminal corresponding to the non-custom line, ensuring that the DNS can send the corresponding IP address to the terminal according to the priority order, thereby improving the practicability and operation of the solution. Sex.
上面对本申请中的服务器进行介绍,下面将对本申请中的终端进行详细描述,请参阅图13,本申请实施例中的终端为业务平台地址解析系统中的终端,终端包括:The above description is directed to the server in the present application. The terminal in the present application is described in detail below. Referring to FIG. 13, the terminal in the embodiment of the present application is a terminal in the service platform address resolution system, and the terminal includes:
第一发送模块501,用于向服务器发送域名系统DNS解析请求,DNS解析请求包括待解析域名,DNS解析请求用于服务器获取终端的目标网际协议IP信息; The first sending module 501 is configured to send a domain name system DNS resolution request to the server, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal;
第一接收模块502,用于若目标IP信息存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第一IP地址,第一IP地址为服务器根据目标自定义线路获取预先设置的第一解析记录所确定的,第一解析记录用于指示终端与目标服务器建立通信连接。The first receiving module 502 is configured to: if the target IP information has a corresponding target customized line, receive a first IP address corresponding to the to-be-resolved domain name sent by the server, where the first IP address is preset by the server according to the target customized line. The first parsing record is used to indicate that the terminal establishes a communication connection with the target server.
本实施例中,第一发送模块501向服务器发送域名系统DNS解析请求,DNS解析请求包括待解析域名,DNS解析请求用于服务器获取终端的目标网际协议IP信息,若目标IP信息存在对应的目标自定义线路,则第一接收模块502接收服务器发送的待解析域名对应的第一IP地址,第一IP地址为服务器根据目标自定义线路获取预先设置的第一解析记录所确定的,第一解析记录用于指示终端与目标服务器建立通信连接。In this embodiment, the first sending module 501 sends a domain name system DNS resolution request to the server, where the DNS resolution request includes the domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal, if the target IP information has a corresponding target. The first receiving module 502 receives the first IP address corresponding to the domain name to be resolved sent by the server, and the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line, and the first parsing is performed. The record is used to instruct the terminal to establish a communication connection with the target server.
本申请实施例中,提供了一种业务平台地址解析的终端,终端向服务器发送DNS解析请求,DNS解析请求包括待解析域名,DNS解析请求用于服务器获取终端的目标网际协议IP信息。若目标IP信息存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第一IP地址,第一IP地址为服务器根据目标自定义线路获取预先设置的第一解析记录所确定的,第一解析记录用于指示终端与目标服务器建立通信连接。通过上述方式,采用自定义线路可以定义对应的IP地址范围,以便使该IP地址范围内的用户终端可以获得访问域名对应的特定IP地址,即为更精确范围内的用户提供业务,从而提升方案的灵活度和实用性,同时也便于选取灰度用户进行业务体验。In the embodiment of the present application, a terminal for address resolution of a service platform is provided. The terminal sends a DNS resolution request to the server. The DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal. If the target IP information has a corresponding target custom line, the first IP address corresponding to the to-be-resolved domain name sent by the server is received, and the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line. The first resolution record is used to instruct the terminal to establish a communication connection with the target server. In the above manner, a custom line can be used to define a corresponding IP address range, so that the user terminal in the IP address range can obtain a specific IP address corresponding to the access domain name, that is, provide services for users in a more precise range, thereby improving the solution. Flexibility and practicality, but also easy to select grayscale users for business experience.
在上述实施例的基础上,请参阅图14,本申请实施例提供的服务器的另一实施例中,On the basis of the foregoing embodiment, referring to FIG. 14, in another embodiment of the server provided by the embodiment of the present application,
终端50还包括:The terminal 50 further includes:
第二接收模块503,用于接收自定义线路添加请求,自定义线路添加请求中携带待添加解析记录;a second receiving module 503, configured to receive a custom line add request, where the custom line add request carries the parsing record to be added;
第二发送模块504,用于向服务器发送第二接收模块503接收的自定义线路添加请求,以使服务器将待添加解析记录存储至后台数据库。The second sending module 504 is configured to send, to the server, a custom line add request received by the second receiving module 503, so that the server stores the parsing record to be added to the background database.
本申请实施例中,终端首先接收用户发送的自定义线路添加请求,自定义线路添加请求中携带待添加解析记录,然后向服务器发送自定义线路添加请求,以使服务器将待添加解析记录存储至后台数据库。通过上述方式,便于根据需求实时地对DNS服务器的后台数据库进行更新,将访问目标服务器的终端范围精确到一个特定的范围,以此增强方案的可操作性。In the embodiment of the present application, the terminal first receives a custom line add request sent by the user, and the custom line add request carries the parsing record to be added, and then sends a custom line add request to the server, so that the server stores the parsing record to be added to the server. Background database. In the above manner, it is convenient to update the background database of the DNS server in real time according to requirements, and the terminal range of the access target server is accurate to a specific range, thereby enhancing the operability of the solution.
在上述实施例的基础上,请参阅图15,本申请实施例提供的服务器的另一实施例中,On the basis of the foregoing embodiment, referring to FIG. 15, in another embodiment of the server provided by the embodiment of the present application,
终端50还包括:The terminal 50 further includes:
第三发送模块505,用于第一发送模块向服务器发送域名系统DNS解析请求之后,若目标IP信息不存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第二IP地址,第二IP地址为服务器根据预置优先级查找目标IP信息对应的第二解析记录后确定的,第二解析记录用于指示终端与待解析域名的第二目标服务器建立通信连接。The third sending module 505 is configured to: after the first sending module sends the domain name system DNS resolution request to the server, if the target IP information does not have a corresponding target customized line, the receiving the second IP address corresponding to the domain name to be resolved sent by the server, The second IP address is determined by the server to find the second parsing record corresponding to the target IP information according to the preset priority, and the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain to be resolved.
本申请实施例中,若DNS服务器检测到目标IP信息不存在对应的目标自定义线路,则终端接收DNS服务器发送的第二IP地址,第二IP地址为服务器根据预置优先级查找目标IP信息对应的第二解析记录后确定的。通过上述方式,DNS服务器还可以向非自定义线路对应的终端发送第二IP地址,保证了DNS可以根据优先级的先后顺序向终端发送相应 的IP地址,从而提升了方案的实用性和可操作性。In the embodiment of the present application, if the DNS server detects that the target IP information does not have a corresponding target customized line, the terminal receives the second IP address sent by the DNS server, and the second IP address is the server searches for the target IP information according to the preset priority. Corresponding to the second parsing record is determined. In the above manner, the DNS server may also send a second IP address to the terminal corresponding to the non-custom line, ensuring that the DNS may send the corresponding to the terminal according to the priority sequence. The IP address, which improves the usability and operability of the solution.
图16是本申请实施例提供的一种服务器结构示意图,该服务器600可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(英文全称:central processing units,英文缩写:CPU)622(例如,一个或一个以上处理器)和存储器632,一个或一个以上存储应用程序642或数据644的存储介质630(例如一个或一个以上海量存储设备)。其中,存储器632和存储介质630可以是短暂存储或持久存储。存储在存储介质630的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器622可以设置为与存储介质930通信,在服务器600上执行存储介质630中的一系列指令操作。FIG. 16 is a schematic structural diagram of a server provided by an embodiment of the present application. The server 600 may have a large difference due to different configurations or performances, and may include one or more central processing units (English full name: central processing units, English abbreviation) CPU(s) 622 (eg, one or more processors) and memory 632, one or more storage media 630 that store application 642 or data 644 (eg, one or one storage device in Shanghai). Among them, the memory 632 and the storage medium 630 may be short-term storage or persistent storage. The program stored on storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations in the server. Still further, central processor 622 can be configured to communicate with storage medium 930, executing a series of instruction operations in storage medium 630 on server 600.
服务器600还可以包括一个或一个以上电源626,一个或一个以上有线或无线网络接口650,一个或一个以上输入输出接口658,和/或,一个或一个以上操作系统641,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。 Server 600 may also include one or more power sources 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, and/or one or more operating systems 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
上述实施例中由服务器所执行的步骤可以基于该图16所示的服务器结构。The steps performed by the server in the above embodiment may be based on the server structure shown in FIG.
其中,中央处理器622用于,Wherein, the central processing unit 622 is configured to
接收终端发送的域名系统DNS解析请求,DNS解析请求包括待解析域名;Receiving a domain name system DNS resolution request sent by the terminal, and the DNS resolution request includes the domain name to be resolved;
根据DNS解析请求获取终端的目标网际协议IP信息;Obtaining the target internet protocol IP information of the terminal according to the DNS resolution request;
若目标IP信息存在对应的目标自定义线路,则根据目标自定义线路获取预先设置的第一解析记录,第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接;If the target IP information has a corresponding target custom line, the first parsing record is obtained according to the target custom line, where the first parsing record is used to indicate that the terminal establishes a communication connection with the first target server of the domain to be resolved;
根据预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。Sending, according to the first parsing record set in advance, the first IP address corresponding to the domain name to be resolved to the terminal.
相应的,根据DNS解析请求获取终端的目标IP信息之后,方法还包括:Correspondingly, after obtaining the target IP information of the terminal according to the DNS resolution request, the method further includes:
通过后台数据库中存储的IP地址范围与自定义线路的对应关系,确定目标IP信息对应的目标自定义线路。The target customized line corresponding to the target IP information is determined by the correspondence between the IP address range stored in the background database and the customized line.
相应的,确定目标IP信息对应的待解析域名的目标自定义线路,包括:Correspondingly, determining a target customized line of the domain name to be resolved corresponding to the target IP information, including:
根据IP地址范围与自定义线路的对应关系,在待解析域名的自定义线路对应的IP地址范围内查找目标IP信息;According to the correspondence between the IP address range and the customized line, the target IP information is searched in the IP address range corresponding to the custom line of the domain name to be resolved;
将IP地址范围包括目标IP信息的待解析域名的自定义线路,确定为目标IP信息对应的目标自定义线路。The custom line of the domain name to be resolved whose IP address range includes the target IP information is determined as the target custom line corresponding to the target IP information.
相应的,根据预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址,包括:Correspondingly, the first IP address corresponding to the domain name to be resolved is sent to the terminal according to the first parsing record set in advance, including:
从预先设置的第一解析记录中获取待解析域名对应的第一IP地址;Obtaining, by the first parsing record set in advance, a first IP address corresponding to the domain name to be resolved;
向终端发送待解析域名对应的第一IP地址。Send the first IP address corresponding to the domain name to be resolved to the terminal.
相应的,还包括:Correspondingly, it also includes:
接收自定义线路添加请求,自定义线路添加请求中携带待添加解析记录;Receiving a custom line add request, and the custom line add request carries the parsing record to be added;
将自定义线路添加请求中的待添加解析记录存储至后台数据库。Store the pending resolution record in the custom line add request to the backend database.
相应的,根据DNS解析请求获取终端的目标IP信息之后,方法还包括:Correspondingly, after obtaining the target IP information of the terminal according to the DNS resolution request, the method further includes:
若目标IP信息不存在对应的目标自定义线路,则按照预置优先级查找目标IP信息对应的第二解析记录,第二解析记录用于指示终端与待解析域名的第二目标服务器建立通信 连接;If the target IP information does not have a corresponding target custom line, the second parsing record corresponding to the target IP information is searched according to the preset priority, and the second parsing record is used to indicate that the terminal establishes communication with the second target server of the domain to be resolved. connection;
根据第二解析记录,向终端发送待解析域名对应的第二IP地址。And sending, according to the second parsing record, the second IP address corresponding to the domain name to be resolved to the terminal.
本申请实施例还提供了一种终端,如图17所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该终端可以为包括穿戴式摄像机、平板电脑、个人数字助理(英文全称:Personal Digital Assistant,英文缩写:PDA)、销售终端(英文全称:Point of Sales,英文缩写:POS)、车载电脑等任意终端设备,以终端为手机为例:The embodiment of the present application further provides a terminal. As shown in FIG. 17 , for the convenience of description, only the parts related to the embodiment of the present application are shown. For details that are not disclosed, refer to the method part of the embodiment of the present application. The terminal can be any terminal including a wearable camera, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (English full name: Point of Sales, English abbreviation: POS), a car computer, and the like. The device uses the terminal as the mobile phone as an example:
图17示出的是与本申请实施例提供的终端相关的手机部分结构的框图。参考图17,手机包括:射频(英文全称:Radio Frequency,英文缩写:RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线保真(英文全称:wireless fidelity,英文缩写:WiFi)模块770、处理器780、以及电源790等部件。本领域技术人员可以理解,图17中示出的结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 17 is a block diagram showing a structure of a mobile phone part related to a terminal provided by an embodiment of the present application. Referring to FIG. 17, the mobile phone includes: radio frequency (English full name: Radio Frequency, English abbreviation: RF) circuit 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuit 760, wireless fidelity (English full name: wireless fidelity , English abbreviation: WiFi) module 770, processor 780, and power supply 790 and other components. It will be understood by those skilled in the art that the structure shown in FIG. 17 does not constitute a limitation to a mobile phone, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
下面结合图17对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 17:
RF电路710可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器780处理;另外,将设计上行的数据发送给基站。通常,RF电路710包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(英文全称:Low Noise Amplifier,英文缩写:LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(英文全称:Global System of Mobile communication,英文缩写:GSM)、通用分组无线服务(英文全称:General Packet Radio Service,英文缩写:GPRS)、码分多址(英文全称:Code Division Multiple Access,英文缩写:CDMA)、宽带码分多址(英文全称:Wideband Code Division Multiple Access,英文缩写:WCDMA)、长期演进(英文全称:Long Term Evolution,英文缩写:LTE)、电子邮件、短消息服务(英文全称:Short Messaging Service,英文缩写:SMS)等。The RF circuit 710 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 780 processes the data. In addition, the uplink data is designed to be sent to the base station. Generally, the RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (English name: Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 710 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to the global mobile communication system (English full name: Global System of Mobile communication, English abbreviation: GSM), general packet radio service (English full name: General Packet Radio Service, English Abbreviations: GPRS), code division multiple access (English full name: Code Division Multiple Access, English abbreviation: CDMA), wideband code division multiple access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), long-term evolution (English full name : Long Term Evolution, English abbreviation: LTE), e-mail, short message service (English full name: Short Messaging Service, English abbreviation: SMS).
存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器720可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 720 can be used to store software programs and modules, and the processor 780 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 720. The memory 720 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.). Moreover, memory 720 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元730可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。触控面板731可包括触摸检测装置和触摸控制 器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 730 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 731 or near the touch panel 731. Operation), and drive the corresponding connecting device according to a preset program. The touch panel 731 may include a touch detection device and a touch control Two parts. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 780 is provided and can receive commands from the processor 780 and execute them. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 731, the input unit 730 may also include other input devices 732. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元740可包括显示面板741,可以采用液晶显示器(英文全称:Liquid Crystal Display,英文缩写:LCD)、有机发光二极管(英文全称:Organic Light-Emitting Diode,英文缩写:OLED)等形式来配置显示面板741。进一步的,触控面板731可覆盖显示面板741,当触控面板731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图7中,触控面板731与显示面板741是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板731与显示面板741集成而实现手机的输入和输出功能。The display unit 740 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 740 can include a display panel 741, and can be configured and displayed in the form of a liquid crystal display (English name: Liquid Crystal Display, English abbreviation: LCD) or an organic light-emitting diode (English name: Organic Light-Emitting Diode, English abbreviation: OLED). Panel 741. Further, the touch panel 731 can cover the display panel 741. When the touch panel 731 detects a touch operation on or near the touch panel 731, it transmits to the processor 780 to determine the type of the touch event, and then the processor 780 according to the touch event. The type provides a corresponding visual output on display panel 741. Although the touch panel 731 and the display panel 741 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 7, in some embodiments, the touch panel 731 can be integrated with the display panel 741. Realize the input and output functions of the phone.
手机还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在手机移动到耳边时,关闭显示面板741和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 750, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may close the display panel 741 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路760、扬声器761,传声器762可提供用户与手机之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710以发送给比如另一手机,或者将音频数据输出至存储器720以便进一步处理。An audio circuit 760, a speaker 761, and a microphone 762 can provide an audio interface between the user and the handset. The audio circuit 760 can transmit the converted electrical data of the received audio data to the speaker 761 for conversion to the sound signal output by the speaker 761; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal by the audio circuit 760. After receiving, it is converted into audio data, and then processed by the audio data output processor 780, sent to, for example, another mobile phone via the RF circuit 710, or outputted to the memory 720 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图17示出了WiFi模块770,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 770, which provides users with wireless broadband Internet access. Although FIG. 17 shows the WiFi module 770, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
处理器780是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。处理器780可包括一个或多个处理单元;优选的,处理器780可集成应用处理器和调制解调处理器,其中,应用 处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。The processor 780 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 720, and invoking data stored in the memory 720, The phone's various functions and processing data, so that the overall monitoring of the phone. The processor 780 can include one or more processing units; preferably, the processor 780 can integrate an application processor and a modem processor, where the application The processor primarily processes the operating system, user interface, applications, etc. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 780.
手机还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 790 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 780 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
在本申请实施例中,该终端所包括的处理器780还具有以下功能:In the embodiment of the present application, the processor 780 included in the terminal further has the following functions:
向服务器发送域名系统DNS解析请求,DNS解析请求包括待解析域名,DNS解析请求用于服务器获取终端的目标网际协议IP信息;Sending a domain name system DNS resolution request to the server, the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target Internet Protocol IP information of the terminal;
若目标IP信息存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第一IP地址,第一IP地址为服务器根据目标自定义线路获取预先设置的第一解析记录所确定的,第一解析记录用于指示终端与目标服务器建立通信连接。If the target IP information has a corresponding target custom line, the first IP address corresponding to the to-be-resolved domain name sent by the server is received, and the first IP address is determined by the server acquiring the preset first parsing record according to the target custom line. The first resolution record is used to instruct the terminal to establish a communication connection with the target server.
相应的,还包括:Correspondingly, it also includes:
接收自定义线路添加请求,自定义线路添加请求中携带待添加解析记录;Receiving a custom line add request, and the custom line add request carries the parsing record to be added;
向服务器发送自定义线路添加请求,以使服务器将待添加解析记录存储至后台数据库。Send a custom line add request to the server to have the server store the pending resolution record to the backend database.
相应的,向服务器发送域名系统DNS解析请求之后,还包括:Correspondingly, after sending the domain name system DNS resolution request to the server, the method further includes:
若目标IP信息不存在对应的目标自定义线路,则接收服务器发送的待解析域名对应的第二IP地址,第二IP地址为服务器根据预置优先级查找IP信息对应的第二解析记录后确定的,第二解析记录用于指示终端与待解析域名的第二目标服务器建立通信连接。If the target IP information does not have a corresponding target custom line, the second IP address corresponding to the to-be-resolved domain name sent by the server is received, and the second IP address is determined by the server to search for the second parsing record corresponding to the IP information according to the preset priority. The second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain name to be resolved.
请参阅图18,图18为本申请实施例中业务平台地址解析系统,包括:服务器801以及终端802;Referring to FIG. 18, FIG. 18 is a service platform address resolution system according to an embodiment of the present application, including: a server 801 and a terminal 802;
服务器可以是上述实施例中提供的服务器,终端可以是上述实施例中提供的终端。The server may be the server provided in the foregoing embodiment, and the terminal may be the terminal provided in the foregoing embodiment.
终端802可以向服务器801发送DNS解析请求,DNS解析请求中可以包括待解析域名。The terminal 802 may send a DNS resolution request to the server 801, where the DNS resolution request may include a domain name to be resolved.
服务器801根据DNS解析请求获取终端802的目标IP信息。The server 801 acquires the target IP information of the terminal 802 according to the DNS resolution request.
若目标IP信息存在对应的目标自定义线路,则服务器801根据目标自定义线路获取预先设置的第一解析记录,第一解析记录用于指示终端802与待解析域名的第一目标服务器建立通信连接;If the target IP information has a corresponding target custom line, the server 801 obtains a preset first parsing record according to the target custom line, where the first parsing record is used to instruct the terminal 802 to establish a communication connection with the first target server of the domain to be resolved. ;
服务器801根据用户预先设置的第一解析记录,向终端802发送待解析域名对应的第一IP地址。The server 801 sends the first IP address corresponding to the domain name to be resolved to the terminal 802 according to the first resolution record set by the user.
本申请实施例中,提供了一种用于业务平台地址解析系统,服务器先接收终端发送的DNS解析请求,该DNS解析请求中包括待解析域名,然后根据DNS解析请求获取终端的目标IP信息,如果目标IP信息存在对应的目标自定义线路,则可以根据目标自定义线路获取预先设置的包括该目标自定义线路的第一解析记录,该第一解析记录用于指示终端与待解析域名的第一目标服务器建立通信连接,最后根据用户预先设置的第一解析记录,向终端发送待解析域名对应的第一IP地址。自定义线路是业务开发者根据需要预先设置的一个线路,采用自定义线路可以定义对应的IP地址范围,以便使该IP地址范围内的用户终 端可以获得访问域名对应的特定IP地址,即为更精确范围内的用户提供业务,从而提升方案的灵活度和实用性,同时也便于选取灰度用户进行业务体验。In the embodiment of the present application, a service platform address resolution system is provided. The server first receives a DNS resolution request sent by a terminal, where the DNS resolution request includes a domain name to be resolved, and then obtains a target IP information of the terminal according to the DNS resolution request. If the target IP information has a corresponding target custom line, the first parsing record including the target custom line may be obtained according to the target custom line, where the first parsing record is used to indicate the terminal and the domain to be resolved. A target server establishes a communication connection, and finally sends a first IP address corresponding to the domain name to be resolved to the terminal according to the first resolution record set by the user. The custom line is a line set by the service developer according to the need. The custom line can define the corresponding IP address range so that the user ends in the IP address range. The terminal can obtain a specific IP address corresponding to the domain name, that is, provide services for users within a more precise range, thereby improving the flexibility and practicability of the solution, and also facilitating the selection of grayscale users for the service experience.
另外,本申请实施例还提供一种存储介质,存储介质用于存储程序代码,程序代码用于执行权利要求上述的业务平台地址解析的方法。In addition, the embodiment of the present application further provides a storage medium, where the storage medium is used to store program code, and the program code is used to execute the method for address resolution of the service platform described above.
本申请实施例还提供一种包括指令的计算机程序产品,当其在服务器上运行时,使得服务器执行上述的业务平台地址解析的方法。The embodiment of the present application further provides a computer program product including instructions, which when executed on a server, causes the server to perform the foregoing method for address resolution of the service platform.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of cells is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文全称:Read-Only Memory,英文缩写:ROM)、随机存取存储器(英文全称:Random Access Memory,英文缩写:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。An integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic A variety of media that can store program code, such as a disc or a disc.
以上,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the foregoing embodiments can still be implemented. The technical solutions described in the examples are modified, or equivalent to some of the technical features, and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (21)

  1. 一种业务平台地址解析的方法,包括:A method for address resolution of a service platform, comprising:
    服务器接收终端发送的域名系统DNS解析请求,所述DNS解析请求包括待解析域名;The server receives a domain name system DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved;
    所述服务器根据所述DNS解析请求获取所述终端的目标网际协议IP信息;The server acquires target internet protocol IP information of the terminal according to the DNS resolution request;
    若所述目标IP信息存在对应的目标自定义线路,则所述服务器根据所述目标自定义线路获取预先设置的第一解析记录,所述第一解析记录用于指示所述终端与所述待解析域名的第一目标服务器建立通信连接;And if the target IP information has a corresponding target custom line, the server acquires a preset first parsing record according to the target custom line, where the first parsing record is used to indicate the terminal and the to-be-set Resolving the first target server of the domain name to establish a communication connection;
    所述服务器根据所述预先设置的第一解析记录,向所述终端发送所述待解析域名对应的第一IP地址。The server sends the first IP address corresponding to the to-be-resolved domain name to the terminal according to the preset first resolution record.
  2. 根据权利要求1所述的方法,所述服务器根据所述DNS解析请求获取所述终端的目标网际协议IP信息之后,所述方法还包括:The method according to claim 1, after the server acquires the target Internet Protocol IP information of the terminal according to the DNS resolution request, the method further includes:
    所述服务器通过后台数据库中存储的IP地址范围与自定义线路的对应关系,确定所述目标IP信息对应的目标自定义线路。The server determines a target customized line corresponding to the target IP information by using a correspondence between an IP address range stored in the background database and a customized line.
  3. 根据权利要求2所述的方法,所述服务器确定所述目标IP信息对应的所述待解析域名的目标自定义线路,包括:The method according to claim 2, wherein the server determines a target customized line of the domain name to be resolved corresponding to the target IP information, including:
    所述服务器根据所述IP地址范围与自定义线路的对应关系,在所述待解析域名的自定义线路对应的IP地址范围内查找所述目标IP信息;The server searches for the target IP information in an IP address range corresponding to the customized line of the domain to be resolved according to the corresponding relationship between the IP address range and the customized line;
    所述服务器将IP地址范围包括所述目标IP信息的所述待解析域名的自定义线路,确定为所述目标IP信息对应的目标自定义线路。The server determines, as the target customized line corresponding to the target IP information, a custom line whose IP address range includes the to-be-resolved domain name of the target IP information.
  4. 根据权利要求1所述的方法,所述服务器根据所述预先设置的第一解析记录,向所述终端发送所述待解析域名对应的第一IP地址,包括:The method according to claim 1, wherein the server sends the first IP address corresponding to the domain name to be resolved to the terminal according to the preset first resolution record, including:
    所述服务器从所述预先设置的第一解析记录中获取所述待解析域名对应的第一IP地址;Obtaining, by the server, the first IP address corresponding to the domain name to be resolved from the preset first resolution record;
    所述服务器向所述终端发送所述待解析域名对应的第一IP地址。Sending, by the server, the first IP address corresponding to the domain name to be resolved to the terminal.
  5. 根据权利要求1至4中任一项所述的方法,所述方法还包括:A method according to any one of claims 1 to 4, the method further comprising:
    所述服务器接收自定义线路添加请求,所述自定义线路添加请求中携带待添加解析记录;Receiving, by the server, a custom line add request, where the custom line add request carries a parsing record to be added;
    所述服务器将所述自定义线路添加请求中的所述待添加解析记录存储至后台数据库。The server stores the to-be-added resolution record in the custom line add request to a background database.
  6. 根据权利要求5所述的方法,所述服务器根据所述DNS解析请求获取所述终端的目标网际协议IP信息之后,所述方法还包括:The method according to claim 5, after the server obtains the target Internet Protocol IP information of the terminal according to the DNS resolution request, the method further includes:
    若所述目标IP信息不存在对应的所述目标自定义线路,则所述服务器按照预置优先级查找所述目标IP信息对应的第二解析记录,第二解析记录用于指示所述终端与所述待解析域名的第二目标服务器建立通信连接;If the target IP information does not have the corresponding target custom line, the server searches for the second parsing record corresponding to the target IP information according to the preset priority, and the second parsing record is used to indicate the terminal and the The second target server of the domain name to be resolved establishes a communication connection;
    所述服务器根据所述第二解析记录,向所述终端发送所述待解析域名对应的第二IP地址。The server sends the second IP address corresponding to the to-be-resolved domain name to the terminal according to the second parsing record.
  7. 一种业务平台地址解析的方法,包括: A method for address resolution of a service platform, comprising:
    终端向服务器发送域名系统DNS解析请求,所述DNS解析请求包括待解析域名,所述DNS解析请求用于所述服务器获取终端的目标网际协议IP信息;The terminal sends a domain name system DNS resolution request to the server, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire the target internet protocol IP information of the terminal;
    若所述目标IP信息存在对应的目标自定义线路,则所述终端接收所述服务器发送的所述待解析域名对应的第一IP地址,所述第一IP地址为所述服务器根据所述目标自定义线路获取预先设置的第一解析记录所确定的,所述第一解析记录用于指示所述终端与目标服务器建立通信连接。Receiving, by the terminal, a first IP address corresponding to the to-be-resolved domain name sent by the server, where the target IP information has a corresponding target custom line, where the first IP address is the server according to the target The customized line obtains a preset first parsing record, and the first parsing record is used to instruct the terminal to establish a communication connection with the target server.
  8. 根据权利要求7所述的方法,所述方法还包括:The method of claim 7 further comprising:
    所述终端接收自定义线路添加请求,所述自定义线路添加请求中携带待添加解析记录;Receiving, by the terminal, a custom line add request, where the custom line add request carries the parsing record to be added;
    所述终端向所述服务器发送所述自定义线路添加请求,以使所述服务器将所述待添加解析记录存储至后台数据库。The terminal sends the custom line add request to the server, so that the server stores the to-be-added resolution record to a back-end database.
  9. 根据权利要求7所述的方法,所述终端向服务器发送域名系统DNS解析请求之后,所述方法还包括:The method of claim 7, after the terminal sends a domain name system DNS resolution request to the server, the method further includes:
    若所述目标IP信息不存在对应的目标自定义线路,则所述终端接收所述服务器发送的所述待解析域名对应的第二IP地址,所述第二IP地址为所述服务器根据预置优先级查找所述IP信息对应的第二解析记录后确定的,第二解析记录用于指示所述终端与所述待解析域名的第二目标服务器建立通信连接。If the destination IP information does not have a corresponding target customized line, the terminal receives a second IP address corresponding to the to-be-resolved domain name sent by the server, and the second IP address is preset by the server according to the preset IP address. After the priority is searched for the second parsing record corresponding to the IP information, the second parsing record is used to indicate that the terminal establishes a communication connection with the second target server of the domain to be resolved.
  10. 一种服务器,包括:A server that includes:
    第一接收模块,用于接收终端发送的域名系统DNS解析请求,所述DNS解析请求包括待解析域名;a first receiving module, configured to receive a domain name system DNS resolution request sent by the terminal, where the DNS resolution request includes a domain name to be resolved;
    第一获取模块,用于根据所述第一接收模块接收的所述DNS解析请求获取所述终端的目标网际协议IP信息;a first acquiring module, configured to acquire target internet protocol IP information of the terminal according to the DNS resolution request received by the first receiving module;
    第二获取模块,用于若所述第一获取模块获取的所述目标IP信息存在对应的目标自定义线路,则根据所述目标自定义线路获取预先设置的第一解析记录,所述第一解析记录用于指示所述终端与所述待解析域名的第一目标服务器建立通信连接;a second acquiring module, configured to acquire a preset first parsing record according to the target custom line, if the target IP information acquired by the first acquiring module has a corresponding target customized line, where the first The parsing record is used to indicate that the terminal establishes a communication connection with the first target server of the domain name to be resolved;
    第一发送模块,用于根据所述第二获取模块获取的所述预先设置的第一解析记录,向所述终端发送所述待解析域名对应的第一IP地址。The first sending module is configured to send, according to the preset first parsing record acquired by the second acquiring module, the first IP address corresponding to the to-be-resolved domain name to the terminal.
  11. 根据权利要求10所述的服务器,所述服务器还包括:The server of claim 10, the server further comprising:
    确定模块,用于所述第一获取模块根据所述DNS解析请求获取所述终端的目标IP信息之后,通过后台数据库中存储的IP地址范围与自定义线路的对应关系,确定所述目标IP信息对应的所述目标自定义线路。a determining module, configured to determine, by the first obtaining module, the target IP information of the terminal according to the DNS resolution request, determining the target IP information by using a correspondence between an IP address range stored in a background database and a customized line Corresponding to the target custom line.
  12. 根据权利要求11所述的服务器,所述确定模块包括:The server of claim 11, the determining module comprising:
    查找子模块,用于根据所述IP地址范围与自定义线路的对应关系,在所述待解析域名的自定义线路对应的IP地址范围内查找所述目标IP信息;The locating sub-module is configured to search for the target IP information in an IP address range corresponding to the custom line of the domain name to be resolved according to the correspondence between the IP address range and the customized line;
    确定子模块,用于根据所述查找子模块的查找结果,将IP地址范围包括所述目标IP信息的所述待解析域名的自定义线路,确定为所述目标IP信息对应的目标自定义线路。a determining sub-module, configured to determine, according to the search result of the searching sub-module, a customized line that includes the to-be-resolved domain name of the target IP information in an IP address range, as a target customized line corresponding to the target IP information. .
  13. 根据权利要求10所述的服务器,所述第一发送模块包括:The server according to claim 10, wherein the first sending module comprises:
    获取子模块,用于从所述预先设置的第一解析记录中获取所述待解析域名对应的第一 IP地址;Obtaining a sub-module, configured to acquire, from the preset first parsing record, the first corresponding to the domain name to be resolved IP address;
    发送子模块,用于向所述终端发送所述获取子模块获取的所述待解析域名对应的第一IP地址。And a sending submodule, configured to send, to the terminal, a first IP address corresponding to the to-be-resolved domain name obtained by the acquiring sub-module.
  14. 根据权利要求10至13中任一项所述的服务器,所述服务器还包括:The server according to any one of claims 10 to 13, the server further comprising:
    第二接收模块,用于接收自定义线路添加请求,所述自定义线路添加请求中携带待添加解析记录;a second receiving module, configured to receive a custom line add request, where the custom line add request carries a parsing record to be added;
    添加模块,用于将所述第二接收模块接收的所述自定义线路添加请求中的所述待添加解析记录存储至后台数据库。And an adding module, configured to store the to-be-added analysis record in the custom line add request received by the second receiving module to a background database.
  15. 根据权利要求10所述的服务器,所述服务器还包括:The server of claim 10, the server further comprising:
    查找模块,用于所述第一获取模块根据所述DNS解析请求获取所述终端的目标IP信息之后,若所述目标IP信息不存在对应的所述目标自定义线路,则按照预置优先级查找所述目标IP信息对应的第二解析记录,所述第二解析记录用于指示所述终端与所述待解析域名的第二目标服务器建立通信连接;a locating module, after the first obtaining module acquires the target IP information of the terminal according to the DNS resolution request, if the target IP information does not have the corresponding target customized line, the preset priority is performed. And searching for a second parsing record corresponding to the target IP information, where the second parsing record is used to indicate that the terminal establishes a communication connection with a second target server of the domain name to be resolved;
    第二发送模块,用于根据所述查找模块查找的所述第二解析记录,向所述终端发送所述待解析域名对应的第二IP地址。The second sending module is configured to send the second IP address corresponding to the domain name to be resolved to the terminal according to the second parsing record that is searched by the searching module.
  16. 一种终端,包括:A terminal comprising:
    第一发送模块,用于向服务器发送域名系统DNS解析请求,所述DNS解析请求包括待解析域名,所述DNS解析请求用于所述服务器获取终端的目标网际协议IP信息;a first sending module, configured to send a domain name system DNS resolution request to the server, where the DNS resolution request includes a domain name to be resolved, and the DNS resolution request is used by the server to acquire target internet protocol IP information of the terminal;
    第一接收模块,用于若所述目标IP信息存在对应的目标自定义线路,则接收所述服务器发送的所述待解析域名对应的第一IP地址,所述第一IP地址为所述服务器根据所述目标自定义线路获取预先设置的第一解析记录所确定的,所述第一解析记录用于指示所述终端与目标服务器建立通信连接。a first receiving module, configured to receive a first IP address corresponding to the to-be-resolved domain name sent by the server, if the target IP information has a corresponding target customized line, where the first IP address is the server And determining, according to the target custom line, a preset first parsing record, where the first parsing record is used to instruct the terminal to establish a communication connection with the target server.
  17. 根据权利要求16所述的终端,所述终端还包括:The terminal of claim 16, the terminal further comprising:
    第二接收模块,用于接收自定义线路添加请求,所述自定义线路添加请求中携带待添加解析记录;a second receiving module, configured to receive a custom line add request, where the custom line add request carries a parsing record to be added;
    第二发送模块,用于向所述服务器发送所述第二接收模块接收的所述自定义线路添加请求,以使所述服务器将所述待添加解析记录存储至后台数据库。And a second sending module, configured to send, to the server, the customized line add request received by the second receiving module, so that the server stores the to-be-added parsing record to a background database.
  18. 根据权利要求16所述的终端,所述终端还包括:The terminal of claim 16, the terminal further comprising:
    第三发送模块,用于所述第一发送模块向服务器发送域名系统DNS解析请求之后,若所述目标IP信息不存在对应的目标自定义线路,则接收所述服务器发送的所述待解析域名对应的第二IP地址,所述第二IP地址为所述服务器根据预置优先级查找所述目标IP信息对应的第二解析记录后确定的,所述第二解析记录用于指示所述终端与所述待解析域名的第二目标服务器建立通信连接。a third sending module, after the first sending module sends a domain name system DNS resolution request to the server, if the target IP information does not have a corresponding target customized line, receiving the domain name to be resolved sent by the server Corresponding second IP address, the second IP address is determined by the server searching for a second parsing record corresponding to the target IP information according to a preset priority, where the second parsing record is used to indicate the terminal Establishing a communication connection with the second target server of the domain name to be resolved.
  19. 一种业务平台地址解析系统,包括:服务器以及终端;A service platform address resolution system includes: a server and a terminal;
    所述服务器为上述权利要求10至15中任一项所述的服务器;The server is the server according to any one of the preceding claims 10 to 15;
    所述终端为上述权利要求16至18任一项所述的终端。The terminal is the terminal according to any one of claims 16 to 18.
  20. 一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行权利要 求1-6任一项所述的业务平台地址解析的方法。A storage medium for storing program code for executing an essential A method for requesting address resolution of a service platform according to any one of 1-6.
  21. 一种存储介质,所述存储介质用于存储程序代码,所述程序代码用于执行权利要求7-9任一项所述的业务平台地址解析的方法。 A storage medium for storing program code for performing the method of service platform address resolution according to any one of claims 7-9.
PCT/CN2017/111142 2016-11-17 2017-11-15 Method, apparatus, and system for resolving service platform address WO2018090933A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/362,461 US10972425B2 (en) 2016-11-17 2019-03-22 Method, device and system for service platform address resolution

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611011967.5A CN106657431B (en) 2016-11-17 2016-11-17 A kind of method, server, terminal and the system of business platform address resolution
CN201611011967.5 2016-11-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/362,461 Continuation US10972425B2 (en) 2016-11-17 2019-03-22 Method, device and system for service platform address resolution

Publications (1)

Publication Number Publication Date
WO2018090933A1 true WO2018090933A1 (en) 2018-05-24

Family

ID=58807670

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111142 WO2018090933A1 (en) 2016-11-17 2017-11-15 Method, apparatus, and system for resolving service platform address

Country Status (3)

Country Link
US (1) US10972425B2 (en)
CN (1) CN106657431B (en)
WO (1) WO2018090933A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609790A (en) * 2019-08-30 2019-12-24 深圳壹账通智能科技有限公司 Analytic program test method, device, medium and computer equipment
CN110830458A (en) * 2019-10-25 2020-02-21 云深互联(北京)科技有限公司 Domain name access method, system and equipment
CN112118249A (en) * 2020-09-11 2020-12-22 江苏云柜网络技术有限公司 Security protection method and device based on log and firewall
CN112235437A (en) * 2020-10-30 2021-01-15 腾讯科技(深圳)有限公司 Method, device and equipment for preventing malicious addition of resolved domain name and storage medium
CN113992626A (en) * 2021-10-22 2022-01-28 浪潮思科网络科技有限公司 Method, device and storage medium for realizing DNS
CN114257400A (en) * 2021-11-11 2022-03-29 中国南方电网有限责任公司 Information acquisition method and device based on identification algorithm and computer equipment

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958825B (en) * 2017-05-19 2021-10-22 腾讯科技(深圳)有限公司 Information configuration method and device
CN111327713B (en) * 2018-12-13 2022-06-14 中国移动通信集团广西有限公司 DNS (Domain name Server) analysis method and device
CN112583880B (en) * 2019-09-30 2022-02-25 大唐移动通信设备有限公司 Server discovery method and related equipment
CN111083196B (en) * 2019-11-14 2022-07-12 北京无限光场科技有限公司 Information forwarding method and device and electronic equipment
US12015630B1 (en) 2020-04-08 2024-06-18 Wells Fargo Bank, N.A. Security model utilizing multi-channel data with vulnerability remediation circuitry
US11777992B1 (en) * 2020-04-08 2023-10-03 Wells Fargo Bank, N.A. Security model utilizing multi-channel data
US11706241B1 (en) 2020-04-08 2023-07-18 Wells Fargo Bank, N.A. Security model utilizing multi-channel data
CN114666301B (en) * 2020-12-22 2024-07-05 深圳Tcl新技术有限公司 APP testing method and system based on mock server
CN113938462B (en) * 2020-12-28 2024-07-16 京东科技控股股份有限公司 Domain name resolution method, device, electronic equipment and storage medium
CN112804098B (en) * 2021-01-06 2023-04-07 北京小米松果电子有限公司 Domain name fault line switching method and device, terminal equipment and storage medium
CN112954089B (en) * 2021-04-12 2023-07-25 平安科技(深圳)有限公司 Method, device, equipment and storage medium for analyzing data
CN113141412B (en) * 2021-04-30 2022-09-30 北京奇艺世纪科技有限公司 Domain name switching method, system, device, equipment and storage medium
CN113596185A (en) * 2021-06-23 2021-11-02 阿里巴巴新加坡控股有限公司 Domain name resolution method, device, equipment and machine readable medium based on available area
CN113691647B (en) * 2021-08-24 2024-01-16 京东科技信息技术有限公司 Domain name resolution method and device, electronic equipment and storage medium
CN115734211B (en) * 2021-08-30 2024-07-16 中移物联网有限公司 Identification analysis method and system and storage medium
CN114039906B (en) * 2021-09-27 2023-09-22 网宿科技股份有限公司 Flow guiding method, electronic device and readable storage medium
CN113873287B (en) * 2021-12-01 2022-03-15 泰德网聚(北京)科技股份有限公司 Multi-line live broadcast method based on BS (base station) architecture
CN114338822B (en) * 2022-01-04 2024-07-23 中国建设银行股份有限公司 End-to-end network service delivery method and related equipment thereof
CN115412305A (en) * 2022-08-05 2022-11-29 三六零数字安全科技集团有限公司 Website access method, equipment, storage medium and device
CN115460286A (en) * 2022-09-02 2022-12-09 浙江正泰物联技术有限公司 Information acquisition method and device, electronic equipment and storage medium
CN116489128B (en) * 2023-06-02 2024-06-07 北京云宽志业网络技术有限公司 Domain name resolution method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055979A1 (en) * 2001-09-19 2003-03-20 Cooley William Ray Internet domain name resolver
CN104168340A (en) * 2014-07-24 2014-11-26 深圳市腾讯计算机系统有限公司 Domain name resolution method, server, terminal and system
CN106131068A (en) * 2016-08-26 2016-11-16 北京网瑞达科技有限公司 User resolves the system and method for circuit from main separation domain name system DNS

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7523193B2 (en) * 2004-05-18 2009-04-21 International Business Machines Corporation Method and apparatus for DNS pre-fetching for multiple clients
CN104052829A (en) * 2013-03-14 2014-09-17 弗里塞恩公司 Adaptive name resolution
CN104125308B (en) * 2013-04-25 2018-04-10 阿里巴巴集团控股有限公司 For the method and domain name analysis system of the domain name mapping of multi-user

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055979A1 (en) * 2001-09-19 2003-03-20 Cooley William Ray Internet domain name resolver
CN104168340A (en) * 2014-07-24 2014-11-26 深圳市腾讯计算机系统有限公司 Domain name resolution method, server, terminal and system
CN106131068A (en) * 2016-08-26 2016-11-16 北京网瑞达科技有限公司 User resolves the system and method for circuit from main separation domain name system DNS

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609790A (en) * 2019-08-30 2019-12-24 深圳壹账通智能科技有限公司 Analytic program test method, device, medium and computer equipment
CN110830458A (en) * 2019-10-25 2020-02-21 云深互联(北京)科技有限公司 Domain name access method, system and equipment
CN110830458B (en) * 2019-10-25 2021-11-23 云深互联(北京)科技有限公司 Domain name access method, system, device and computer readable storage medium
CN112118249A (en) * 2020-09-11 2020-12-22 江苏云柜网络技术有限公司 Security protection method and device based on log and firewall
CN112118249B (en) * 2020-09-11 2022-09-16 南京云柜网络科技有限公司 Security protection method and device based on log and firewall
CN112235437A (en) * 2020-10-30 2021-01-15 腾讯科技(深圳)有限公司 Method, device and equipment for preventing malicious addition of resolved domain name and storage medium
CN112235437B (en) * 2020-10-30 2023-08-15 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for preventing malicious addition of resolved domain name
CN113992626A (en) * 2021-10-22 2022-01-28 浪潮思科网络科技有限公司 Method, device and storage medium for realizing DNS
CN114257400A (en) * 2021-11-11 2022-03-29 中国南方电网有限责任公司 Information acquisition method and device based on identification algorithm and computer equipment

Also Published As

Publication number Publication date
US20190222553A1 (en) 2019-07-18
US10972425B2 (en) 2021-04-06
CN106657431B (en) 2019-11-19
CN106657431A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2018090933A1 (en) Method, apparatus, and system for resolving service platform address
CN105824958B (en) A kind of methods, devices and systems of inquiry log
US9843616B2 (en) Method, apparatus and system for sharing webpage
US20180041594A1 (en) Photo check-in method, apparatus, and system
WO2016019925A1 (en) Search method, server and client
WO2014206276A1 (en) Domain name resolution method, domain name server, and domain name access method, system and terminal
CN104866505B (en) Application recommendation method and device
WO2016082194A1 (en) Message processing method and apparatus
TWI597964B (en) Message storing method and device, and communication terminal
CN103596017B (en) Video downloading method and system
WO2015000430A1 (en) Intelligent word selection method and device
CN110020293B (en) Multimedia data display method, device and storage medium
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
WO2018049885A1 (en) Data migration method and device
US20160308879A1 (en) Application-Based Service Providing Method, Apparatus, and System
WO2015043163A1 (en) Method and apparatus for inputting account information
KR20180004128A (en) Techniques that automatically associate content with people
CN107743149B (en) Network access method, device and terminal
JP6915074B2 (en) Message notification method and terminal
WO2018137528A1 (en) Method and device for accessing resource
WO2015062234A1 (en) Mobile terminal resource processing method, device and apparatus
CN103607377A (en) Method, device and system for information sharing
WO2017008613A1 (en) Recommendation content pushing method and apparatus, and terminal, server and system therefor
CN107766544B (en) Information management method, terminal and computer readable storage medium
CN108234275B (en) Method and device for releasing communication information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17870721

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17870721

Country of ref document: EP

Kind code of ref document: A1