CN114844858A - Method for obtaining domain name address by multiple networks - Google Patents
Method for obtaining domain name address by multiple networks Download PDFInfo
- Publication number
- CN114844858A CN114844858A CN202210381492.8A CN202210381492A CN114844858A CN 114844858 A CN114844858 A CN 114844858A CN 202210381492 A CN202210381492 A CN 202210381492A CN 114844858 A CN114844858 A CN 114844858A
- Authority
- CN
- China
- Prior art keywords
- dns server
- address
- dns
- buffer pool
- server address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000012544 monitoring process Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 5
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A method for obtaining domain name addresses by multiple networks is characterized in that DNS server addresses corresponding to multiple networks are reasonably scheduled, and corresponding routing rules are matched, so that the successful probability of domain name query can be greatly increased, a user can more conveniently access network services under the condition of multiple networks, and the use efficiency of a user terminal is greatly improved.
Description
Technical Field
The invention relates to the field of computer networks, in particular to a method for acquiring domain name addresses by multiple networks.
Background
The Domain Name System (DNS) is a service of the internet. It acts as a distributed database that maps domain names and IP addresses to each other, enabling people to more conveniently access the internet. When a terminal device accesses a domain name, firstly, the domain name is inquired for a DNS server bound by a network card device of the terminal device, and an IP address corresponding to the domain name is directly connected after the IP address is obtained. The DNS technology greatly simplifies the mode of using the Internet by people and promotes the development of the Internet.
The technology works well in a single network, but under the condition of multiple networks, a plurality of network card devices exist, and each network card device is bound with a DNS server, so that the problem exists. According to the own scoring rule, the operating system uses the DNS server of one network card device with the highest priority to perform domain name address query, and the DNS servers of other network card devices with lower priorities are not used. Some domain names that can only be resolved at a particular DNS server cannot be resolved resulting in the corresponding domain name being inaccessible.
Disclosure of Invention
In order to overcome the defects of the technology, the invention provides a method for acquiring domain name addresses under the condition of multiple networks, and the method for fully scheduling a DNS server using multiple network card devices to perform domain name query.
The technical scheme adopted by the invention for overcoming the technical problems is as follows:
a method for acquiring domain name addresses by multiple networks comprises the following steps:
a) establishing a DNS server address buffer pool;
b) monitoring the change of the DNS server address of each equipment network card in the Internet, and updating a DNS server address buffer pool according to the change of the DNS server address of each network card;
c) setting a routing rule according to the updated DNS server address;
d) and each device in the Internet uses a new scheduling mode to perform DNS query.
Further, step b) comprises the following steps:
b-1) scanning the address of a network card DNS server of each device in the Internet;
b-2) monitoring the address change of each network card DNS server;
b-3) directly adding the DNS server address of the network card with the DNS server address into the DNS server address buffer pool before the DNS server address buffer pool is established;
b-4) adding a network card of the DNS address after the DNS address buffer pool is established, and adding the newly added DNS address into the DNS address buffer pool;
b-5) after the DNS server address buffer pool is established, the network card of the DNS server address is changed, and after the corresponding old DNS server address is deleted, the new DNS server address is added into the DNS server address buffer pool;
b-6) deleting the network card of the DNS address after the DNS address buffer pool is established, and deleting the corresponding DNS address from the DNS address buffer pool.
Further, step c) comprises the steps of:
c-1) setting routing rules of DNS server addresses added into the DNS server address buffer pool, so that the communication between the equipment and the DNS server addresses is carried out along the original network card path of the equipment;
c-2) deleting the routing rule corresponding to the deleted DNS server address in the DNS server address buffer pool.
Further, step d) comprises the following steps:
d-1) the equipment uses the address of the DNS server address buffer pool to perform domain name inquiry;
d-2) if the current DNS server address in the DNS server address buffer pool is abnormal during domain name query, sequentially using the next DNS server address in the DNS server address buffer pool to perform domain name query until the equipment acquires the domain name IP address.
Preferably, the DNS server address buffer pool in step a) is established earlier or later than the first network connection.
Preferably, the network card in step b) is a physical network card or a virtual network card.
Preferably, the exception in step d-2) is that no connection is available or the DNS server address is not queried.
The invention has the beneficial effects that: by reasonably scheduling DNS server addresses corresponding to a plurality of networks and matching with corresponding routing rules, the success rate of domain name query can be greatly increased, so that a user can more conveniently access network services under the condition of multiple networks, and the use efficiency of a user terminal is greatly improved.
Drawings
FIG. 1 is a flow chart of a method of the present invention;
FIG. 2 is a flow chart of the present invention for updating the address buffer pool of the DNS server;
fig. 3 is a flow chart of a DNS buffer pool address scheduling method of the present invention.
Detailed Description
The invention will be further explained with reference to fig. 1, fig. 2 and fig. 3.
As shown in fig. 1, a method for acquiring a domain name address by multiple networks includes the following steps:
a) and establishing a DNS server address buffer pool.
b) And monitoring the change of the DNS server address of each equipment network card in the Internet, and updating the DNS server address buffer pool according to the change of the DNS server address of each network card.
c) And setting a routing rule according to the updated DNS server address.
d) And each device in the Internet uses a new scheduling mode to perform DNS query.
By reasonably scheduling DNS server addresses corresponding to a plurality of networks and matching with corresponding routing rules, the success rate of domain name query can be greatly increased, so that a user can more conveniently access network services under the condition of multiple networks, and the use efficiency of a user terminal is greatly improved.
Example 1:
as shown in fig. 2, step b) includes the following steps:
b-1) scanning the address of a network card DNS server of each device in the Internet;
b-2) monitoring the address change of each network card DNS server;
b-3) directly adding the DNS server address of the network card with the DNS server address into the DNS server address buffer pool before the DNS server address buffer pool is established;
b-4) adding a network card of the DNS address after the DNS address buffer pool is established, and adding the newly added DNS address into the DNS address buffer pool;
b-5) after the DNS server address buffer pool is established, the network card of the DNS server address is changed, and after the corresponding old DNS server address is deleted, the new DNS server address is added into the DNS server address buffer pool;
b-6) deleting the network card of the DNS address after the DNS address buffer pool is established, and deleting the corresponding DNS address from the DNS address buffer pool.
Example 2:
the step c) comprises the following steps:
c-1) setting routing rules of DNS addresses added in the DNS address buffer pool, so that the communication between the equipment and the DNS addresses is carried out along the original network card path of the equipment.
c-2) deleting the routing rule corresponding to the deleted DNS server address in the DNS server address buffer pool. And ensuring that the routing rule corresponding to the DNS server address of the deleted network card cannot influence the query of other DNS server addresses.
Example 3:
the existing DNS query scheduling mode is as follows: and only the DNS server address of the main network card is used for carrying out domain name query, and the DNS server addresses of other network cards are not used. As long as the first DNS server address of the main network card can be communicated, the standby DSN server address cannot be used even if the domain name address cannot be inquired. As shown in fig. 3, step d) of the present invention comprises the following steps:
d-1) the device uses the address of the DNS server address buffer pool for domain name query. Rather than the DNS server address of the primary network card.
d-2) if the current DNS server address in the DNS server address buffer pool is abnormal during domain name query, sequentially using the next DNS server address in the DNS server address buffer pool to perform domain name query until the equipment acquires the domain name IP address.
Example 4:
preferably, the DNS server address buffer pool in step a) is established earlier or later than the first network connection. The network card in the step b) is a physical network card or a virtual network card. And d-2) the exception is that the communication cannot be carried out or the DNS server address cannot be inquired.
The following is illustrated by a specific example:
network a connects and configures DNS server address a1, establishes a DNS server address buffer pool, and adds a1 to the DNS server address buffer pool. In this case, the state is a single network state, and there is a1 a DNS server address in the DNS server address buffer pool. And configuring a routing rule, and routing the network connection accessing A1 to the network card A.
Network B then connects and configures DNS server address B1, adding B1 to the DNS server address buffer pool. In this case, the DNS server address buffer pool is in a dual network state, and two DNS server addresses a1 and B1 are present. And adding a routing rule, and routing the network connection accessing B1 to the network card B.
Inquiring the domain name C, firstly inquiring A1 in the DNS address buffer pool, and according to the routing rule added in the previous step, inquiring data at this time through the network A. Return normally if a1 queries successfully. If the A1 query fails, continuing to query B1 in the DNS server address buffer pool, and according to the routing rule added in the previous step, the query data goes through the network B. If the B1 query is successful, the return is normal. If the B1 query fails, an attempt is made to continue looking for a new DNS server address in the DNS server address buffer pool, but no other DNS addresses are found, so a failure is returned.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (7)
1. A method for acquiring domain name addresses by multiple networks is characterized by comprising the following steps:
a) establishing a DNS server address buffer pool;
b) monitoring the change of the DNS server address of each equipment network card in the Internet, and updating a DNS server address buffer pool according to the change of the DNS server address of each network card;
c) setting a routing rule according to the updated DNS server address;
d) and each device in the Internet uses a new scheduling mode to perform DNS query.
2. The method for acquiring domain name address in multi-network according to claim 1, wherein step b) comprises the following steps:
b-1) scanning the address of a network card DNS server of each device in the Internet;
b-2) monitoring the address change of each network card DNS server;
b-3) directly adding the DNS server address of the network card with the DNS server address into the DNS server address buffer pool before the DNS server address buffer pool is established;
b-4) adding a network card of the DNS address after the DNS address buffer pool is established, and adding the newly added DNS address into the DNS address buffer pool;
b-5) after the DNS server address buffer pool is established, the network card of the DNS server address is changed, and after the corresponding old DNS server address is deleted, the new DNS server address is added into the DNS server address buffer pool;
b-6) deleting the network card of the DNS address after the DNS address buffer pool is established, and deleting the corresponding DNS address from the DNS address buffer pool.
3. The method for acquiring domain name address in multi-network according to claim 1, wherein step c) comprises the following steps:
c-1) setting routing rules of DNS server addresses added into the DNS server address buffer pool, so that the communication between the equipment and the DNS server addresses is carried out along the original network card path of the equipment;
c-2) deleting the routing rule corresponding to the deleted DNS server address in the DNS server address buffer pool.
4. The method for acquiring domain name address in multi-network according to claim 1, wherein step d) comprises the following steps:
d-1) the equipment uses the address of the DNS address buffer pool to carry out domain name inquiry;
d-2) if the current DNS server address in the DNS server address buffer pool is abnormal during domain name query, sequentially using the next DNS server address in the DNS server address buffer pool to perform domain name query until the equipment acquires the domain name IP address.
5. The method of claim 1, wherein the multi-network obtains the domain name address comprises: the DNS server address buffer pool in the step a) is established earlier than or later than the first network connection.
6. The method of claim 1, wherein the multi-network obtains the domain name address comprises: the network card in the step b) is a physical network card or a virtual network card.
7. The method of claim 1, wherein the multi-network obtains the domain name address comprises: and d-2) the exception is that the communication cannot be carried out or the DNS server address cannot be inquired.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210381492.8A CN114844858A (en) | 2022-04-13 | 2022-04-13 | Method for obtaining domain name address by multiple networks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210381492.8A CN114844858A (en) | 2022-04-13 | 2022-04-13 | Method for obtaining domain name address by multiple networks |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114844858A true CN114844858A (en) | 2022-08-02 |
Family
ID=82564701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210381492.8A Pending CN114844858A (en) | 2022-04-13 | 2022-04-13 | Method for obtaining domain name address by multiple networks |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114844858A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7734683B1 (en) * | 2000-07-11 | 2010-06-08 | Nokia Corporation | Method for providing a DNS server address list from a server to a client |
US20110055374A1 (en) * | 2009-08-31 | 2011-03-03 | International Business Machines Corporation | Computer implemented dns server ip address lookup mechanism |
CN103339996A (en) * | 2011-01-28 | 2013-10-02 | 阿尔卡特朗讯 | Method to connect a mobile node to a network |
CN103368977A (en) * | 2013-07-31 | 2013-10-23 | 华为终端有限公司 | Network connection method and terminal equipment |
CN103561121A (en) * | 2013-10-11 | 2014-02-05 | 北京奇虎科技有限公司 | Method and device for analyzing DNS and browser |
CN103929508A (en) * | 2014-05-04 | 2014-07-16 | 上海大亚科技有限公司 | System and method for achieving binding of services and domain name resolution servers |
CN104639672A (en) * | 2015-02-12 | 2015-05-20 | 广州华多网络科技有限公司 | Method and device for domain name resolution (DNS) |
US20150215276A1 (en) * | 2014-01-29 | 2015-07-30 | Vmware, Inc. | System and method for dynamically configuring a dns server in a virtual network environment |
CN106911508A (en) * | 2017-02-28 | 2017-06-30 | 杭州迪普科技股份有限公司 | The restoration methods and device of DNS configurations |
CN111432045A (en) * | 2020-03-19 | 2020-07-17 | 杭州迪普科技股份有限公司 | Method, device and equipment for testing server scheduling algorithm of domain name system |
CN113206785A (en) * | 2021-05-28 | 2021-08-03 | 深圳市中科明望通信软件有限公司 | Network request method and device, terminal equipment and storage medium |
CN113556410A (en) * | 2018-12-28 | 2021-10-26 | 华为技术有限公司 | Domain name server distribution method and device |
WO2022042395A1 (en) * | 2020-08-31 | 2022-03-03 | 华为技术有限公司 | Method for determining service server address, and communication device |
-
2022
- 2022-04-13 CN CN202210381492.8A patent/CN114844858A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7734683B1 (en) * | 2000-07-11 | 2010-06-08 | Nokia Corporation | Method for providing a DNS server address list from a server to a client |
US20110055374A1 (en) * | 2009-08-31 | 2011-03-03 | International Business Machines Corporation | Computer implemented dns server ip address lookup mechanism |
CN103339996A (en) * | 2011-01-28 | 2013-10-02 | 阿尔卡特朗讯 | Method to connect a mobile node to a network |
CN103368977A (en) * | 2013-07-31 | 2013-10-23 | 华为终端有限公司 | Network connection method and terminal equipment |
CN103561121A (en) * | 2013-10-11 | 2014-02-05 | 北京奇虎科技有限公司 | Method and device for analyzing DNS and browser |
US20150215276A1 (en) * | 2014-01-29 | 2015-07-30 | Vmware, Inc. | System and method for dynamically configuring a dns server in a virtual network environment |
CN103929508A (en) * | 2014-05-04 | 2014-07-16 | 上海大亚科技有限公司 | System and method for achieving binding of services and domain name resolution servers |
CN104639672A (en) * | 2015-02-12 | 2015-05-20 | 广州华多网络科技有限公司 | Method and device for domain name resolution (DNS) |
CN106911508A (en) * | 2017-02-28 | 2017-06-30 | 杭州迪普科技股份有限公司 | The restoration methods and device of DNS configurations |
CN113556410A (en) * | 2018-12-28 | 2021-10-26 | 华为技术有限公司 | Domain name server distribution method and device |
CN111432045A (en) * | 2020-03-19 | 2020-07-17 | 杭州迪普科技股份有限公司 | Method, device and equipment for testing server scheduling algorithm of domain name system |
WO2022042395A1 (en) * | 2020-08-31 | 2022-03-03 | 华为技术有限公司 | Method for determining service server address, and communication device |
CN113206785A (en) * | 2021-05-28 | 2021-08-03 | 深圳市中科明望通信软件有限公司 | Network request method and device, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7197574B1 (en) | Domain name system inquiry apparatus, domain name system inquiry method, and recording medium | |
US6915309B1 (en) | Automatically generating replication topology information for use by a directory service | |
US20070204040A1 (en) | System and method for domain name filtering through the domain name system | |
US20210344638A1 (en) | Method for network traffic forwarding, request sending, and communication acceleration, forwarding server and node server | |
CN103957282B (en) | Terminal user's domain name mapping acceleration system and its method in a kind of domain | |
US20060224799A1 (en) | Address management device | |
CN114095430B (en) | Access message processing method, system and working node | |
CN107222587B (en) | A kind of method for remotely accessing private network device | |
CN111885216B (en) | DNS query method, device, equipment and storage medium | |
CN106790746B (en) | Distributed domain name storage and analysis method and system | |
CN112235408A (en) | Network system, reverse proxy method and reverse proxy server | |
JP2014508350A (en) | Site-aware access to distributed file systems from outside the corporate network | |
CN101960827A (en) | Bridge port MAC Address discovery mechanism in the ethernet network | |
CN115080272A (en) | Business data processing method, electronic device and storage medium | |
JPH11284667A (en) | Multimedia communication network system, and router device and server device thereof | |
CN108681588A (en) | A kind of interface accesses real-time statistical method and system | |
CN113271359A (en) | Method and device for refreshing cache data, electronic equipment and storage medium | |
CN114844858A (en) | Method for obtaining domain name address by multiple networks | |
CN104683497B (en) | A kind of community network addressing of address method and device | |
CN107666444B (en) | Method and system for routing data flow | |
CN110691012A (en) | Message processing method and tester | |
CN112989255B (en) | Identification analysis system | |
CN113542409B (en) | Management system and processing method for instances of RocktMQ message queues | |
US20040122944A1 (en) | Method and system of locating computers in distributed computer system | |
CN101026517A (en) | Communication terminal access request routing method for communication network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |