CN115567485A - Domain name resolution method and device, electronic equipment and storage medium - Google Patents
Domain name resolution method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115567485A CN115567485A CN202211218879.8A CN202211218879A CN115567485A CN 115567485 A CN115567485 A CN 115567485A CN 202211218879 A CN202211218879 A CN 202211218879A CN 115567485 A CN115567485 A CN 115567485A
- Authority
- CN
- China
- Prior art keywords
- domain name
- name resolution
- server
- data
- tool
- 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 51
- 238000004891 communication Methods 0.000 claims abstract description 25
- 238000005538 encapsulation Methods 0.000 claims description 34
- 238000004458 analytical method Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 description 28
- 230000006855 networking Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application discloses a domain name resolution method, a domain name resolution device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving each domain name resolution instruction input by each domain name resolution tool; responding to the domain name resolution instruction, and acquiring a domain name carried by the domain name resolution instruction from the domain name resolution tool; sending the domain name and a connection number corresponding to the domain name resolution tool to the domain name server, and acquiring domain name resolution data from the domain name server; and inquiring a target connection number carried by the domain name resolution data, and sending the domain name resolution data to the corresponding target domain name resolution tool so that the target domain name resolution tool acquires a target equipment connection number corresponding to the target domain name from the domain name resolution data. The method and the device realize that a plurality of domain name resolution tools can be supported to perform domain name resolution simultaneously when the domain name resolution work is performed in a network with a special communication link, and improve the working efficiency and convenience of the domain name resolution.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a domain name resolution method and apparatus, an electronic device, and a storage medium.
Background
At present, in a network with a dedicated communication link, if a user needs to access a website or a device through a registered domain name, the domain name needs to be resolved to obtain a corresponding network connection number to access the website or the device, and a domain name resolution tool needs to establish connection with a domain name server first to perform domain name resolution work.
Usually, because a dedicated data link can only be established between two devices in a network having a dedicated communication link through their own device addresses, a terminal device can only support one domain name resolution tool to establish a connection with a domain name server based on their own device addresses, and cannot support the cooperative use of multiple domain name resolution tools, thereby reducing the flexibility of domain name resolution.
Disclosure of Invention
In order to solve the above problem, embodiments of the present application provide a domain name resolution method, an apparatus, an electronic device, and a storage medium, so as to solve the technical problem that a terminal device in a network environment with a dedicated communication link cannot support multiple domain name resolution tools to perform domain name resolution simultaneously as far as possible.
Some embodiments of the present application disclose a domain name resolution method, which is applied to a terminal device, wherein the terminal device and a domain name server establish a dedicated communication link; the method comprises the following steps:
receiving each domain name resolution instruction input by each domain name resolution tool;
responding to the domain name resolution instruction, and acquiring a domain name carried by the domain name resolution instruction from the domain name resolution tool;
sending the domain name and a connection number corresponding to the domain name resolution tool to the domain name server, and acquiring domain name resolution data from the domain name server; the connection number is generated when the domain name resolution tool establishes connection with a domain name server;
and inquiring a target connection number carried by the domain name resolution data, and sending the domain name resolution data to the corresponding target domain name resolution tool so that the target domain name resolution tool acquires a target equipment connection number corresponding to the target domain name from the domain name resolution data.
Optionally, the connection number is obtained by:
receiving an equipment address sent by a domain name resolution tool after the domain name resolution tool is started, and sending the equipment address to an intermediate server; the device address is a device address corresponding to terminal equipment deployed by the domain name resolution tool;
receiving a terminal number corresponding to the equipment address sent by the intermediate server, wherein the terminal number is sent by the intermediate server after the intermediate server confirms that the equipment address is accessed to the network;
and establishing the connection between the domain name resolution tool and the domain name server based on the terminal number to obtain a connection number corresponding to the domain name resolution tool.
Optionally, before the receiving the terminal number corresponding to the device address sent by the intermediate server, the method further includes:
and when the intermediate server returns a notification message that the terminal number is not accessed to the network, sending a network access request corresponding to the terminal number to the intermediate server.
Optionally, the sending the domain name and the connection number corresponding to the domain name resolution tool to the domain name server by using the communication link includes:
performing data encapsulation on the domain name and the connection number to generate a data encapsulation packet;
and sending the data encapsulation packet to the domain name server by using the communication link so as to acquire domain name resolution data from the domain name server.
Optionally, the sending the data encapsulation packet to the domain name server by using the communication link to obtain domain name resolution data from the domain name server includes:
transmitting the data encapsulation packet to the domain name server through an intermediate server;
and receiving the domain name resolution data replied by the domain name server transmitted through the intermediate server.
Optionally, before the step of receiving each domain name resolution instruction input for each domain name resolution tool, the method further includes:
judging the legality of the domain name, taking a target symbol as a separator, performing an analysis step if the specification, the style and the rule of the domain name are in accordance, and returning a prompt to wait for a next domain name analysis instruction if the specification, the style and the rule of the domain name are not in accordance; the last part of the plurality of parts contained in the domain name rule is the top-level domain name which accords with the domain name rule, and other parts do not contain non-letters, numbers and hyphens.
Optionally, the method comprises:
and the domain name resolution tool formats the domain name and processes the domain name into the same specification and style.
Some embodiments of the present application provide a domain name resolution apparatus, which is applied to a terminal device, where the terminal device and a domain name server establish a dedicated communication link; the device comprises:
the receiving module is used for receiving each domain name resolution instruction input by each domain name resolution tool;
responding to the domain name resolution instruction, and acquiring a domain name carried by the domain name resolution instruction from the domain name resolution tool;
the sending module is used for sending the domain name and the connection number corresponding to the domain name resolution tool to the domain name server and acquiring domain name resolution data from the domain name server; the connection number is generated when the domain name resolution tool is connected with a domain name server;
and sending the domain name resolution data to the corresponding target domain name resolution tool so that the target domain name resolution tool acquires the target equipment connection number corresponding to the target domain name from the domain name resolution data.
Optionally, the receiving module is further configured to:
receiving an equipment address sent by a domain name resolution tool after the domain name resolution tool is started, and sending the equipment address to an intermediate server; the device address is a device address corresponding to terminal equipment deployed by the domain name resolution tool;
receiving a terminal number corresponding to the equipment address sent by the intermediate server, wherein the terminal number is sent by the intermediate server after the intermediate server confirms that the equipment address is accessed to the network;
and establishing the connection between the domain name resolution tool and the domain name server based on the terminal number to obtain a connection number corresponding to the domain name resolution tool.
Optionally, the sending module is further configured to:
and when the intermediate server returns a notification message that the terminal number is not accessed to the network, sending a network access request corresponding to the terminal number to the intermediate server.
Optionally, the sending module is further configured to:
performing data encapsulation on the domain name and the connection number to generate a data encapsulation packet;
and sending the data encapsulation packet to the domain name server by using the communication link so as to acquire domain name resolution data from the domain name server.
Optionally, the sending module is further configured to transparently transmit the data encapsulation packet to the domain name server through an intermediate server;
the receiving module is further configured to receive the domain name resolution data replied by the domain name server and transparently transmitted by the intermediate server.
Optionally, the sending module is further configured to perform validity judgment on the domain name, use a target symbol as a separator, perform an analysis step if the specification and style of the domain name are consistent with the domain name rule, and return a prompt to wait for a next domain name analysis instruction if the specification and style of the domain name are not consistent with the domain name rule; the domain name rule is that the last part of a plurality of parts contained in the domain name is a top-level domain name which accords with the domain name rule, and other parts do not contain non-letters, numbers and hyphens.
Optionally, the sending module is further configured to format the domain name by the domain name resolution tool, and process the domain name into the same specification and style.
The embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of any of the domain name resolution methods described above when executing the program.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the domain name resolution methods described above.
According to the domain name resolution method, the domain name resolution system, the electronic device and the storage medium, the connection number is generated and recorded when the domain name resolution tool in the terminal device is connected with the domain name server, so that when data interaction is performed between the domain name resolution tool and the domain name server to perform domain name resolution, the connection number is used for distinguishing the domain name resolution tool to which the transmitted data belongs, the terminal device is supported by various domain name resolution tools, and the flexibility of domain name resolution of the terminal device is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 schematically illustrates a flow chart of a domain name resolution method provided by some embodiments of the present application;
fig. 2 schematically illustrates one of the flow diagrams of another domain name resolution method provided in some embodiments of the present application;
fig. 3 schematically illustrates a second flowchart of another domain name resolution method according to some embodiments of the present application;
fig. 4 schematically illustrates a third flowchart of another domain name resolution method provided by some embodiments of the present application;
FIG. 5 schematically illustrates a system architecture diagram of a domain name resolution system provided by some embodiments of the present application;
fig. 6 schematically illustrates a structural diagram of a domain name resolution method provided in some embodiments of the present application;
fig. 7 schematically illustrates a structural diagram of a domain name resolution device according to some embodiments of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Fig. 1 schematically shows a flowchart of a domain name resolution method provided in the present application, which is applied to a terminal device, where the terminal device establishes a dedicated communication link with a domain name server; the method comprises the following steps:
It should be noted that the main execution body of the domain name resolution method described in the present application is a terminal device, and the terminal device has functions of data processing, data transmission, data storage, and the like, but is not limited to a computer, a tablet computer, a smart phone, a switch, and the like. And the communication protocol followed requires a dedicated communication link to be established with the domain name server, i.e. there is only one pair of physical interfaces with the domain name server. For example, the terminal device follows a video networking protocol, where the domain name resolution command carries the domain name to be resolved. When the terminal device establishes communication connection with another terminal device, the domain name of the other terminal device can be obtained, the domain name of the other terminal device is the domain name to be resolved, and the domain name resolving tool is installed on the terminal device and interacts with the proxy service program, the domain name server and the like to perform domain name resolving work.
In the embodiment of the application, when a user inputs a domain name, the domain name resolution tool starts domain name resolution work, a domain name resolution instruction is input into the proxy service program, and the proxy service program performs subsequent domain name resolution work after receiving the domain name resolution instruction. Wherein the domain name resolution tool is specified by the user.
It should be noted that the terminal device responds to the domain name resolution instruction to obtain the domain name, where the domain name resolution instruction carries the domain name to be resolved. The Domain Name (Domain Name), also called network Domain, is the Name of a certain computer or computer group on the Internet, which is composed of a string of names separated by points, and is used for positioning and identifying the computer during data transmission.
In the embodiment of the application, the proxy service program installed in the terminal device receives the domain name resolution instruction input by the domain name resolution tool, and obtains the domain name from the domain name resolution instruction, so as to facilitate subsequent data interaction.
103, sending the domain name and a connection number corresponding to the domain name resolution tool to the domain name server, and acquiring domain name resolution data from the domain name server; and the connection number is generated when the domain name resolution tool establishes connection with a domain name server.
It should be noted that the connection number is one-to-one corresponding to the connection established between the domain name resolution tool and the domain name server, and there may be a plurality of domain name resolution tools, and therefore, there may be a plurality of connection numbers corresponding to the plurality of domain name resolution tools, respectively, and in order to distinguish the connection channels between different domain name resolution tools and the domain name server, the proxy service program may manage and maintain the connection number, and when the connection channel needs to exist, the connection number may be continuously stored in the proxy service program, and when the connection channel is no longer needed, the proxy service program may release the connection number.
In the embodiment of the application, the domain name resolution tool sends the domain name to the proxy service program, the proxy service program further packages the domain name and the connection number and sends the data package to the domain name server, and the domain name server parses the data package to obtain domain name resolution data and returns the domain name resolution data to the proxy service program. And identifying the domain name resolution tool to which the transmitted data belongs through the connection number to realize the support of the terminal equipment on various domain name resolution tools.
And 104, querying a target connection number carried by the domain name resolution data, and sending the domain name resolution data to the corresponding target domain name resolution tool, so that the target domain name resolution tool acquires a target device connection number corresponding to the target domain name from the domain name resolution data.
It should be noted that the target connection number is at least one of the connection numbers, but the carrying parties of the connection numbers are different, the connection number is obtained after the domain name tool and the domain name server are successfully connected, and further the connection number is encapsulated into the data encapsulation packet by the proxy service program and the domain name together, so that the connection number is carried by the data encapsulation packet, and the target connection number is analyzed after the domain name server receives the data encapsulation packet, and the domain name analysis data is returned, the connection number included in the domain name analysis data is the target connection number, and then the proxy service program can distinguish different connection channels according to the target connection number to distribute data, and the target connection number is carried by the domain name analysis data. The target connection number is a number corresponding to a connection established by the target domain name resolution tool and the domain name server. And identifying a target domain name resolution tool to which the transmitted data belongs through the target connection number to realize the support of the terminal equipment on various domain name resolution tools.
In the embodiment of the application, the terminal device distributes domain name resolution data to the corresponding target domain name resolution tools according to the target connection numbers by using a proxy service program, and the target domain name resolution tools perform resolution simultaneously to obtain the target device connection numbers corresponding to the domain names.
The embodiment of the application is applied to the characteristics of the special communication link, the terminal equipment receives the domain name resolution instruction of the domain name resolution tool, and the terminal equipment acquires and maintains the connection number of the domain name server and the domain name resolution tool by using the proxy service program, so that the domain name resolution data can be simultaneously distributed to a plurality of domain name resolution tools by using the connection number, and the effect of simultaneously performing domain name resolution on the multi-domain name resolution tool in the network environment of the special communication link is realized.
According to the embodiment of the application, the connection number is generated and recorded when the domain name resolution tool in the terminal equipment is connected with the domain name server, so that when data interaction is carried out between the domain name resolution tool and the domain name resolution server to carry out domain name resolution, the domain name resolution tool to which the transmitted data belongs is identified by using the connection number to realize the support of the terminal equipment on various domain name resolution tools, and the flexibility of the terminal equipment in domain name resolution is improved.
Alternatively, referring to fig. 2, the connection number is obtained by:
It should be noted that the device Address is a Media Access Control (MAC) Address, each device in the network has a unique network identifier, and this Address is called a MAC Address or a network card Address, and is written inside hardware when produced by a network device manufacturer. The intermediate server is one of computers, can be a core server, and runs faster, has higher load and is more expensive than a common computer. The server provides calculation or application services for other clients (such as terminals like PC, smart phone, ATM and the like and even large equipment like train systems and the like) in the network. The intermediate server has high-speed CPU computing capability, long-time reliable operation, strong I/O external data throughput capability and better expansibility.
Specifically, the domain name resolution tool sends the device address to the proxy service program, and then the proxy service program sends the device address to an intermediate server, which may be a core server.
Specifically, the domain name resolution tool sends the MAC address to the proxy service program, the proxy service program sends the received MAC address to the intermediate server, the intermediate server matches and inquires whether the device to which the received MAC address belongs is already connected or not according to the local network access information list, and the intermediate server sends the corresponding terminal number after the device address is confirmed to be connected. And the domain name resolution can be smoothly carried out by confirming whether the equipment is accessed to the network or not and carrying out network access operation on the equipment which is not accessed to the network.
It should be noted that, after successful network access, the domain name resolution tool establishes a connection with the domain name server to generate a connection channel and obtain a corresponding connection number, the proxy service program maintains and manages the connection number, when the connection channel between the domain name resolution tool and the domain name server needs to exist, the connection number is continuously stored in the proxy service program, and when the connection channel is no longer needed, the proxy service program releases the connection number.
In the embodiment of the application, the connection number is managed and maintained and corresponds to the domain name resolution tool, so that different connection channels can be distinguished when data is distributed, a plurality of domain name resolution tools can work simultaneously, and the efficiency is improved.
Optionally, before step 202, the method further comprises:
and when the intermediate server returns a notification message that the terminal number is not accessed to the network, sending a network access request corresponding to the terminal number to the intermediate server.
In this embodiment of the application, specifically, the domain name resolution tool sends the MAC address to the proxy service program, the proxy service program sends the received MAC address to the intermediate server, the intermediate server matches and queries whether the device to which the received MAC address belongs is already networked according to the local networking information list, if not, the proxy service program further sends a networking request to the intermediate server, and the intermediate server processes the networking request to network the MAC address and records the MAC address in the local networking information list. By inquiring the network access information list, performing network access operation on the equipment without the network access address and recording the address of the equipment already accessed to the network, the equipment to which the domain name resolution tool needs to be used is ensured to be equipment which can be used for successfully performing domain name resolution when domain name resolution is performed, so that the work is smoothly performed.
According to the method and the device, the equipment which does not access the network is accessed, so that the domain name resolution work can be smoothly developed.
Optionally, referring to fig. 3, the step 103 includes:
and step 1031, performing data encapsulation on the domain name and the connection number to generate a data encapsulation packet.
It should be noted that, the domain name is sent by the domain name resolution tool, and the proxy service program performs data encapsulation on the domain name and the domain name together according to the connection number, so as to generate a data encapsulation packet.
It should be noted that the data encapsulation packet performs data transparent transmission to the domain name server through an intermediate server, the domain name server returns domain name resolution data to the intermediate server after performing domain name resolution, and the intermediate server further transmits the domain name resolution data to the proxy service program, where transparent transmission refers to a data transmission mode unrelated to a medium, a modulation and demodulation mode, a transmission mode, and a transmission protocol of a transmission network. Transparent data transmission means that in the process of data transmission, the group of data is not changed in any form in a wireless mode, as if the transmission process is transparent, and meanwhile, the transmission quality is guaranteed and the group of data arrives at the final receiver without change.
In the embodiment of the application, the data encapsulation can ensure the integrity of data content during data transmission, and the data transparent transmission is also based on the consideration of ensuring the integrity of data, so that the data transmission is more stable.
Optionally, referring to table 1, the transparent transmission protocol packet structure for data transparent transmission includes: the transparent transmission data packet header, the additional information header, the connection number and the data content.
Transparent data packet header | Additional information head | Connection number | Data content |
TABLE 1
Specifically, the transparent transmission data packet header includes: a video networking protocol, a partial tag and a service indication; the transparent transmission data packet further comprises the connection number and the data content, and the data content is the content packaged by the data. The specific structure of the additional information header refers to table 2, and the total length is used for indicating the capacity of the information; the sub-packet identification is used for indicating that the packet is a few sub-packets; the check is used for checking according to the check value to judge the validity.
TABLE 2
The embodiment of the application realizes the functions of indicating information capacity, marking sub-packet serial numbers and judging legality through the transparent transmission protocol packet structure, and realizes the direction indication of data transparent transmission by including the connection serial numbers.
Optionally, referring to fig. 4, the step 1032 includes:
In the embodiment of the application, the data encapsulation packet is obtained by encapsulating the connection number and the domain name together by the proxy service program, the proxy service program sends the data encapsulation packet to the intermediate server, the intermediate server further transmits the data encapsulation packet to the domain name server, and the domain name server receives the transmitted data encapsulation packet, further performs domain name resolution to obtain domain name resolution data and returns the domain name resolution data to the intermediate server. After receiving the domain name resolution data, the intermediate server transparently transmits the domain name resolution data to the proxy service program, and after receiving the domain name resolution data, the proxy service program distributes the data according to the target connection number and sends the data to the domain name resolution tool.
The embodiment of the application carries out data transparent transmission through the intermediate server, so that the data transmission is more stable, convenient and rapid, and meanwhile, the transparent transmission mode also has the advantage of keeping the integrity of the data.
Optionally, before the step 101, the method further includes:
and judging the legality of the domain name, dividing the domain name into a plurality of parts by taking the target symbol as a separator, wherein the last part is a top-level domain name which accords with the domain name rule, the other parts do not contain non-letters, numbers and hyphens, performing an analysis step if the specification, the style and the domain name rule of the domain name accord with each other, and returning a prompt to wait for a next domain name analysis instruction if the specification, the style and the domain name rule do not accord with each other.
It should be noted that the top-level domain name is composed of two or more groups of ASCII or language characters of each country, each group of characters are separated by dot numbers, the rightmost character group is called the top-level domain name or the first-level domain name, the penultimate group is called the second-level domain name, the penultimate group is called the third-level domain name, and so on, and there are commonly ". Com", ". Org", ". Net", ". Cn", and so on. Target symbols include, but are not limited to, ":", "/", etc., and the domain name entered must be legal for domain name resolution work, otherwise a prompt is returned until the domain name entered is legal.
According to the method and the device, the domain name input by the user can be determined to be correct and accord with the domain name rule by judging the validity of the domain name, so that the system can correctly perform subsequent domain name resolution work without generating operation errors.
Optionally, referring to fig. 5, a system architecture diagram of a domain name resolution system of the embodiment of the present application is shown, where the system includes:
s1, installing domain name resolution tools A, B and C and an agent service program on the same video network terminal;
and S2, the domain name resolution tools A, B and C respectively judge whether to access the network according to the MAC, the agent service program receives the MAC to judge whether to access the network, if the network is accessed, the corresponding video network number of the video network terminal is returned, if the network is not accessed, the network access is applied, and the corresponding video network number is returned after the network access is successful.
And S3, after the domain name resolution tools A, B and C acquire successful video networking numbers, applying for connection with a domain name server, generating connection numbers A1, B1 and C1 corresponding to the domain name resolution tools A, B and C respectively after the connection is successful, and maintaining the connection numbers A1, B1 and C1 by the agency service program.
And S4, the domain name resolution tool sends a domain name, the agent program packages data according to the connection numbers A1, B1 and C1 to generate a data package packet, and a core server transmits the data to the domain name server, wherein the core server is used as an intermediate server.
And S5, the domain name server receives the data encapsulation packet and performs domain name resolution, domain name resolution data are replied to the core server, and the core server further transmits the domain name resolution data to the terminal.
And S6, the proxy service program correspondingly distributes the domain name resolution data to the domain name resolution tools A, B and C according to the connection numbers A1, B1 and C1.
And S7, the domain name resolution tools A, B and C respectively perform resolution to obtain the video network number corresponding to the domain name, and the domain name resolution work is completed.
Optionally, the method comprises:
and the domain name resolution tool formats the domain name and processes the domain name into the same specification and style.
It should be noted that, the specific operations of formatting the domain name are as follows: the input domain name is www.yuming.com, and the input domain name is formatted into 3w5yuming3com, so that the unified format and the unified data type are achieved, the data processing process is more convenient, and the processing error caused by the non-unified data format is avoided.
Optionally, referring to fig. 6, the domain name resolution method includes a client, a domain name server, and a core server; wherein, a core server is adopted as an intermediate server;
the client is installed on the video network terminal and has the functions of domain name validity check, domain name format conversion and data receiving and sending modules.
Specifically, the domain name legitimacy takes the target symbol as a separator to divide the domain name into a plurality of parts, the last part is a legal top-level domain name, other parts cannot contain non-letters, numbers and hyphens, if the last part is legal, the resolution step is carried out, and if the last part is illegal, a prompt is returned to wait for the next domain name resolution instruction.
Specifically, the data receiving and sending module may receive data content from a server side intermediate to the server side and the core server side, or may send data content to the server side and the core server side.
The video network domain name server is installed on server side equipment, and the server side comprises a data receiving and sending module, a domain name analyzing module and a domain name maintaining module and functions.
Specifically, the data receiving and sending module may receive data content from the client and the core server, or may send data content to the server and the core server.
Specifically, the domain name resolution module may determine the target internet of view number corresponding to the domain name to be resolved according to a pre-stored correspondence between the domain name and the internet of view number.
Specifically, the domain name maintenance module may manage and maintain the domain name.
The video network core server is installed on core server side equipment, and the core server side comprises a service transparent transmission and data validity check module and functions.
Specifically, the service transparent transmission module may perform transparent transmission on the data to ensure integrity and stability of the data content.
Specifically, the data validity check module may determine integrity and validity of data content between the receiving side and the sending side, and reject passing if an error occurs, such as packet loss.
Fig. 7 schematically shows a structural schematic diagram of a domain name resolution apparatus 30 provided in the present application, which is applied to a terminal device, where the terminal device establishes a dedicated communication link with a domain name server, and the apparatus includes:
a receiving module 301, configured to receive each domain name resolution instruction input by each domain name resolution tool;
responding to the domain name resolution instruction, and acquiring a domain name carried by the domain name resolution instruction from the domain name resolution tool;
a sending module 302, configured to send the domain name and the connection number corresponding to the domain name resolution tool to the domain name server, and obtain domain name resolution data from the domain name server; the connection number is generated when the domain name resolution tool is connected with a domain name server;
and sending the domain name resolution data to the corresponding target domain name resolution tool so that the target domain name resolution tool acquires the target equipment connection number corresponding to the target domain name from the domain name resolution data.
Optionally, the receiving module 301 is further configured to:
receiving an equipment address sent by a domain name resolution tool after the domain name resolution tool is started, and sending the equipment address to an intermediate server; the device address is a device address corresponding to terminal equipment deployed by the domain name resolution tool;
receiving a terminal number corresponding to the equipment address sent by the intermediate server, wherein the terminal number is sent by the intermediate server after the intermediate server confirms that the equipment address is accessed to the network;
and establishing the connection between the domain name resolution tool and the domain name server based on the terminal number to obtain a connection number corresponding to the domain name resolution tool.
Optionally, the sending module 302 is further configured to:
and when the intermediate server returns a notification message that the terminal number is not accessed to the network, sending a network access request corresponding to the terminal number to the intermediate server.
Optionally, the sending module 302 is further configured to:
performing data encapsulation on the domain name and the connection number to generate a data encapsulation packet;
and sending the data encapsulation packet to the domain name server by using the communication link so as to acquire domain name resolution data from the domain name server.
Optionally, the sending module 302 is further configured to:
transmitting the data encapsulation packet to the domain name server through an intermediate server;
the receiving module 301 is further configured to:
and receiving the domain name resolution data replied by the domain name server transmitted by the intermediate server.
Optionally, the sending module 302 is further configured to:
the domain name resolution tool judges the legality of the domain name, takes a target symbol as a separator, divides the domain name into a plurality of parts, the last part is a top-level domain name which accords with domain name rules, other parts do not contain non-letters, numbers and hyphens, if the domain name specification and the style accord with the domain name rules, the resolution step is carried out, and if the domain name specification and the style do not accord with the domain name rules, a prompt is returned to wait for a next domain name resolution instruction.
Optionally, the sending module 302 is further configured to:
and the domain name resolution tool formats the domain name and processes the domain name into the same specification and style.
According to the embodiment of the application, the connection number is generated and recorded when the domain name resolution tool in the terminal equipment is connected with the domain name server, so that when data interaction is carried out between the domain name resolution tool and the domain name resolution server to carry out domain name resolution, the connection number is used for identifying the domain name resolution tool to which the transmitted data belongs to realize the support of the terminal equipment on various domain name resolution tools, and the flexibility of the terminal equipment in domain name resolution is improved.
The above-described device embodiments are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless otherwise indicated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Moreover, it is noted that instances of the word "in one embodiment" are not necessarily all referring to the same embodiment.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present application.
Claims (10)
1. A domain name resolution method is characterized in that the domain name resolution method is applied to terminal equipment, and a special communication link is established between the terminal equipment and a domain name server; the method comprises the following steps:
receiving each domain name resolution instruction input by the domain name resolution tool;
responding to the domain name resolution instruction, and acquiring a domain name carried by the domain name resolution instruction from the domain name resolution tool;
sending the domain name and a connection number corresponding to the domain name resolution tool to the domain name server, and acquiring domain name resolution data from the domain name server; the connection number is generated when the domain name resolution tool establishes connection with a domain name server;
and inquiring a target connection number carried by the domain name resolution data, and sending the domain name resolution data to the corresponding target domain name resolution tool so that the target domain name resolution tool acquires a target equipment connection number corresponding to the target domain name from the domain name resolution data.
2. The method according to claim 1, wherein the connection number is obtained by:
receiving an equipment address sent by a domain name resolution tool after the domain name resolution tool is started, and sending the equipment address to an intermediate server; the device address is a device address corresponding to terminal equipment deployed by the domain name resolution tool;
receiving a terminal number corresponding to the equipment address sent by the intermediate server, wherein the terminal number is sent by the intermediate server after the intermediate server confirms that the equipment address is accessed to the network;
and establishing the connection between the domain name resolution tool and the domain name server based on the terminal number to obtain a connection number corresponding to the domain name resolution tool.
3. The method according to claim 2, wherein before said receiving the terminal number corresponding to the device address sent by the intermediate server, the method further comprises:
and when the intermediate server returns a notification message that the terminal number is not accessed to the network, sending a network access request corresponding to the terminal number to the intermediate server.
4. The method according to claim 1, wherein the sending the domain name and the connection number corresponding to the domain name resolution tool to the domain name server using the communication link comprises:
performing data encapsulation on the domain name and the connection number to generate a data encapsulation packet;
and sending the data encapsulation packet to the domain name server by using the communication link so as to acquire domain name resolution data from the domain name server.
5. The method of claim 4, wherein sending the data encapsulation packet to the domain name server using the communication link to obtain domain name resolution data from the domain name server comprises:
transmitting the data encapsulation packet to the domain name server through an intermediate server;
and receiving the domain name resolution data replied by the domain name server transmitted through the intermediate server.
6. The method of claim 1, wherein the step of receiving each domain name resolution command input for the domain name resolution tool is preceded by the step of:
judging the validity of the domain name, taking a target symbol as a separator, performing an analysis step if the specification and style of the domain name are in accordance with the domain name rule, and returning a prompt to wait for the next domain name analysis instruction if the specification and style of the domain name are not in accordance with the domain name rule; the last part of the plurality of parts contained in the domain name rule is the top-level domain name which accords with the domain name rule, and other parts do not contain non-letters, numbers and hyphens.
7. The domain name resolution method according to claim 1, further comprising:
and the domain name resolution tool formats the domain name and processes the domain name into the same specification and style.
8. A domain name resolution device is characterized in that the domain name resolution device is applied to terminal equipment, and a special communication link is established between the terminal equipment and a domain name server; the device comprises:
the receiving module is used for receiving each domain name resolution instruction input by each domain name resolution tool;
responding to the domain name resolution instruction, and acquiring a domain name carried by the domain name resolution instruction from the domain name resolution tool;
the sending module is used for sending the domain name and the connection number corresponding to the domain name resolution tool to the domain name server and acquiring domain name resolution data from the domain name server; the connection number is generated when the domain name resolution tool is connected with a domain name server;
and sending the domain name resolution data to a corresponding target domain name resolution tool so that the target domain name resolution tool acquires a target device connection number corresponding to the target domain name from the domain name resolution data.
9. An electronic device, comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to execute the domain name resolution method according to any one of claims 1 to 7 according to the computer program.
10. A computer-readable storage medium for storing a computer program for executing the domain name resolution method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211218879.8A CN115567485A (en) | 2022-09-30 | 2022-09-30 | Domain name resolution method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211218879.8A CN115567485A (en) | 2022-09-30 | 2022-09-30 | Domain name resolution method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115567485A true CN115567485A (en) | 2023-01-03 |
Family
ID=84745629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211218879.8A Pending CN115567485A (en) | 2022-09-30 | 2022-09-30 | Domain name resolution method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115567485A (en) |
-
2022
- 2022-09-30 CN CN202211218879.8A patent/CN115567485A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102158482B (en) | JSON (JavaScript Object Notation) data protocol based passenger transport information communication method and system | |
CN110602056B (en) | Service parameter transmission method and device | |
CN110830442A (en) | Message processing method, device and gateway | |
CN102104883A (en) | Method and system for defining information in machine-to-machine (M2M) platform and M2M platform | |
CN113360301B (en) | Message transmission system and method | |
CN103023541A (en) | Near field communication reader device, near field communication tag device and near field communication system | |
CN110830466B (en) | Method and device for framing DL/T645 protocol message based on XML | |
CN114338527B (en) | IPv6 active identifier processing method and system | |
CN113163028B (en) | Service data transmission method, device and system | |
CN114710560A (en) | Data processing method and system, proxy equipment and terminal equipment | |
CN101902458B (en) | Interprocess communication method across host machine, device thereof and system thereof | |
CN111953931B (en) | Data sharing method, device and storage medium | |
CN103313245B (en) | Based on the Network access method of mobile phone terminal, equipment and system | |
CN112422485B (en) | Communication method and device of transmission control protocol | |
CN116719868A (en) | Network asset identification method, device and equipment | |
CN115567485A (en) | Domain name resolution method and device, electronic equipment and storage medium | |
CN111064729A (en) | Message processing method and device, storage medium and electronic device | |
CN105052207B (en) | Information query method, equipment and system | |
CN114070824B (en) | Registration method of Internet of things equipment, registration cloud server and medium | |
CN107078941A (en) | For at least one IP packet to be transferred to the method for IP address, the correlation technique for parsing host name, related process module, mobile device, hostname resolution server and computer program product | |
CN105635225A (en) | Method and system of using mobile terminal to access mobile internet-based server and mobile terminal | |
CN110636114B (en) | Customer service access method, access system, service system and cloud platform | |
US20130007196A1 (en) | Connectionless Operation in a Wireless Network | |
CN113238982A (en) | Data communication method, device, computer equipment and storage medium | |
US11804986B2 (en) | Method for the remote management of a device connected to a residential gateway |
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 |