Do multi-line servers require intelligent DNS resolution?
You purchased a dual-line server, configured both China Telecom and China Unicom IP addresses, and brought the server online successfully. Yet, users reported slow access speeds, and some couldn't even load the page. Upon checking the server, you found the Telecom IP bandwidth fully saturated while the Unicom IP sat largely idle—one line was overwhelmed while the other was underutilized.
This scenario is common among users new to multi-line servers. The issue lies not with the server itself, but with a missing configuration: intelligent DNS resolution. The relationship between a multi-line server and intelligent DNS is like that of a highway and a navigation system: no matter how well-built the road is, without proper guidance, vehicles will still take inefficient, roundabout routes.
I. The Core Challenge of Multi-Line Servers: How Do Users Know Which Path to Take?
To understand why intelligent DNS is a "standard feature" for multi-line servers, one must first grasp how these servers operate.
Multi-line servers are typically implemented in two ways. The first is the "dual-line, dual-IP" setup: the server is equipped with two network interface cards connected to Telecom and Unicom lines respectively, resulting in two distinct public IP addresses. The second is the "BGP single-IP" setup: the server connects to multiple carriers simultaneously via the BGP protocol, exposing only a single IP address to the outside world, while the BGP protocol automatically selects the optimal path.
The BGP single-IP solution is certainly convenient; users don't need to worry about which line is used, as carrier routers make that determination automatically. However, this approach is costly, requiring the data center to possess an independent Autonomous System (AS) number and involving a setup period of three to six months. For small and medium-sized enterprises with limited budgets, the dual-line, dual-IP setup is the more common choice.
This setup, however, introduces a dilemma: the server has two IP addresses, but the user enters only a single domain name into their browser—so which IP address should the DNS server return?
If the DNS server returns an address arbitrarily, a Unicom user might be directed to the Telecom IP. This forces data packets to traverse the carrier's backbone network, causing latency to spike from tens of milliseconds to hundreds of milliseconds. Even worse, if that specific line fails, all users directed to it will lose access entirely.
II. How Intelligent DNS Solves This Problem
The core capability of Intelligent DNS lies in its ability to determine a user's internet service provider (ISP) when a domain name resolution request is initiated and then return an IP address corresponding to the appropriate network path.
The decision-making process works as follows: the user's computer sends a query request to the local DNS server. Upon receiving the request, the Intelligent DNS system analyzes the source IP address. The system utilizes a built-in database covering IP address ranges for major ISPs in mainland China, allowing it to identify whether the IP belongs to China Telecom, China Unicom, or China Mobile. Based on preset policies, the system then returns the corresponding IP address—Telecom IP for Telecom users, Unicom IP for Unicom users, and Mobile IP for Mobile users.
This process occurs within milliseconds, making it virtually imperceptible to the user. However, the impact is significant: users are directed to server paths within the same ISP network, eliminating the need for cross-network data transmission and drastically reducing latency.
Test data indicates that Intelligent DNS can reduce cross-network access latency by 30% to 50%. For e-commerce websites, this improvement directly affects conversion rates; a one-second delay in page loading can cause user churn to rise by over ten percent.
III. Two Scheduling Modes of Intelligent DNS
When configuring Intelligent DNS, one often encounters two easily confused concepts: line-based resolution and weight-based resolution. They address issues at different levels.
Line-based resolution addresses the question of "which network path a user should take." When the Intelligent DNS receives a query request, it returns the server IP address corresponding to the user's ISP type. This is the most fundamental and core function of Intelligent DNS.
Weight-based resolution addresses the question of "how traffic is distributed within the same network path." Suppose you have two servers on the China Telecom path—one high-performance and one low-performance; you can configure weights to ensure the high-performance server handles more traffic. For instance, by setting a weight ratio of 3:1, approximately 75% of users would be directed to the high-performance server.
These two modes can be used in combination. A typical scenario involves using line-based resolution to direct China Telecom users to the Telecom path, and then configuring multiple IP addresses with assigned weights within that path to achieve load balancing. IV. Complete Process for Configuring Intelligent DNS
The following example uses a dual-line server setup to illustrate the configuration steps for Intelligent DNS.
1. Preparation
First, verify your domain management privileges. Intelligent DNS resolution must be configured via the management console of your domain registrar or DNS service provider. If you use major cloud service providers like Alibaba Cloud or Tencent Cloud, intelligent resolution features are usually built-in.
Prepare your server information: Note down the specific IP addresses for the China Telecom and China Unicom lines. If you are using multiple servers, you should also record the network affiliation and performance characteristics of each server.
2. Add Basic Resolution Records
Log in to the DNS management console and navigate to the domain resolution settings page.
The first step is to add a record for the "default" line. This record serves as a fallback: if the system cannot identify the user's ISP, it will return the IP address associated with this record. Without a default line configuration, users relying on public DNS resolvers (such as 8.8.8.8) might fail to receive a resolution result.
The default line typically points to the IP address of your primary server or the line with the highest bandwidth.
3. Configure Line-Specific Resolution
Next, add resolution records for each ISP line. Click "Add Record," select "A Record" as the record type, and then choose the corresponding ISP from the "Resolution Line" or "Line Type" dropdown menu.
Using the China Telecom line as an example: enter "@" or "www" for the host record, select "A" for the record type, choose "China Telecom" for the line type, and enter your China Telecom server's IP address as the record value.
Follow the same procedure to add records for China Unicom and China Mobile lines. Each line corresponds to a unique IP address.
4. Set the TTL Value
The TTL (Time to Live) determines how long the resolution record remains in the user's local DNS cache. During the initial configuration phase, it is recommended to set the TTL to 60 seconds; this ensures that any changes take effect quickly, facilitating easier testing. Once the configuration is verified and the website is running stably, you can increase the TTL to 600 seconds or longer to reduce the frequency of DNS queries and alleviate server load.
5. Verifying DNS Resolution
After configuration, you need to verify that the settings have taken effect. You can use online DNS lookup tools to test from nodes across different regions and ISPs, checking whether the returned IP address matches your configuration.
You can also test using the `nslookup` command on your local computer. If the returned IP belongs to your current ISP's server, it indicates that the intelligent DNS resolution is working correctly.
V. Comparison: BGP vs. Intelligent DNS
Since intelligent DNS requires additional configuration, why not simply choose a BGP server?
The BGP approach is indeed simpler: the server has a single IP address, so users do not need to worry about which network path is taken; the BGP protocol automatically selects the optimal route. Regarding configuration, only a single DNS A record is required, without the need to distinguish between different network lines.
However, the BGP approach comes at a cost. Building a BGP-enabled data center requires an independent Autonomous System (AS) number and interconnection agreements with various ISPs, resulting in significantly higher costs compared to a dual-line, dual-IP setup. Data shows that the construction cost of a dual-line data center is about 40% higher than that of a single-line facility, and BGP data centers are even more expensive.
For small and medium-sized enterprises (SMEs) with limited budgets, a dual-line, dual-IP setup combined with intelligent DNS offers better cost-effectiveness. Although the configuration is slightly more complex, costs remain manageable, and performance meets the needs of most scenarios.
VI. Common Issues and Considerations
1. What happens if users utilize public DNS?
Some users configure public DNS settings on their computers or routers. In this scenario, the intelligent DNS system identifies the IP address of the public DNS server rather than the user's actual IP address. If the public DNS server does not fall within the ISP network lines you have configured, the user will be assigned to the default network line.
The solution is to ensure the default line points to a stable server IP, guaranteeing that all users can access the service properly.
2. What happens if a specific network line fails?
Intelligent DNS itself does not include built-in health check functionality. If a server on a specific network path goes down, the DNS will still return that faulty IP address, preventing users from accessing the service.
There are two solutions: first, use a DNS service that supports health checks to automatically switch to a different path when an anomaly is detected; second, monitor the status of each path regularly and manually update the DNS records if issues arise.
3. Are Intelligent DNS and CDN the same thing?
No. Intelligent DNS acts as a "guide," directing users to the correct server IP address, whereas a CDN acts as a "delivery service," caching content at nodes closest to the user. While they can work together, they are distinct technologies.
In summary: The value of multi-homed servers lies in having multiple network paths available, but users do not select these paths themselves. Intelligent DNS resolution serves as the "navigator"; it directs users to the appropriate path based on their ISP affiliation, allowing dual-homed servers to fully leverage the advantages of having two connections.
The core steps for configuring Intelligent DNS are: setting a default fallback path, adding records for each ISP's path, adjusting the TTL value to facilitate testing, and verifying the resolution results. This process requires no additional hardware, as mainstream DNS providers offer this functionality.
For websites deploying dual-homed servers, Intelligent DNS is not merely an option—it is essential. Without it, a dual-homed server is effectively just a standard server with two IP addresses, resulting in the wasted potential of the second network path.
CN
EN