CN106657440A - DNS service realization method - Google Patents
DNS service realization method Download PDFInfo
- Publication number
- CN106657440A CN106657440A CN201611222724.6A CN201611222724A CN106657440A CN 106657440 A CN106657440 A CN 106657440A CN 201611222724 A CN201611222724 A CN 201611222724A CN 106657440 A CN106657440 A CN 106657440A
- Authority
- CN
- China
- Prior art keywords
- address
- domain name
- dns
- server
- dns server
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Abstract
The invention discloses a domain name system service realization method. The method comprises the steps that each application server in a network monitors a state of each network card on the server itself in real time and notifies a monitoring result to a domain name system DNS server in real time; the DNS server updates the state of each network card stored on the device according to the notification; and when receiving a DNS request of a client, after determining that a domain name in the DNS request is accurate, the DNS server selects a valid IP and returns the valid IP to the client according to a mapping relationship between the currently stored domain name and an IP address and the state of the network card. Through adoption of the method, the successful mounting of a user can be ensured.
Description
Technical field
The present invention relates to computer networking technology, more particularly to a kind of implementation method of domain name system (DNS) service.
Background technology
DNS plays key player as an infrastructure service in network running, CIFS clients, NFS clients,
Ftp client etc. can be transferred through the service end of domain name access itself, such as configure after dns server, and user is just without being concerned about
Select which IP carries out client carry, use also more convenient.
In traditional DNS service scheme, the IP address that domain name is mapped be by network maintenance staff in the dns server
What configuration file was configured, after setting, dns server reads the configuration file in internal memory, please when DNS is received
When asking, user can be returned to by searching the corresponding IP of the corresponding domain name of configuration file acquisition.If a domain name is configured with multiple IP,
Usually IP is returned successively according to polling mode, but, dns server itself will not detect the validity of the IP, cause user
Occurs interim card during carry.In addition, increasing new application server or the old application server that breaks down every time, it is required for
Corresponding renewal is carried out with the mapping relations of IP address to domain name in configuration file.
As can be seen here, existing DNS service scheme there is a problem of that user can be caused to occur interim card during carry.
The content of the invention
In view of this, present invention is primarily targeted at providing a kind of implementation method of DNS service, the method may insure
The smooth carry of user.
In order to achieve the above object, technical scheme proposed by the present invention is:
A kind of implementation method of domain name system services, including:
The state of each network interface card on each application server real-time monitoring book server in network, and in real time lead to monitoring result
Know to dns server;The dns server notifies that the state of each described network interface card to preserving on this equipment is carried out more according to described
Newly;
When the dns server receives the DNS request of client, it is determined that the domain name in the DNS request is correct
Afterwards, according to the current domain name for preserving and the mapping relations and the state of the network interface card of IP address, effective IP address is selected to return
Give the client.
In sum, the implementation method of DNS service proposed by the present invention, each application server will be configured thereon in real time
All network interface cards state notifying to dns server, so that dns server is after the DNS request for receiving client, can select
Effectively IP address returns to the client, such that it is able to guarantee the smooth carry of client.
Description of the drawings
Fig. 1 is the method flow schematic diagram of the embodiment of the present invention.
Specific embodiment
It is right below in conjunction with the accompanying drawings and the specific embodiments to make the object, technical solutions and advantages of the present invention clearer
The present invention is described in further detail.
The present invention core concept be:Each application server in real time gives the state notifying of each network interface card on this equipment
Dns server, dns server selects effective IP to return to the client after the DNS request for receiving client.Thus, can
To guarantee the smooth carry of client.
Fig. 1 is the method flow schematic diagram of the embodiment of the present invention, as shown in figure 1, the domain name system services of the embodiment
Implementation method mainly includes:
The state of each network interface card on each application server real-time monitoring book server in step 101, network, and in real time will prison
Survey result to notify to dns server;The dns server is according to the shape notified to each described network interface card of preservation on this equipment
State is updated.
In this step, each application server will on real-time monitoring book server each network interface card state, and in real time will monitoring
As a result notify to dns server, in this way it can be ensured that dns server knows that in time the state of each network interface card is whether normal, so as to can
To be judged based on the validity of the IP address in this mapping relations to the domain name for being preserved with IP address.
It is preferred that application server can be using heartbeat mode, the monitoring result being notified to the dns server.
Step 102, when the dns server receives the DNS request of client, it is determined that in the DNS request
After domain name is correct, according to the current domain name for preserving and the mapping relations and the state of the network interface card of IP address, effective IP is selected
Address returns to the client.
By this step, it can be ensured that dns server is effective to the IP address that client is returned, so, using having
The IP address of effect, client can smooth carry.
It is preferred that the client can be returned to using following method choices effective IP:
Step 1021, the dns server obtain the mapping relations of domain name and IP address from internal memory, according to described
Domain name and the mapping relations of IP address, obtain the IP address matched with the domain name in the DNS request.
Step 1022, for each acquired IP address, the dns server obtains current this IP pair for preserving
The network card status answered, if the state of the network interface card is normal, judge the IP address effectively, if the state of the network interface card is abnormal,
Then judge that the IP address is invalid.
It is preferred that in order in time to dns server preserve domain name be updated with the mapping relations of IP address, work as network
During the new application server of middle deployment, can be registered to dns server from the new application server, will be new by registration
The mapping relations of the IP address of application server and corresponding domain name, increase to domain name and IP address that dns server is preserved
In mapping relations.Specifically, this purpose can be realized using following methods:
When new application server is disposed in network, the new application server sends to the dns server and notes
Volume request;The dns server according to the registration request, by the IP address of the new application server and corresponding domain name
Mapping relations, in increasing to the mapping relations of the domain name and IP address preserved in current memory.
It is preferred that in order in time to dns server preserve domain name be updated with the mapping relations of IP address, when one answer
When using server fail, the domain name that dns server will preserve the application server at it reflects with IP address
Penetrate in relation and delete the relevant information of the server for breaking down.Specifically this purpose can be realized using following methods:
When the dns server listens to arbitrary application server sever_i to break down, the DNS service
In domain name and the mapping relations of IP address that device is preserved in current memory, delete and the application server sever_i
The related mapping relations of all IP.
Specifically, when the dns server is listened to disappear with the heartbeat between an application server, you can judging should
Application server breaks down.
It should be noted that in traditional DNS service scheme, when new application server is disposed in network, or occurring
During the application server of failure, it is required for, by manually revising the configuration file on dns server, then needing to restart
Dns server loads revised configuration file, can just be based on the configuration file after updating and provide DNS service, therefore adopts
Traditional DNS service, when the mapping relations of more new domain name and IP address are needed DNS service will be interrupted.
And pass through using the above-mentioned side automatically updated with the mapping relations of IP address to the domain name that dns server is preserved
Method, on the one hand, the new application server for adding, automatically by its IP address and the mapping relations of corresponding domain name, is increased to by registration
In the domain name preserved in dns server current memory and the mapping relations of IP address, on the other hand, dns server is by correspondence
Monitored with server, when listening to the application server of failure, automatically by its IP address and the mapping relations of corresponding domain name,
Delete in the mapping relations of the domain name and the IP address that preserve from dns server current memory, thus, do not need manual monitoring,
Participate in, you can to realize to the domain name of dns server preservation and automatically updating for the mapping relations of IP address, and may insure
The continuation of DNS service.
In sum, presently preferred embodiments of the present invention is these are only, is not intended to limit protection scope of the present invention.
All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in the present invention's
Within protection domain.
Claims (5)
1. a kind of implementation method of domain name system services, it is characterised in that include:
The state of each network interface card on each application server real-time monitoring book server in network, and in real time by monitoring result notify to
Domain name system DNS server;The dns server notifies that the state of each described network interface card to preserving on this equipment is entered according to described
Row updates;
When the dns server receives the DNS request of client, after it is determined that domain name in the DNS request is correct, root
According to the current domain name for preserving and the mapping relations and the state of the network interface card of IP address, effective IP address is selected to return to the visitor
Family end.
2. method according to claim 1, it is characterised in that the application server adopts heartbeat mode, by the prison
Survey result to notify to the dns server.
3. method according to claim 1, it is characterised in that the effective IP of the selection returns to the client to be included:
The dns server obtains the mapping relations of domain name and IP address from internal memory, according to domain name and IP address
Mapping relations, obtain and the IP address that matches of domain name in the DNS request;
For each acquired IP address, the dns server obtains the current corresponding network card status of the IP for preserving,
If the state of the network interface card is normal, judge that the IP address effectively, if the state of the network interface card is abnormal, judges the IP address
It is invalid.
4. method according to claim 1, it is characterised in that methods described is further included:
When new application server is disposed in network, the new application server sends registration to the dns server please
Ask;
The dns server according to the registration request, by reflecting for the IP address of the new application server and corresponding domain name
Relation is penetrated, in increasing to the mapping relations of the domain name and IP address preserved in current memory.
5. method according to claim 1, it is characterised in that methods described is further included:
When the dns server listens to arbitrary application server sever_i to break down, the dns server exists
In the domain name preserved in current memory and the mapping relations of IP address, the institute with the application server sever_i is deleted
There are the related mapping relations of IP address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611222724.6A CN106657440A (en) | 2016-12-27 | 2016-12-27 | DNS service realization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611222724.6A CN106657440A (en) | 2016-12-27 | 2016-12-27 | DNS service realization method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106657440A true CN106657440A (en) | 2017-05-10 |
Family
ID=58831493
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611222724.6A Pending CN106657440A (en) | 2016-12-27 | 2016-12-27 | DNS service realization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657440A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107395783A (en) * | 2017-07-25 | 2017-11-24 | 北京奇艺世纪科技有限公司 | A kind of IP address processing method, system, device and electronic equipment |
CN109451090A (en) * | 2018-11-13 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of domain name analytic method and device |
CN112398962A (en) * | 2020-10-12 | 2021-02-23 | 联通智网科技有限公司 | Storage disaster tolerance method and device, computer equipment and storage medium |
CN115665009A (en) * | 2022-12-29 | 2023-01-31 | 鹏城实验室 | DNS root server state monitoring method and device, electronic equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1692606A (en) * | 2003-01-15 | 2005-11-02 | 三星电子株式会社 | Method of automatically registering an IP address and domain name in IP protocol version 6 |
US20110082931A1 (en) * | 2008-08-21 | 2011-04-07 | Tencent Technology (Shenzhen) Company Limited | Method, System And DNS Server For Load Balancing Network Servers |
CN103384212A (en) * | 2013-07-24 | 2013-11-06 | 佳都新太科技股份有限公司 | Double-machine high availability scheme for communication application system and implementation thereof |
CN103490914A (en) * | 2012-06-08 | 2014-01-01 | 华耀(中国)科技有限公司 | Switching system and switching method for multi-machine hot standby of network application equipment |
CN104104610A (en) * | 2013-04-09 | 2014-10-15 | 江苏天联信息科技发展有限公司 | Flow scheduling method and apparatus based on domain name system, and domain name system |
-
2016
- 2016-12-27 CN CN201611222724.6A patent/CN106657440A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1692606A (en) * | 2003-01-15 | 2005-11-02 | 三星电子株式会社 | Method of automatically registering an IP address and domain name in IP protocol version 6 |
US20110082931A1 (en) * | 2008-08-21 | 2011-04-07 | Tencent Technology (Shenzhen) Company Limited | Method, System And DNS Server For Load Balancing Network Servers |
CN103490914A (en) * | 2012-06-08 | 2014-01-01 | 华耀(中国)科技有限公司 | Switching system and switching method for multi-machine hot standby of network application equipment |
CN104104610A (en) * | 2013-04-09 | 2014-10-15 | 江苏天联信息科技发展有限公司 | Flow scheduling method and apparatus based on domain name system, and domain name system |
CN103384212A (en) * | 2013-07-24 | 2013-11-06 | 佳都新太科技股份有限公司 | Double-machine high availability scheme for communication application system and implementation thereof |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107395783A (en) * | 2017-07-25 | 2017-11-24 | 北京奇艺世纪科技有限公司 | A kind of IP address processing method, system, device and electronic equipment |
CN107395783B (en) * | 2017-07-25 | 2020-08-28 | 北京奇艺世纪科技有限公司 | IP address processing method, system, device and electronic equipment |
CN109451090A (en) * | 2018-11-13 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of domain name analytic method and device |
CN109451090B (en) * | 2018-11-13 | 2021-08-10 | 郑州云海信息技术有限公司 | Domain name resolution method and device |
CN112398962A (en) * | 2020-10-12 | 2021-02-23 | 联通智网科技有限公司 | Storage disaster tolerance method and device, computer equipment and storage medium |
CN115665009A (en) * | 2022-12-29 | 2023-01-31 | 鹏城实验室 | DNS root server state monitoring method and device, electronic equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657440A (en) | DNS service realization method | |
CN101605108B (en) | Method, system and apparatus for instant communication | |
US8479048B2 (en) | Root cause analysis method, apparatus, and program for IT apparatuses from which event information is not obtained | |
US11770438B2 (en) | Network communications | |
CN106162714B (en) | A kind of calling information processing method and processing device | |
US20120297478A1 (en) | Method and system for preventing dns cache poisoning | |
CN105306465B (en) | Web portal security accesses implementation method and device | |
CN107872353A (en) | A kind of Fault Locating Method and device | |
CN107222567A (en) | Method, device and the service cluster of processing data request | |
CN109246078B (en) | Data interaction method and server | |
CN101478553A (en) | Dynamic domain name management system and method | |
CN108183950A (en) | A kind of network equipment establishes the method and device of connection | |
CN109819068A (en) | User terminal and its block chain domain name analytic method | |
CN109547524A (en) | User behavior storage method, device, equipment and storage medium based on Physical Network | |
CN106604316B (en) | Method, device and system for positioning fault of wireless access equipment | |
CN113839966B (en) | Security management system based on micro-service | |
CN104468771B (en) | The determination method and device in geographical location | |
CN114244575A (en) | Automatic route hijacking blocking method and device | |
CN115826444A (en) | Security access control method, system, device and equipment based on DNS analysis | |
CN111818025B (en) | User terminal detection method and device | |
CN108650318B (en) | Data acquisition method and device | |
CN110298178A (en) | Credible policy learning method and device, credible and secure management platform | |
CN107979630A (en) | A kind of information acquisition method and device | |
CN114650211B (en) | Fault repairing method, device, electronic equipment and computer readable storage medium | |
CN110474821A (en) | Node failure detection method and device |
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 | ||
CB02 | Change of applicant information |
Address after: 518057 Shenzhen Software Park, No. 9, 501, 502, Science and Technology Middle Road, Nanshan District, Shenzhen City, Guangdong Province Applicant after: Shenzhen Innovation Technology Co., Ltd. Address before: 518057 Shenzhen Software Park, No. 9, 501, 502, Science and Technology Middle Road, Nanshan District, Shenzhen City, Guangdong Province Applicant before: UIT Storage Technology (Shenzhen) Co., Ltd. |
|
CB02 | Change of applicant information | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170510 |
|
WD01 | Invention patent application deemed withdrawn after publication |