DNS (Domain Name Server) analysis method based on single-server multi-elastic public network IP (Internet Protocol)
By configuring multiple elastic public IPs, enabling firewalls and DNSSEC, and combining local caching and performance monitoring, the performance bottleneck and security issues of single-server DNS resolution under high traffic and network attacks are solved, and the elastic expansion and services of the DNS server are realized. reliability.
Patent Information
- Application Number
- CN202410987401.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-01
AI Technical Summary
The existing DNS resolution method based on a single server with multiple elastic public IPs has problems such as performance bottlenecks, insufficient security protection, inconvenient IP address management, and inability to guarantee service continuity when faced with high traffic and network attacks.
By setting the network interface parameters of the server, configure multiple elastic public IPs, enable firewall and security group rules, use local cache to accelerate DNS queries, enable DNSSEC, monitor performance and dynamically adjust configurations, and record detailed information to support auditing and troubleshooting.
It achieves elastic expansion, security enhancement, performance optimization and service reliability of the DNS server, ensuring stability and compliance under high traffic and failure conditions.
Smart Images

Figure CN118740795A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of DNS resolution of public network IP, and specifically refers to a DNS resolution method based on single-server multi-elastic public network IP. Background Art
[0002] As the network environment continues to develop and change, the demand for DNS resolution is becoming increasingly diverse. Especially in large networks or high-traffic application scenarios, the DNS resolution capability of a single server may not be able to meet the demand. At this time, the DNS resolution method based on a single server with multiple elastic public IP addresses came into being;
[0003] However, there are still certain defects in the DNS resolution security of existing public IPs. The DNS server in the existing DNS resolution method based on a single server with multiple elastic public IPs is often limited by fixed IP addresses and server resources, and cannot dynamically adjust resource allocation according to real-time traffic changes. The existing DNS server may lack sufficient security protection measures, such as firewalls, security group rules, etc., and is vulnerable to various network attacks. When facing high-concurrency queries, the existing DNS server may cause performance bottlenecks due to insufficient processing capacity. The existing DNS server may have inconveniences in IP address management, logging, etc. The existing DNS server may not be able to guarantee service continuity when facing a single point of failure. The existing DNS server may not meet strict data protection and network security audit requirements. Therefore, a DNS resolution method based on a single server with multiple elastic public IPs is proposed. Summary of the invention
[0004] The purpose of the present invention is to provide a DNS resolution method based on a single server with multiple elastic public IP addresses to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a DNS resolution method based on a single server with multiple elastic public IP addresses, comprising the following steps:
[0006] S1. Set the network interface parameters of the server, including IP address, subnet mask, and default gateway. Select one or more of the multiple elastic public IP addresses applied for from the cloud service provider for configuration. Configure the server's firewall and security group rules to ensure that necessary ports are open and restrict unnecessary access.
[0007] S2. Make sure the DNS server is correctly configured and listens to the standard port for DNS requests.
[0008] S3. When receiving a DNS query request, first check whether there is a corresponding record in the local cache;
[0009] S4. If there is no record in the local cache, the server will perform a recursive query or iterative query to obtain the correct response from the authoritative DNS server;
[0010] S5. Return the query result to the client and update the local cache;
[0011] S6. Use the cloud service provider's API or management tools to manage elastic public IP addresses, including allocating, reallocating, and releasing IP addresses;
[0012] S7. Monitor the performance and response time of the DNS server and adjust the configuration as needed to optimize performance;
[0013] S8. Enable DNSSEC to provide encryption and authentication of DNS data, restricting access to DNS servers to only allow queries from trusted sources.
[0014] S9. Log details of all DNS queries and responses for auditing and troubleshooting.
[0015] Among them, S1 uses SSH or other remote login tools to log in to the server, open the network configuration file, edit or add the configuration to set the IP address, subnet mask and default gateway according to the user's network settings, save the file and restart the network service or restart the server to make the changes effective, and in the cloud service provider's management console, configure security group rules for the user's server instance, allow inbound or outbound traffic of necessary ports, reject all other unnecessary traffic, and ensure that the user's firewall and security group rules are applied correctly and only necessary ports are open.
[0016] Among them, S2 needs to select and install a DNS server software, select the DNS server software that best suits the user according to the user's operating system and specific needs, open the configuration file of the DNS server software, in the configuration file, the user needs to define some key parameters, the configuration file should also contain the path of the zone file, these files contain specific DNS records, the user needs to set the address and port that the DNS server listens on, by default, the DNS server listens on port 53 of UDP and TCP, ensure that the user's firewall or security group rules allow DNS requests from the client to reach the user's DNS server through port 53 of UDP and TCP, at the same time, the user may also need to configure outbound rules to allow the DNS server to send query requests to other DNS servers, after completing the configuration changes, the user needs to restart the DNS server for the changes to take effect, use the command line tool to send a query request from the client to the user's DNS server to ensure that the configuration is correct, and you can also use an online DNS test tool to check whether the user's DNS server is visible to the external network and responds to query requests correctly.
[0017] Among them, the S3, DNS server listens to the standard DNS port. When a client sends a DNS query request, the server will receive the request, and the DNS server will parse the content of the query request, including the query type, query name, etc. After parsing the query request, the DNS server will first check whether there is a record of the corresponding domain name in its local cache. The local cache usually contains previously resolved domain names and their corresponding IP addresses or other resource records. The local cache is checked to improve query efficiency, because returning results directly from the cache is much faster than querying the authoritative DNS server. The local cache is usually stored in the form of a hash table, tree structure or database. The DNS server will search in the cache according to the query name and query type. If it is in the local cache If the corresponding record is found, the DNS server will immediately return the record as the query result to the client. If the corresponding record is not found in the local cache, the DNS server will proceed to the next step, that is, send a query request to the authoritative DNS server. If the DNS server obtains the query result from the authoritative DNS server and the result is valid, it will usually store the result in the local cache so that it can quickly respond to the same query request in the future. The cache update strategy may include setting the TTL value of the cache record. When the TTL expires, the cache record will be automatically deleted or refreshed. Regardless of whether the query result is obtained from the local cache or by querying the authoritative DNS server, the DNS server will eventually return the result to the client that initiated the query.
[0018] Among them, in S4, the client initiates a DNS query request to the local DNS server. The local DNS server first checks whether there is a corresponding record in its local cache. If the corresponding record is not found in the local cache, the local DNS server will perform a recursive query on behalf of the client. The local DNS server will initiate a query request to the root domain name server. The root domain name server will return the address of the top-level domain name server. The local DNS server will then initiate a query request to the top-level domain name server. The top-level domain name server will return the address of the authoritative DNS server. Finally, the local DNS server initiates a query request to the authoritative DNS server and obtains the final resolution result. Once the local DNS server obtains the correct resolution result from the authoritative DNS server, it will return this result to the client that initiated the query.
[0019] Among them, in S5, the DNS server prepares a corresponding DNS response based on the query result obtained from the authoritative DNS server. This response contains the IP address or other resource records corresponding to the domain name requested by the client. The DNS server sends the prepared DNS response back to the client through the connection previously established with the client. If a TCP connection is used, the DNS server will close the connection after sending the response. Before saving the query result to the local cache, the DNS server will check the TTL value in the result. If the TTL value is valid, the DNS server will store the query result in the local cache and update the cache access time, storage time and other status information for subsequent management and query. The DNS server sends the query result back to the client via UDP or TCP connection. For TCP connection, the connection will be closed after sending the response. Before saving the query result to the local cache, the DNS server will check the TTL value to ensure that the record has not expired, and then store the result in the cache and update the relevant status information.
[0020] Among them, S6 uses the user's account name and password to log in to the online management console of the cloud service provider. In the console, find the part related to "Network", "Elastic IP" or "Public IP", and click to enter the management page of the elastic public IP. In the management page, select "Create Elastic Public IP" or a similar option, select the region and availability zone, select an available IP address, and set the corresponding network type. When creating an elastic public IP or after creation, choose to associate it with an existing server instance, or directly associate it when creating a new instance. As needed, configure security group rules to allow external access to relevant ports and protocols of the server. If necessary, configure the routing table to associate the elastic public IP with the subnet where the server instance is located to ensure that the traffic can be correctly forwarded to the server. Test the public IP address of the server through SSH, browser access or other methods to ensure normal connection and access.
[0021] Among them, the S6, as when allocating, first navigate to the management page of the elastic public IP, find the elastic public IP to be reallocated, select "unbind" or a similar option, unbind it from the currently associated instance, select a new server instance, and associate it with the unbound elastic public IP, verify whether the new instance is correctly associated with the elastic public IP, and test access to the new IP address to ensure normal connection and access, and release the elastic public IP. Similarly, first navigate to the management page of the elastic public IP, find the elastic public IP to be released, select "release" or a similar option. The system will usually ask the user to confirm the release operation, because after the release, the IP address will no longer belong to the user and cannot be recovered. After confirmation, the cloud service provider will release the elastic public IP from the user's account and return it to the IP address pool.
[0022] Among them, S7 measures the response time and throughput of the DNS server and generates a detailed test report. Before performing DNS performance testing, it is necessary to set reasonable threshold parameters, such as response time thresholds. These thresholds can be set according to the actual situation of the DNS server and business needs. It is recommended to monitor DNS performance at least once a day and analyze the data in detail. The analysis content includes but is not limited to: response time, resolution success rate, query volume, etc. Through regular testing and analysis, potential problems can be discovered and solved in a timely manner to avoid the expansion of problems. If performance problems are found, first check whether it is due to the DNS server supplier, ensure that the primary / backup DNS servers are configured, and when the primary server fails, Able to quickly switch to a backup server, adjust the cache size in the DNS server according to the network scale and traffic conditions. The appropriate cache size can speed up DNS resolution and improve user access speed. In high-traffic situations, consider using DNS load balancing to increase the processing speed of resolution. This can be achieved through dedicated load balancing hardware or software. Configure relay servers located in different geographical locations with faster response speeds to reduce the delay time of DNS resolution. Enabling DNS query logs can help administrators track and monitor server performance and security. By analyzing query logs, potential performance bottlenecks and security threats can be discovered. Use a network monitoring system for real-time monitoring to promptly discover and resolve performance problems.
[0023] Among them, S8 ensures that the user's DNS service provider supports DNSSEC, uses the DNSSEC tool to generate a pair of public and private keys, the key type and length should be selected based on security requirements, and uses the DNSSEC tool to sign the DNS zone file, which will generate an RRSIG record for each record in the zone, and publish the public key to the parent domain name through the DS record to form a trust chain. Users can verify from the root domain name to the target domain name step by step, and enable DNSSEC in the DNS server configuration. Depending on the DNS server software used, you may need to edit the configuration file to enable DNSSEC support. Use the DNSSEC verification tool to test whether the DNSSEC configuration is valid and verify whether all records carry RRSIG and can be verified. In the DNS server configuration, set it to allow only queries from specific IP addresses or IP address ranges. This can be achieved through access control lists or firewall rules. For dynamic DNS updates, use TSIG or SIG for authentication, which will ensure that only authenticated clients can update. New DNS records, configure DNS servers, limit access rights for zone transfers, allow only trusted servers or IP address ranges for zone transfers, in DNS server configuration, use ACL to limit access rights for specific query types, as described in S9, use Windows system EventViewer, use command line tools, use third-party tools, if the user is the administrator of the DNS server and has access to the management interface of the DNS server, the user can log in to the DNS management tool, find and export resolution records, in the DNS management tool, there is usually a logging function, the user can set and view detailed logs of DNS queries and responses, the recorded DNS query and response information may contain sensitive data, so make sure to comply with relevant privacy and data protection regulations, regularly clean up DNS query records that are no longer needed to save storage space, for large networks or high-traffic DNS servers, logging all DNS queries and responses may generate a large amount of data, so you need to ensure that there is sufficient storage and processing power.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] 1. By using multiple elastic public IP addresses of cloud service providers, the system can dynamically adjust the number and allocation of IP addresses according to actual needs, thereby providing higher elasticity and scalability. When the number of DNS query requests increases, more IP addresses can be allocated to balance the load and ensure the continuity and stability of the service.
[0026] 2. The present invention restricts unnecessary access by configuring the server's firewall and security group rules, allowing only necessary ports to be opened, effectively preventing potential security threats. Enabling DNSSEC can ensure the integrity and authentication of DNS data, prevent attacks such as DNS spoofing and cache poisoning, and restrict access to DNS servers, allowing only queries from trusted sources, further enhancing the security of the system;
[0027] 3. The present invention can quickly respond to DNS requests that have been queried through a local cache mechanism, reduce network delays and query time, improve performance, monitor the performance and response time of the DNS server, and adjust it as needed to ensure that the system always runs in the best state. Using the API or management tools of the cloud service provider, elastic public IP addresses can be easily managed, including allocation, reallocation and release operations, providing higher management flexibility, recording detailed information of all DNS queries and responses, facilitating auditing and troubleshooting, and providing strong support for system maintenance and management;
[0028] 4. The present invention implements fault-tolerant processing and ensures service reliability by enabling the system to automatically forward query requests to other available IP addresses when a certain IP address fails or is overloaded. The recursive query or iterative query mechanism ensures that correct responses can be obtained from other DNS servers even when an authoritative DNS server fails. Recording detailed information on all DNS queries and responses helps meet compliance requirements, such as data protection regulations or network security audits. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 The present invention is a structural schematic diagram of a DNS resolution method based on a single server with multiple elastic public IP addresses. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Example
[0032] See also Figure 1 As shown, the present invention provides a technical solution: comprising the following steps:
[0033] S1. Set the network interface parameters of the server, including IP address, subnet mask, and default gateway. Select one or more of the multiple elastic public IP addresses applied for from the cloud service provider for configuration. Configure the server's firewall and security group rules to ensure that necessary ports are open and restrict unnecessary access.
[0034] S2. Make sure the DNS server is correctly configured and listens to the standard port for DNS requests.
[0035] S3. When receiving a DNS query request, first check whether there is a corresponding record in the local cache;
[0036] S4. If there is no record in the local cache, the server will perform a recursive query or iterative query to obtain the correct response from the authoritative DNS server;
[0037] S5. Return the query result to the client and update the local cache;
[0038] S6. Use the cloud service provider's API or management tools to manage elastic public IP addresses, including allocating, reallocating, and releasing IP addresses;
[0039] S7. Monitor the performance and response time of the DNS server and adjust the configuration as needed to optimize performance;
[0040] S8. Enable DNSSEC to provide encryption and authentication of DNS data, restricting access to DNS servers to only allow queries from trusted sources.
[0041] S9. Log details of all DNS queries and responses for auditing and troubleshooting.
[0042] Among them, S1 uses SSH or other remote login tools to log in to the server, open the network configuration file, edit or add the configuration to set the IP address, subnet mask and default gateway according to the user's network settings, save the file and restart the network service or restart the server to make the changes effective, and in the cloud service provider's management console, configure security group rules for the user's server instance, allow inbound or outbound traffic of necessary ports, reject all other unnecessary traffic, and ensure that the user's firewall and security group rules are applied correctly and only necessary ports are open.
[0043] Among them, S2 needs to select and install a DNS server software, select the DNS server software that best suits the user according to the user's operating system and specific needs, open the configuration file of the DNS server software, in the configuration file, the user needs to define some key parameters, the configuration file should also contain the path of the zone file, these files contain specific DNS records, the user needs to set the address and port that the DNS server listens on, by default, the DNS server listens on port 53 of UDP and TCP, ensure that the user's firewall or security group rules allow DNS requests from the client to reach the user's DNS server through port 53 of UDP and TCP, at the same time, the user may also need to configure outbound rules to allow the DNS server to send query requests to other DNS servers, after completing the configuration changes, the user needs to restart the DNS server for the changes to take effect, use the command line tool to send a query request from the client to the user's DNS server to ensure that the configuration is correct, and you can also use an online DNS test tool to check whether the user's DNS server is visible to the external network and responds to query requests correctly.
[0044] Among them, the S3, DNS server listens to the standard DNS port. When a client sends a DNS query request, the server will receive the request, and the DNS server will parse the content of the query request, including the query type, query name, etc. After parsing the query request, the DNS server will first check whether there is a record of the corresponding domain name in its local cache. The local cache usually contains previously resolved domain names and their corresponding IP addresses or other resource records. The local cache is checked to improve query efficiency, because returning results directly from the cache is much faster than querying the authoritative DNS server. The local cache is usually stored in the form of a hash table, tree structure or database. The DNS server will search in the cache according to the query name and query type. If it is in the local cache If the corresponding record is found, the DNS server will immediately return the record as the query result to the client. If the corresponding record is not found in the local cache, the DNS server will proceed to the next step, that is, send a query request to the authoritative DNS server. If the DNS server obtains the query result from the authoritative DNS server and the result is valid, it will usually store the result in the local cache so that it can quickly respond to the same query request in the future. The cache update strategy may include setting the TTL value of the cache record. When the TTL expires, the cache record will be automatically deleted or refreshed. Regardless of whether the query result is obtained from the local cache or by querying the authoritative DNS server, the DNS server will eventually return the result to the client that initiated the query.
[0045] Among them, in S4, the client initiates a DNS query request to the local DNS server. The local DNS server first checks whether there is a corresponding record in its local cache. If the corresponding record is not found in the local cache, the local DNS server will perform a recursive query on behalf of the client. The local DNS server will initiate a query request to the root domain name server. The root domain name server will return the address of the top-level domain name server. The local DNS server will then initiate a query request to the top-level domain name server. The top-level domain name server will return the address of the authoritative DNS server. Finally, the local DNS server initiates a query request to the authoritative DNS server and obtains the final resolution result. Once the local DNS server obtains the correct resolution result from the authoritative DNS server, it will return this result to the client that initiated the query.
[0046] Among them, in S5, the DNS server prepares a corresponding DNS response based on the query result obtained from the authoritative DNS server. This response contains the IP address or other resource records corresponding to the domain name requested by the client. The DNS server sends the prepared DNS response back to the client through the connection previously established with the client. If a TCP connection is used, the DNS server will close the connection after sending the response. Before saving the query result to the local cache, the DNS server will check the TTL value in the result. If the TTL value is valid, the DNS server will store the query result in the local cache and update the cache access time, storage time and other status information for subsequent management and query. The DNS server sends the query result back to the client via UDP or TCP connection. For TCP connection, the connection will be closed after sending the response. Before saving the query result to the local cache, the DNS server will check the TTL value to ensure that the record has not expired, and then store the result in the cache and update the relevant status information.
[0047] Among them, S6 uses the user's account name and password to log in to the online management console of the cloud service provider. In the console, find the part related to "Network", "Elastic IP" or "Public IP", and click to enter the management page of the elastic public IP. In the management page, select "Create Elastic Public IP" or a similar option, select the region and availability zone, select an available IP address, and set the corresponding network type. When creating an elastic public IP or after creation, choose to associate it with an existing server instance, or directly associate it when creating a new instance. As needed, configure security group rules to allow external access to relevant ports and protocols of the server. If necessary, configure the routing table to associate the elastic public IP with the subnet where the server instance is located to ensure that the traffic can be correctly forwarded to the server. Test the public IP address of the server through SSH, browser access or other methods to ensure normal connection and access.
[0048] Among them, the S6, as when allocating, first navigate to the management page of the elastic public IP, find the elastic public IP to be reallocated, select "unbind" or a similar option, unbind it from the currently associated instance, select a new server instance, and associate it with the unbound elastic public IP, verify whether the new instance is correctly associated with the elastic public IP, and test access to the new IP address to ensure normal connection and access, and release the elastic public IP. Similarly, first navigate to the management page of the elastic public IP, find the elastic public IP to be released, select "release" or a similar option. The system will usually ask the user to confirm the release operation, because after the release, the IP address will no longer belong to the user and cannot be recovered. After confirmation, the cloud service provider will release the elastic public IP from the user's account and return it to the IP address pool.
[0049] Among them, S7 measures the response time and throughput of the DNS server and generates a detailed test report. Before performing DNS performance testing, it is necessary to set reasonable threshold parameters, such as response time thresholds. These thresholds can be set according to the actual situation of the DNS server and business needs. It is recommended to monitor DNS performance at least once a day and analyze the data in detail. The analysis content includes but is not limited to: response time, resolution success rate, query volume, etc. Through regular testing and analysis, potential problems can be discovered and solved in a timely manner to avoid the expansion of problems. If performance problems are found, first check whether it is due to the DNS server supplier, ensure that the primary / backup DNS servers are configured, and when the primary server fails, Able to quickly switch to a backup server, adjust the cache size in the DNS server according to the network scale and traffic conditions. The appropriate cache size can speed up DNS resolution and improve user access speed. In high-traffic situations, consider using DNS load balancing to increase the processing speed of resolution. This can be achieved through dedicated load balancing hardware or software. Configure relay servers located in different geographical locations with faster response speeds to reduce the delay time of DNS resolution. Enabling DNS query logs can help administrators track and monitor server performance and security. By analyzing query logs, potential performance bottlenecks and security threats can be discovered. Use a network monitoring system for real-time monitoring to promptly discover and resolve performance problems.
[0050] Among them, S8 ensures that the user's DNS service provider supports DNSSEC, uses the DNSSEC tool to generate a pair of public and private keys, the key type and length should be selected based on security requirements, and uses the DNSSEC tool to sign the DNS zone file, which will generate an RRSIG record for each record in the zone, and publish the public key to the parent domain name through the DS record to form a trust chain. Users can verify from the root domain name to the target domain name step by step, and enable DNSSEC in the DNS server configuration. Depending on the DNS server software used, you may need to edit the configuration file to enable DNSSEC support. Use the DNSSEC verification tool to test whether the DNSSEC configuration is valid and verify whether all records carry RRSIG and can be verified. In the DNS server configuration, set it to allow only queries from specific IP addresses or IP address ranges. This can be achieved through access control lists or firewall rules. For dynamic DNS updates, use TSIG or SIG for authentication, which will ensure that only authenticated clients can update. New DNS records, configure DNS servers, limit access rights for zone transfers, allow only trusted servers or IP address ranges for zone transfers, in DNS server configuration, use ACL to limit access rights for specific query types, as described in S9, use Windows system EventViewer, use command line tools, use third-party tools, if the user is the administrator of the DNS server and has access to the management interface of the DNS server, the user can log in to the DNS management tool, find and export resolution records, in the DNS management tool, there is usually a logging function, the user can set and view detailed logs of DNS queries and responses, the recorded DNS query and response information may contain sensitive data, so make sure to comply with relevant privacy and data protection regulations, regularly clean up DNS query records that are no longer needed to save storage space, for large networks or high-traffic DNS servers, logging all DNS queries and responses may generate a large amount of data, so you need to ensure that there is sufficient storage and processing power.
[0051] Working principle: First, you need to configure basic network interface parameters for the server, including IP address, subnet mask, and default gateway. Select one or more of the multiple elastic public IP addresses applied for from the cloud service provider for configuration. Ensure that the server can receive and respond to DNS query requests through these IP addresses. Configure the server's firewall and security group rules, open necessary ports to allow DNS query requests, and restrict unnecessary access to enhance server security. Ensure that the DNS server is correctly configured and listens to the standard port for DNS requests. When the DNS server receives a query request, it first checks whether there is a corresponding record in the local cache. If there is no record in the local cache, the server will perform a recursive query or iterative query. The server returns the query results to the client and stores the results in the local cache so that it can quickly respond to the same query requests in the future. Server administrators can use the API or management tools provided by the cloud service provider to manage elastic public IP addresses, including allocating, reallocating, and releasing IP addresses. Server administrators need to monitor the performance and response time of the DNS server to ensure that the server can process query requests efficiently. It can provide encryption and authentication of DNS data to prevent attacks such as DNS spoofing and cache poisoning, limit access to DNS servers, and only allow queries from trusted sources. The server will record detailed information on all DNS queries and responses, including the content of the query request, response results, request source, etc.
[0052] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0053] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. A DNS resolution method based on a single server with multiple elastic public IP addresses, characterized in that: The following steps are involved: S1. Set the network interface parameters of the server, including IP address, subnet mask, and default gateway. Select one or more of the multiple elastic public IP addresses applied for from the cloud service provider for configuration. Configure the server's firewall and security group rules to ensure that necessary ports are open and restrict unnecessary access. S2. Make sure the DNS server is correctly configured and listens to the standard port for DNS requests. S3. When receiving a DNS query request, first check whether there is a corresponding record in the local cache; S4. If there is no record in the local cache, the server will perform a recursive query or iterative query to obtain the correct response from the authoritative DNS server; S5. Return the query result to the client and update the local cache; S6. Use the cloud service provider's API or management tools to manage elastic public IP addresses, including allocating, reallocating, and releasing IP addresses; S7. Monitor the performance and response time of the DNS server and adjust the configuration as needed to optimize performance; S8. Enable DNSSEC to provide encryption and authentication of DNS data, restricting access to DNS servers to only allow queries from trusted sources. S9. Log details of all DNS queries and responses for auditing and troubleshooting.
2. According to claim 1, a DNS resolution method based on a single server with multiple elastic public IPs is characterized in that: S1, log in to the server using SSH or other remote login tools, open the network configuration file, edit or add the configuration to set the IP address, subnet mask and default gateway according to the user's network settings, save the file and restart the network service or restart the server to make the changes effective, configure security group rules for the user's server instance in the cloud service provider's management console, allow inbound or outbound traffic of necessary ports, deny all other unnecessary traffic, and ensure that the user's firewall and security group rules are applied correctly and only necessary ports are open.
3. According to claim 1, a DNS resolution method based on a single server with multiple elastic public IPs is characterized in that: The S2 needs to select and install a DNS server software. According to the user's operating system and specific needs, select the DNS server software that best suits the user, open the configuration file of the DNS server software, in which the user needs to define some key parameters. The configuration file should also contain the path of the zone file, which contains specific DNS records. The user needs to set the address and port that the DNS server listens on. By default, the DNS server listens on port 53 of UDP and TCP. Make sure that the user's firewall or security group rules allow DNS requests from the client to reach the user's DNS server through port 53 of UDP and TCP. At the same time, the user may also need to configure outbound rules to allow the DNS server to send query requests to other DNS servers. After completing the configuration changes, the user needs to restart the DNS server for the changes to take effect. Use the command line tool to send a query request from the client to the user's DNS server to ensure that the configuration is correct. You can also use an online DNS test tool to check whether the user's DNS server is visible to the external network and responds to query requests correctly.
4. According to claim 1, a DNS resolution method based on a single server with multiple elastic public IPs is characterized in that: The S3 DNS server listens to the standard DNS port. When a client sends a DNS query request, the server will receive the request and parse the query request content, including the query type, query name, etc. After parsing the query request, the DNS server will first check whether there is already a record of the corresponding domain name in its local cache. The local cache usually contains previously resolved domain names and their corresponding IP addresses or other resource records. The local cache is checked to improve query efficiency, because returning results directly from the cache is much faster than querying the authoritative DNS server. The local cache is usually stored in the form of a hash table, tree structure or database. The DNS server will search in the cache according to the query name and query type. If it is not found in the local cache, When the corresponding record is found, the DNS server will immediately return the record as the query result to the client. If the corresponding record is not found in the local cache, the DNS server will proceed to the next step, that is, send a query request to the authoritative DNS server. If the DNS server obtains the query result from the authoritative DNS server and the result is valid, it will usually store the result in the local cache so that it can quickly respond to the same query request in the future. The cache update strategy may include setting the TTL value of the cache record. When the TTL expires, the cache record will be automatically deleted or refreshed. Regardless of whether the query result is obtained from the local cache or by querying the authoritative DNS server, the DNS server will eventually return the result to the client that initiated the query.
5. According to claim 1, a DNS resolution method based on a single server with multiple elastic public IPs is characterized in that: In S4, the client initiates a DNS query request to the local DNS server. The local DNS server first checks whether there is a corresponding record in its local cache. If the corresponding record is not found in the local cache, the local DNS server will perform a recursive query on behalf of the client. The local DNS server will initiate a query request to the root domain name server. The root domain name server will return the address of the top-level domain name server. The local DNS server will then initiate a query request to the top-level domain name server. The top-level domain name server will return the address of the authoritative DNS server. Finally, the local DNS server will initiate a query request to the authoritative DNS server and obtain the final resolution result. Once the local DNS server obtains the correct resolution result from the authoritative DNS server, it will return the result to the client that initiated the query.
6. According to claim 1, a DNS resolution method based on a single server with multiple elastic public IPs is characterized in that: In S5, the DNS server prepares a corresponding DNS response based on the query result obtained from the authoritative DNS server. This response includes the IP address or other resource records corresponding to the domain name requested by the client. The DNS server sends the prepared DNS response back to the client through the connection previously established with the client. If a TCP connection is used, the DNS server will close the connection after sending the response. Before saving the query result to the local cache, the DNS server will check the TTL value in the result. If the TTL value is valid, the DNS server will store the query result in the local cache and update the cache access time, storage time and other status information for subsequent management and query. The DNS server sends the query result back to the client via UDP or TCP connection. For TCP connection, the connection will be closed after sending the response. Before saving the query result to the local cache, the DNS server will check the TTL value to ensure that the record has not expired, then store the result in the cache, and update the relevant status information.
7. A DNS resolution method based on a single server with multiple elastic public IP addresses according to claim 1, characterized in that: S6, using the user's account name and password to log in to the cloud service provider's online management console, in the console, find the part related to "Network", "Elastic IP" or "Public IP", and click to enter the management page of the elastic public IP, in the management page, select "Create Elastic Public IP" or a similar option, select the region and availability zone, select an available IP address, and set the corresponding network type, when creating the elastic public IP or after creating it, choose to associate it with an existing server instance, or directly associate it when creating a new instance, configure security group rules as needed to allow external access to the relevant ports and protocols of the server, if necessary, configure the routing table, associate the elastic public IP with the subnet where the server instance is located, ensure that the traffic can be correctly forwarded to the server, and test the access to the public IP address of the server through SSH, browser access or other methods to ensure normal connection and access.
8. The DNS resolution method based on a single server with multiple elastic public IP addresses according to claim 7, characterized in that: Said S6, as in allocation, first navigate to the management page of the elastic public IP, find the elastic public IP to be reallocated, select "unbind" or a similar option, unbind it from the currently associated instance, select a new server instance, and associate it with the unbound elastic public IP, verify whether the new instance is correctly associated with the elastic public IP, and test access to the new IP address to ensure normal connection and access, and release the elastic public IP. Similarly, first navigate to the management page of the elastic public IP, find the elastic public IP to be released, select "release" or a similar option. The system usually asks the user to confirm the release operation, because after the release, the IP address will no longer belong to the user and cannot be recovered. After confirmation, the cloud service provider will release the elastic public IP from the user's account and return it to the IP address pool.
9. A DNS resolution method based on a single server with multiple elastic public IP addresses according to claim 1, characterized in that: S7 measures the response time and throughput of the DNS server and generates a detailed test report. Before performing DNS performance testing, it is necessary to set reasonable threshold parameters, such as response time thresholds. These thresholds can be set according to the actual situation of the DNS server and business needs. It is recommended to monitor DNS performance at least once a day and analyze the data in detail. The analysis content includes but is not limited to: response time, resolution success rate, query volume, etc. Through regular testing and analysis, potential problems can be discovered and solved in a timely manner to avoid the expansion of problems. If performance problems are found, first check whether it is due to the DNS server supplier, ensure that the primary / backup DNS servers are configured, and can be used when the primary server fails. It can quickly switch to the backup server. According to the network scale and traffic conditions, adjust the cache size in the DNS server. The appropriate cache size can speed up DNS resolution and improve user access speed. In high-traffic situations, consider using DNS load balancing to increase the processing speed of resolution. This can be achieved through dedicated load balancing hardware or software. Configure relay servers located in different geographical locations with faster response speeds to reduce the delay time of DNS resolution. Enabling DNS query logs can help administrators track and monitor server performance and security. By analyzing query logs, potential performance bottlenecks and security threats can be discovered. Use a network monitoring system for real-time monitoring to promptly discover and resolve performance problems.
10. A DNS resolution method based on a single server with multiple elastic public IP addresses according to claim 1, characterized in that: S8, ensure that the user's DNS service provider supports DNSSEC, use the DNSSEC tool to generate a pair of public and private keys, the key type and length should be selected based on security requirements, use the DNSSEC tool to sign the DNS zone file, which will generate an RRSIG record for each record in the zone, publish the public key to the parent domain name through the DS record to form a trust chain, the user can start from the root domain name to verify step by step to the target domain name, enable DNSSEC in the DNS server configuration, depending on the DNS server software used, you may need to edit the configuration file to enable DNSSEC support, use the DNSSEC verification tool to test whether the DNSSEC configuration is valid, verify whether all records carry RRSIG and can be verified, in the DNS server configuration, set only queries from specific IP addresses or IP address ranges, this can be achieved through access control lists or firewall rules, for dynamic DNS updates, use TSIG or SIG for authentication, this will ensure that only authenticated clients can update D NS records, configure DNS servers, limit access rights for zone transfers, only allow trusted servers or IP address ranges to perform zone transfers, in DNS server configuration, use ACL to limit access rights for specific query types, as mentioned in S9, use Windows system EventViewer, use command line tools, use third-party tools, if the user is the administrator of the DNS server and has access to the management interface of the DNS server, the user can log in to the DNS management tool, find and export resolution records, in the DNS management tool, there is usually a logging function, the user can set and view detailed logs of DNS queries and responses, the recorded DNS query and response information may contain sensitive data, so make sure to comply with relevant privacy and data protection regulations, regularly clean up DNS query records that are no longer needed to save storage space, for large networks or high-traffic DNS servers, logging all DNS queries and responses may generate a large amount of data, so you need to ensure that there is sufficient storage and processing power.
Citation Information
Cited By
Multi-instance domain name resolution caching method and device, equipment and medium
CN121441885A
A multi-instance domain name resolution caching method, apparatus, device and medium
CN121441885B
