CN105516389B - The amending method and device of domain name and IP mapping relations - Google Patents
The amending method and device of domain name and IP mapping relations Download PDFInfo
- Publication number
- CN105516389B CN105516389B CN201510978912.0A CN201510978912A CN105516389B CN 105516389 B CN105516389 B CN 105516389B CN 201510978912 A CN201510978912 A CN 201510978912A CN 105516389 B CN105516389 B CN 105516389B
- Authority
- CN
- China
- Prior art keywords
- target
- mapping relations
- address
- domain name
- target terminal
- 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.)
- Active
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]
-
- 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/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
Abstract
This application provides the amending methods of a kind of domain name and IP mapping relations, this method comprises: receiving the configuration modification request that target terminal is sent, for requesting the mapping relations between the domain name and IP address that store in modification dns server, configuration modification request carries target identification for configuration modification request;Based on the target identification, determine that the target terminal requests at least one target mapping relations of modification;Data corresponding at least one target mapping relations are sent to the target terminal, to show at least one target mapping relations on a target terminal;It receives the mapping that target terminal returns and modifies data;Data are modified based on mapping, update at least one target mapping relations stored in dns server.This method and device can reduce the complexity of mapping relations between modification domain name and IP address.
Description
Technical field
This application involves technical field of domain name resolution, the modification of more particularly to a kind of domain name and IP mapping relations
Method and apparatus.
Background technique
Domain name system (DNS, Domain Name System) can provide domain name resolution service, and domain name mapping refers to net
Domain name of standing mutually is converted with IP address.
Generally the mapping relations between domain name and IP address can be being stored in configuration file in the dns server, being based on should
Mapping relations can carry out domain name mapping.If necessary to modify domain name mapping result, it is necessary to domain name in the configuration file with
Mapping relations between IP address are modified, and e.g., modification domain may be frequently necessary to during software development and system testing
The mapping relations of name and IP, to change domain name mapping result.However due to DNS service program in different dns servers and match
The syntax format for setting file is likely to be different, therefore, just necessary before configuration file in the dns server is modified
Program used in understanding dns server and the syntax format of the configuration file are first removed, so that modification configuration file
The process of middle mapping relations is complex, needs professional operation maintenance personnel that can repair to the mapping relations in configuration file
Change, ordinary person is difficult to realize to change the mapping relations.
Summary of the invention
In view of this, this application provides the amending method and device of a kind of domain name and IP mapping relations, to reduce modification
The complexity of mapping relations between domain name and IP address.
To achieve the above object, the application provides the following technical solutions:
A kind of amending method of domain name and IP mapping relations, comprising:
The configuration modification request that target terminal is sent is received, the configuration modification request is for requesting modification dns server
Mapping relations between the domain name and IP address of middle storage, the configuration modification request carry target identification;
Based on the target identification, determine that the target terminal requests at least one target mapping relations of modification;
Data corresponding at least one target mapping relations are sent to the target terminal, in the target
At least one target mapping relations are shown in terminal;
The mapping modification data that the target terminal returns are received, the mapping modification data are the target terminal to institute
Some or all of state at least one target mapping relations the data after mapping relations are modified;
Data are modified based on the mapping, update at least one target mapping relations stored in dns server.
Preferably, the configuration modification request for receiving target terminal and sending, comprising:
The HTTP request that target terminal is sent by browser is received, the HTTP request modifies the DNS for requesting
The mapping relations between domain name and IP address stored in server;
It is then described that data corresponding at least one target mapping relations are sent to the target terminal, comprising:
Building includes the table of at least one target mapping relations;
Return to web data to the target terminal, include in the web data present in a tabular form it is described at least
Data corresponding to one target mapping relations, and the web data is rendered for the target terminal comprising the table
Webpage.
Preferably, the target identification is the IP address of the target terminal;
It is then described to be based on the target identification, determine that the target terminal requests at least one target mapping of modification to be closed
System, comprising:
Based on the IP address of the target terminal, determining associated at least one target of IP address with the target terminal
Mapping relations.
Preferably, described to be based on the target identification, determine that the target terminal requests at least one target of modification
Mapping relations, comprising:
Based on the target identification, determine that the target terminal requests the configuration file of modification, in the configuration file
It is stored at least one target mapping relations;
It is then described that data are modified based on the mapping, update at least one target mapping stored in dns server
Relationship, comprising:
Data are modified based on the mapping, update at least one target mapping relations in the configuration file;
Data are then modified based on the mapping described, update at least one target mapping in the configuration file
After relationship, further includes:
Target ip address is distributed for the configuration file, wherein when the IP address of the dns server of terminal is the target
When IP address, the terminal can be called and show the mapping relations in the configuration file;
The target ip address is sent to the target terminal, so that the target terminal will be on the target terminal
The IP address of dns server is set as the target ip address or the target ip address is shared with other terminals.
Preferably, the mapping modification data include: the mapping relations of special domain name and IP address, wherein described special
Domain name is the entitled asterisk wildcard of rhizosphere in domain name;
It is then described that data are modified based on the mapping, update at least one target mapping stored in dns server
Relationship, comprising:
From the domain name that at least one target mapping relations include, target domain name is determined, wherein the aiming field name
In domain name part in addition to rhizosphere name it is identical as the domain name part in the feature domain name in addition to rhizosphere name;
The corresponding IP address of the target domain name is changed to the corresponding IP address of the special domain name.
On the other hand, the embodiment of the present application also provides the modification devices of a kind of domain name and IP mapping relations, comprising:
First receiving unit, for receiving the configuration modification request of target terminal transmission, the configuration modification request is used for
The mapping relations between domain name and IP address stored in request modification dns server, the configuration modification request carry mesh
Mark mark;
Determination unit determines that the target terminal requests at least one mesh of modification for being based on the target identification
Mark mapping relations;
Transmission unit, it is whole for data corresponding at least one target mapping relations to be sent to the target
End, to show at least one target mapping relations on the target terminal;
Second receiving unit modifies data for receiving the mapping that the target terminal returns, and data are modified in the mapping
Number after modifying for the target terminal to mapping relations some or all of in at least one target mapping relations
According to;
Relationship updating unit updates described at least one stored in dns server for modifying data based on the mapping
Target mapping relations.
Preferably, first receiving unit, comprising:
First receiving subelement, the HTTP request sent for receiving target terminal by browser, the HTTP request
For requesting to modify the mapping relations between the domain name and IP address that store in the dns server;
The then transmission unit, comprising:
Table construction unit, for constructing the table comprising at least one target mapping relations;
Transmission sub-unit includes with table shape in the web data for returning to web data to the target terminal
Data corresponding at least one target mapping relations that formula is presented, and the web data is used for the target terminal wash with watercolours
Dye the webpage comprising the table.
Preferably, the target identification is the IP address of the target terminal;
Then determination unit, comprising:
Determine subelement, for the IP address based on the target terminal, the determining IP address with the target terminal is closed
At least one target mapping relations of connection.
Preferably, the determination unit, comprising:
Document determining unit determines that the target terminal requests the configuration text of modification for being based on the target identification
Part is stored at least one target mapping relations in the configuration file;
The then relationship updating unit, comprising:
File update subelement, for based on the mapping modification data, update in the configuration file it is described at least
One target mapping relations;
Described device further include:
DNS service allocation unit, for the file update subelement update in the configuration file described at least
After one target mapping relations, target ip address is distributed for the configuration file, wherein as the IP of the dns server of terminal
When address is the target ip address, the terminal can be called and show the mapping relations in the configuration file;
Address return unit, for the target ip address to be sent to the target terminal, so as to the target terminal
The target ip address is set by the IP address of the dns server on the target terminal or divides the target ip address
It enjoys and gives other terminals.
Preferably, the mapping modification data include: the mapping relations of special domain name and IP address, wherein described special
Domain name is the entitled asterisk wildcard of rhizosphere in domain name;
The then relationship updating unit, comprising:
Domain name determines subelement, for determining aiming field from the domain name that at least one target mapping relations include
Name, wherein the domain name part in the aiming field name in addition to rhizosphere name and the domain name in the feature domain name in addition to rhizosphere name
Part is identical;
Mapping modification unit, for the corresponding IP address of the target domain name to be changed to the corresponding IP of the special domain name
Address.
It can be seen via above technical scheme that in this application, the configuration modification that dns server receives terminal transmission is asked
After asking, according to the target identification that configuration modification request carries, determine that terminal requests at least one target mapping of modification
Relationship, and determining target mapping relations are returned into terminal, with it is displayed on the terminals go out at least one target mapping relations,
So that the user of terminal can be directly on the terminal to the domain name or IP address in the target mapping relations, and DNS takes
After business device receives the mapping modification data of user's return, this directly can be updated at least to based on mapping modification data
One target mapping relations avoids terminal user and directly modifies to the mapping relations in configuration file in dns server,
The complexity for reducing modification mapping relations, so that ordinary person also can according to need the mapping to domain name and IP address
Relationship is modified.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to required use in embodiment description
Attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only embodiments herein, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to the attached drawing of offer other attached
Figure.
Fig. 1 shows the flow diagram of amending method one embodiment of a kind of domain name of the application and IP mapping relations;
Fig. 2 shows the structural schematic diagrams of a kind of domain name of the application and modification device one embodiment of IP mapping relations.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Referring to Fig. 1, it illustrates the processes of a kind of domain name of the application and amending method one embodiment of IP mapping relations
Schematic diagram, the present embodiment are applied to domain name system (DNS, Domain Name System) server, and the method for the present embodiment can
To include:
101, receive the configuration modification request that target terminal is sent.
Wherein, configuration modification request is for requesting reflecting between the domain name and IP address that store in modification dns server
Relationship is penetrated, configuration modification request carries target identification.
Wherein, which is used to indicate mapping relations to be modified, alternatively, indicating the terminal association or have and repair
Change the mapping relations of permission.Such as, which can be the IP address of the target terminal.
It is understood that domain name mapping is the conversion with the mapping relations between domain name and IP address to carry out, therefore,
It modifies to the mapping relations between domain name and IP address, actually in order to change domain name mapping, so that domain name mapping
As a result it changes.
It should be noted that for the ease of distinguishing, by the end of currently transmitted configuration modification request in the embodiment of the present application
End is known as target terminal.
Optionally, configuration modification request can be hypertext transfer protocol (HTTP, Hyper Text Transfer
Protocol it) requests.Such as, target terminal can establish HTTP with dns server by browser and connect, and to dns server
HTTP request is sent, domain name mapping relationship is changed with request.
102, it is based on the target identification, determines that the target terminal requests at least one target mapping relations of modification.
For the ease of distinguishing, the mapping relations determined based on the target identification are known as target in the embodiment of the present application
Mapping relations.
Optionally, when the target identification is the IP address of target terminal, then dns server can determine and target end
The associated at least one target mapping relations of the IP address at end.
103, data corresponding at least one target mapping relations are sent to the target terminal, at target end
At least one target mapping relations are shown on end.
104, receive the mapping modification data of target terminal return.
Wherein, mapping modification data are that target terminal is reflected to some or all of in at least one target mapping relations
The relationship of penetrating modify after data.Such as, the target mapping relations determined have five, and user may it is only necessary to therein
Two target mapping relations are modified, but map modification data, then are contained after this two target mapping relations are modified
Data and the target mapping relations do not modified.
In the present embodiment, dns server by at least one target mapping relations determined return to target terminal it
Afterwards, the target mapping relations that dns server return can be shown on target terminal, so that the user of target terminal is recognized that
Corresponding relationship in the target mapping relations between domain name and IP address.If user needs to close a certain target mapping of modification
The corresponding relationship of domain name and IP address in system then can directly modify in the data of return.Such as, certain target mapping is closed
System are as follows: domain name: www.adcd.com corresponds to IP address: 192.168.12.1, and user can change in the target mapping relations
Domain name such as changes www.emfg.com, then the target mapping relations are modified to: www.emfg.com corresponds to IP address:
192.168.12.1。
105, data are modified based on the mapping, update at least one target mapping relations stored in dns server.
Wherein, the mode for at least one target mapping relations for updating DNS storage based on mapping modification data can have
It is a variety of, e.g., at least one target stored in mapping relations and dns server in mapping modification data can be compared and reflected
Relationship is penetrated, and determines domain name or the changed target mapping relations of IP address, and according to mapping modification data at least one
Changed target mapping relations are modified in target mapping relations.For another example, it is also possible to utilize mapping modification data
Corresponding mapping relations replace at least one target mapping relations stored in the dns server.It is, of course, also possible to there is it
His mode, is not limited herein.
In the embodiment of the present application, after the configuration modification that dns server receives terminal transmission is requested, according to the configuration
The target identification that modification request carries determines that terminal requests at least one target mapping relations modified, and by determining mesh
Mark mapping relations return to terminal, at least one target mapping relations out displayed on the terminals, so that the use of terminal
Family can be directly on the terminal to the domain name or IP address in the target mapping relations, and dns server receives user and returns
Return mapping modification data after, can directly to based on the mapping modification data update at least one target mapping close
System, avoids terminal user and directly modifies to the mapping relations in configuration file in dns server, reduces modification mapping
The complexity of relationship modifies to the mapping relations of domain name and IP address so that ordinary person also can according to need.
In the embodiment of the present application, the form for at least one target mapping relations determined being sent to target terminal can
There are many, e.g., the corresponding relationship for directly transmitting domain name and IP address in each target mapping relations can be.
Optionally, dns server can construct the table of at least one target mapping relations comprising determining, in the table
These target mapping relations are shown in lattice, in this way, showing the table after client receives the table, user can be direct
It modifies to each target mapping relations in table, and returns to modified table after completing modification.
Particularly, HTTP is established with dns server end by browser when target terminal to connect, and send out to dns server
HTTP request is sent, in the case where requesting the mapping relations between the domain name and IP address that store in modification dns server, service
Device can return to web data to target terminal, include presenting in a tabular form in the web data after constructing the table
At least one target mapping relations corresponding to data, and the web data is rendered comprising the table for target terminal
Webpage.Target terminal show include the table webpage after, user can modify the target in the table in webpage
Mapping relations, after modification finishes, user can click preservation, and target terminal can will be in table modified in the webpage at this time
Target mapping relations return to dns server.
It is understood that in practical applications, when dns server is that target terminal returns to web data, in the webpage
It can also include the IP address of the dns server in data, so as to trivial point of different dns server of target terminal.
It is understood that in practical applications, the user of target terminal may incite somebody to action when modifying target mapping relations
Multiple domain names are mapped to an IP address, and current mode is typically necessary and individually modifies each domain name reflecting to the IP address
It penetrates, it is cumbersome that complicated operation.In order to reduce the operation complexity of user, in the embodiment of the present application, asterisk wildcard can be supported
Use the special domain name comprising asterisk wildcard " * " can be set that is, when modifying at least one target mapping relations, wherein
Root domain name part in the special domain name is asterisk wildcard.The mapping that then can establish the special domain name and some IP address is closed
System, in this way, if certain domain name and the part in the special domain name other than the rhizosphere name are all the same, corresponding to the domain name
IP address be IP address pointed by the special domain name.
Correspondingly, if including reflecting for special domain name and IP address in the configuration modification request that dns server receives
When penetrating relationship, then target domain name can be determined, wherein the target from the domain name that at least one target mapping relations include
Domain name part in domain name in addition to rhizosphere name is identical as the domain name part in this feature domain name in addition to rhizosphere name;Then should
The corresponding IP address of target domain name is changed to the corresponding IP address of the special domain name.
For example, special domain name can be with are as follows: www.a.*.com, wherein www and a is respectively top-level domain and second-level domain
Name, com are international top level domain, then rhizosphere name is different, and top-level domain, second level domain and international top level domain and this is special
The identical domain name of domain name can be used as target domain name, if user set the corresponding IP address of special domain name as
192.168.12.1, then the IP address of all target domain names can be set as 192.168.12.1 by server.
It should be noted that target terminal when modifying local host file, can equally be come by the way of asterisk wildcard
The mapping relations between special domain name and IP address are configured, to reduce modification number.
It is understood that dns server storage can be deposited using configuration file in any of the above one embodiment
Store up the mapping relations between domain name and IP address.Correspondingly, after getting target identification target identification can be based on, really
The terminal that sets the goal requests the configuration file of modification, is stored at least one target mapping relations in the configuration file.Such as,
The mapping relations of domain name and IP address needed for different terminals being accessed are stored in a configuration file, such as the IP of terminal
Address corresponds to a configuration file.
Correspondingly, when updating at least one target mapping relations, be also possible to directly in the configuration file at least
One target mapping relations is updated.
Further, in order to enable the user of other terminals can also be directly using domain name in the configuration file and IP
Mapping relations, without remodifying configuration file corresponding to other terminals again, in more new configuration file described in extremely
Dns server can also distribute target ip address for configuration file after few target mapping relations, wherein when terminal
When the IP address of dns server is the target ip address, then the terminal can be called and show the pass of the mapping in the configuration file
System.
Meanwhile the target ip address can also be sent to target terminal by dns server, in this way, the target terminal can be with
The target ip address is set by the IP address of the dns server on the target terminal, in this way, the target terminal can also be by institute
It states target ip address and is shared with other terminals, so that other terminals, when carrying out network access, dns server can be based on should
Configuration file parses the domain name inputted in the terminal.
For example, the computer IP of user A is 192.168.12.1, then dns server is the DNS service of user A distribution
Device IP can be 192.168.13.1.If the user A wishes to be shared in the configuration file that the other users B user A is defined
Mapping relations, as long as then user B get the dns server be the user A distribution dns server IP address, and will
The IP address of the dns server of the computer of user B is set as 192.168.13.1, then server can matching according to the user A
The mapping relations set in file parse domain name transmitted by user B.
Wherein, it is actually to give the target terminal that dns server, which is the target ip address that target terminal returns to dns server,
A service processes are assigned with, and the target ip address is shared with user B, actually have shared the service processes.
It should be noted that in any of the above one embodiment, when needing to modify domain name mapping, in addition to needing the domain
Except mapping relations between name and IP address, it is also possible to circuit types, weight, MX priority, TTL these sides can be related to
The content modification in face.Wherein, circuit types is to need to parse route again since domestic north and south network is obstructed.Weight
It can usually be used in the place of load balancing, for example a website has 10 servers to undertake request, but 10 take
The hardware configuration of business device is different, so that it may by the difference of weight, visitor are resolved to different servers by weight.MX priority
The usually parsing setting of mail domain name, the weight of similar domain name, in the priority of selection MX server, this value is smaller, gets over
Preferentially.TTL refers to cache-time of the domain name mapping in each dns caching server, because domain name mapping is in formal net
It is highly stable, few modifications in network environment, so this value is generally very big, than 86400.
A kind of domain name of corresponding the application and the amending method of IP mapping relations, the embodiment of the present application also provides a kind of domains
The modification device of name and IP mapping relations.
Referring to fig. 2, it illustrates the modification device of a kind of domain name of the application and IP mapping relations, the apparatus may include:
First receiving unit 201, for receiving the configuration modification request of target terminal transmission, the configuration modification request is used
The mapping relations between domain name and IP address stored in request modification dns server, the configuration modification request carry
Target identification;
Determination unit 202 determines that the target terminal requests at least one of modification for being based on the target identification
Target mapping relations;
Transmission unit 203, for data corresponding at least one target mapping relations to be sent to the target
Terminal, to show at least one target mapping relations on the target terminal;
Second receiving unit 204 modifies data for receiving the mapping that the target terminal returns, and number is modified in the mapping
According to for the target terminal to mapping relations are modified some or all of in at least one target mapping relations after
Data;
Relationship updating unit 205, for based on the mapping modify data, update dns server in store it is described extremely
Few target mapping relations.
Optionally, in a kind of possible implementation, first receiving unit may include:
First receiving subelement, the HTTP request sent for receiving target terminal by browser, the HTTP request
For requesting to modify the mapping relations between the domain name and IP address that store in the dns server;
The then transmission unit may include:
Table construction unit, for constructing the table comprising at least one target mapping relations;
Transmission sub-unit includes with table shape in the web data for returning to web data to the target terminal
Data corresponding at least one target mapping relations that formula is presented, and the web data is used for the target terminal wash with watercolours
Dye the webpage comprising the table.
Optionally, in the embodiment of any of the above device, the target identification can be the IP of the target terminal
Location;
Correspondingly, the determination unit, may include:
Determine subelement, for the IP address based on the target terminal, the determining IP address with the target terminal is closed
At least one target mapping relations of connection.
Optionally, in one possible implementation, the determination unit may include:
Document determining unit determines that the target terminal requests the configuration text of modification for being based on the target identification
Part is stored at least one target mapping relations in the configuration file;
The then relationship updating unit, comprising:
File update subelement, for based on the mapping modification data, update in the configuration file it is described at least
One target mapping relations;
Described device further include:
DNS service allocation unit, for the file update subelement update in the configuration file described at least
After one target mapping relations, target ip address is distributed for the configuration file, wherein as the IP of the dns server of terminal
When address is the target ip address, the terminal can be called and show the mapping relations in the configuration file;
Address return unit, for the target ip address to be sent to the target terminal, so as to the target terminal
The target ip address is set by the IP address of the dns server on the target terminal or divides the target ip address
It enjoys and gives other terminals.
Optionally, in any of the above one embodiment, the mapping modification data include:
The mapping relations of special domain name and IP address, wherein the entitled asterisk wildcard of rhizosphere in the entitled domain name of special domain;
Correspondingly, the relationship updating unit, may include:
Domain name determines subelement, for determining aiming field from the domain name that at least one target mapping relations include
Name, wherein the domain name part in the aiming field name in addition to rhizosphere name and the domain name in the feature domain name in addition to rhizosphere name
Part is identical;
Mapping modification unit, for the corresponding IP address of the target domain name to be changed to the corresponding IP of the special domain name
Address.
For device embodiment, since it essentially corresponds to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
In several embodiments provided by the present invention, it should be understood that disclosed device and method are being not above
In spirit and scope, it can realize in other way.Current embodiment is a kind of exemplary example,
It should not be taken as limiting, given particular content should in no way limit the purpose of the application.For example, the unit or sub-unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or multiple
Subelement combines.In addition, multiple units can with or component can be combined or can be integrated into another system or some
Feature can be ignored, or not execute.
In addition, the schematic diagram of described system and method and different embodiments can in without departing from scope of the present application
With with other systems, module, techniques or methods combine or integrated.Another point, shown or discussed mutual coupling or
Direct-coupling or communication connection can be through some interfaces, and the indirect coupling or communication connection of device or unit can be electricity
Property, mechanical or other forms.
The above is only a specific embodiment of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (8)
1. the amending method of a kind of domain name and IP mapping relations characterized by comprising
The configuration modification request that target terminal is sent is received, the configuration modification request is deposited in modification dns server for requesting
Mapping relations between the domain name and IP address of storage, the configuration modification request carry target identification;
Based on the target identification, determine that the target terminal requests at least one target mapping relations of modification;
Data corresponding at least one target mapping relations are sent to the target terminal, in the target terminal
On show at least one target mapping relations;
Receive the mapping modification data that the target terminal returns, the mapping modification data for the target terminal to it is described extremely
Data after mapping relations are modified some or all of in few target mapping relations;
Data are modified based on the mapping, update at least one target mapping relations stored in dns server;
The configuration modification request for receiving target terminal and sending, comprising:
The HTTP request that target terminal is sent by browser is received, the HTTP request modifies the DNS service for requesting
The mapping relations between domain name and IP address stored in device;
It is then described that data corresponding at least one target mapping relations are sent to the target terminal, comprising:
Building includes the table of at least one target mapping relations;
Web data is returned to the target terminal, includes described at least one presented in a tabular form in the web data
Data corresponding to target mapping relations, and the web data renders the net comprising the table for the target terminal
Page;
The target terminal show include the table webpage after, user is modified in the webpage in the table
Target mapping relations, after modification finishes, user, which clicks, to be saved, and the target terminal can be by table modified in the webpage
Interior target mapping relations return to the dns server.
2. the method according to claim 1, wherein the target identification is the IP address of the target terminal;
It is then described to be based on the target identification, determine that the target terminal requests at least one target mapping relations of modification,
Include:
It is determining to be mapped with the target terminal associated at least one target of IP address based on the IP address of the target terminal
Relationship.
3. determining that the target is whole the method according to claim 1, wherein described be based on the target identification
Request at least one target mapping relations of modification in end, comprising:
Based on the target identification, determines that the target terminal requests the configuration file of modification, stored in the configuration file
There are at least one target mapping relations;
It is then described that data are modified based on the mapping, at least one target mapping relations stored in dns server are updated,
Include:
Data are modified based on the mapping, update at least one target mapping relations in the configuration file;
Data are then modified based on the mapping described, update at least one target mapping relations in the configuration file
Later, further includes:
For the configuration file distribute target ip address, wherein when terminal dns server IP address for the Target IP
When location, the terminal can be called and show the mapping relations in the configuration file;
The target ip address is sent to the target terminal, so that the target terminal is by the DNS on the target terminal
The IP address of server is set as the target ip address or the target ip address is shared with other terminals.
4. method according to any one of claims 1 to 3, which is characterized in that the mapping modification data include: special domain
The mapping relations of name and IP address, wherein the entitled asterisk wildcard of rhizosphere in the entitled domain name of special domain;
It is then described that data are modified based on the mapping, at least one target mapping relations stored in dns server are updated,
Include:
From the domain name that at least one target mapping relations include, target domain name is determined, wherein removing in the aiming field name
Domain name part except rhizosphere name is identical as the domain name part in the special domain name in addition to rhizosphere name;
The corresponding IP address of the target domain name is changed to the corresponding IP address of the special domain name.
5. the modification device of a kind of domain name and IP mapping relations characterized by comprising
First receiving unit, for receiving the configuration modification request of target terminal transmission, the configuration modification request is for requesting
The mapping relations between domain name and IP address stored in modification dns server, the configuration modification request carry target mark
Know;
Determination unit determines that the target terminal requests at least one target of modification to be reflected for being based on the target identification
Penetrate relationship;
Transmission unit, for data corresponding at least one target mapping relations to be sent to the target terminal, with
At least one target mapping relations are shown on the target terminal;
Second receiving unit modifies data for receiving the mapping that the target terminal returns, and the mapping modification data are institute
State the data after target terminal modifies to mapping relations some or all of in at least one target mapping relations;
Relationship updating unit updates at least one mesh stored in dns server for modifying data based on the mapping
Mark mapping relations;
First receiving unit, comprising:
First receiving subelement, the HTTP request sent for receiving target terminal by browser, the HTTP request are used for
The mapping relations between the domain name and IP address stored in the dns server are modified in request;
The then transmission unit, comprising:
Table construction unit, for constructing the table comprising at least one target mapping relations;
Transmission sub-unit includes being in a tabular form in the web data for returning to web data to the target terminal
Data corresponding to the existing at least one target mapping relations, and the web data is rendered for the target terminal
Webpage comprising the table;
The target terminal show include the table webpage after, user is modified in the webpage in the table
Target mapping relations, after modification finishes, user, which clicks, to be saved, and the target terminal can be by table modified in the webpage
Interior target mapping relations return to the dns server.
6. device according to claim 5, which is characterized in that the target identification is the IP address of the target terminal;
Then determination unit, comprising:
Determine subelement, for the IP address based on the target terminal, determination is associated with the IP address of the target terminal
At least one target mapping relations.
7. device according to claim 5, which is characterized in that the determination unit, comprising:
Document determining unit determines that the target terminal requests the configuration file of modification, institute for being based on the target identification
It states and is stored at least one target mapping relations in configuration file;
The then relationship updating unit, comprising:
File updates subelement, for modifying data based on the mapping, updates described at least one in the configuration file
Target mapping relations;
Described device further include:
DNS service allocation unit, for updating described at least one in the configuration file in file update subelement
After target mapping relations, target ip address is distributed for the configuration file, wherein when the IP address of the dns server of terminal
When for the target ip address, the terminal can be called and show the mapping relations in the configuration file;
Address return unit, for the target ip address to be sent to the target terminal, so that the target terminal is by institute
The IP address for stating the dns server on target terminal is set as the target ip address or is shared with the target ip address
Other terminals.
8. according to the described in any item devices of claim 5 to 7, which is characterized in that the mapping modification data include: special domain
The mapping relations of name and IP address, wherein the entitled asterisk wildcard of rhizosphere in the entitled domain name of special domain;
The then relationship updating unit, comprising:
Domain name determines subelement, for determining target domain name from the domain name that at least one target mapping relations include,
Described in domain name part in domain name part and the special domain name in target domain name in addition to rhizosphere name in addition to rhizosphere name
It is identical;
Mapping modification unit, for by the corresponding IP address of the target domain name with being changed to the corresponding IP of the special domain name
Location.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510978912.0A CN105516389B (en) | 2015-12-23 | 2015-12-23 | The amending method and device of domain name and IP mapping relations |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510978912.0A CN105516389B (en) | 2015-12-23 | 2015-12-23 | The amending method and device of domain name and IP mapping relations |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105516389A CN105516389A (en) | 2016-04-20 |
CN105516389B true CN105516389B (en) | 2019-01-08 |
Family
ID=55724014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510978912.0A Active CN105516389B (en) | 2015-12-23 | 2015-12-23 | The amending method and device of domain name and IP mapping relations |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105516389B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995889B (en) * | 2018-01-02 | 2022-02-25 | 中国移动通信有限公司研究院 | Method and device for updating mapping relation table, gateway equipment and storage medium |
CN109379438A (en) * | 2018-11-29 | 2019-02-22 | 西安四叶草信息技术有限公司 | Agent relation's configuration method and device |
CN110647510A (en) * | 2019-09-04 | 2020-01-03 | 苏州浪潮智能科技有限公司 | User name identifier mapping method, system, server and computer medium |
CN112040027B (en) * | 2020-09-14 | 2023-06-16 | 网易(杭州)网络有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112437170B (en) * | 2020-11-26 | 2022-06-28 | 新华三大数据技术有限公司 | Domain name information processing method and device, computer equipment and computer storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277257A (en) * | 2007-03-26 | 2008-10-01 | 华为技术有限公司 | Method, apparatus and system for dynamically updating DNS |
CN101442566A (en) * | 2009-01-08 | 2009-05-27 | 中国电信股份有限公司 | Method and apparatus for implementing dynamic domain name update |
CN101478553A (en) * | 2009-02-10 | 2009-07-08 | 中国网络通信集团公司 | Dynamic domain name management system and method |
CN101980194A (en) * | 2010-10-27 | 2011-02-23 | 北京世纪互联宽带数据中心有限公司 | Method for managing domain names |
CN102045407A (en) * | 2009-10-22 | 2011-05-04 | 中兴通讯股份有限公司 | Method and system for inquiring mapping relation and method for sending corresponding data message |
CN103685583A (en) * | 2012-09-05 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Method and system for resolving domain names |
US9219705B2 (en) * | 2007-06-25 | 2015-12-22 | Microsoft Technology Licensing, Llc | Scaling network services using DNS |
-
2015
- 2015-12-23 CN CN201510978912.0A patent/CN105516389B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277257A (en) * | 2007-03-26 | 2008-10-01 | 华为技术有限公司 | Method, apparatus and system for dynamically updating DNS |
US9219705B2 (en) * | 2007-06-25 | 2015-12-22 | Microsoft Technology Licensing, Llc | Scaling network services using DNS |
CN101442566A (en) * | 2009-01-08 | 2009-05-27 | 中国电信股份有限公司 | Method and apparatus for implementing dynamic domain name update |
CN101478553A (en) * | 2009-02-10 | 2009-07-08 | 中国网络通信集团公司 | Dynamic domain name management system and method |
CN102045407A (en) * | 2009-10-22 | 2011-05-04 | 中兴通讯股份有限公司 | Method and system for inquiring mapping relation and method for sending corresponding data message |
CN101980194A (en) * | 2010-10-27 | 2011-02-23 | 北京世纪互联宽带数据中心有限公司 | Method for managing domain names |
CN103685583A (en) * | 2012-09-05 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Method and system for resolving domain names |
Non-Patent Citations (1)
Title |
---|
怎么查询网站的IP地址;小灰灰不乖哟;《百度经验,URL:https://jingyan.baidu.com/article/a681b0de19e71d3b1943465b.html》;20141229;正文和正文附图 |
Also Published As
Publication number | Publication date |
---|---|
CN105516389A (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105516389B (en) | The amending method and device of domain name and IP mapping relations | |
CN105681476B (en) | A kind of method for page jump, device and system | |
CN102647482A (en) | Method and system for accessing website | |
US10009312B2 (en) | Delegating DNS records to additional providers | |
US9276901B2 (en) | Method, system, and apparatus for transitioning from IPv4 to IPv6 | |
CN104427627A (en) | Test data obtaining method, client and server | |
CN108737515A (en) | Route Selection is asked in networked environment | |
CN107179984A (en) | A kind of interface mock methods and interface test method | |
CN102667749A (en) | DNS application server | |
CN103023790A (en) | Method and system used for realizing cross-domain interactive access | |
US8239532B1 (en) | System and method of reducing latency using adaptive DNS resolution | |
CN108183975A (en) | A kind of method and system of domain name mapping | |
CN101164321A (en) | Process for managing resource address requests and associated gateway device | |
CN106161664A (en) | Domain name analytic method and device, data transmission method and device | |
JPH10240701A (en) | Method for balancing operation load between computer network and server | |
CN111857974A (en) | Service access method and device based on load balancer | |
CN102868550B (en) | Total network flow scheduler and method for querying domain name resolution record by using total network flow scheduler | |
CN109815430A (en) | Request processing method, device, data processing server and readable storage medium storing program for executing | |
CN104618400B (en) | A kind of access method and device of LAN | |
US20120278445A1 (en) | Load balancing system | |
CN105978976A (en) | Information processing system and method | |
CN110430084A (en) | Node state monitoring method and device | |
CN106899621B (en) | A kind of scheduling system and method | |
CN104301439B (en) | Load-balancing method, apparatus and system | |
KR102061217B1 (en) | Method for translation based on neural network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |