Domain name redirection method and system
A technology of redirection and domain name, applied in the Internet field, can solve the problems of DNS request packet interception, network equipment management blind spots, etc., to achieve the effect of easy to remember and convenient and smooth Internet experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] Such as figure 1 As shown, this embodiment provides a domain name redirection method, the method includes the following steps:
[0057] S10: Obtain an Internet Protocol address (IP address);
[0058] In this step, the router or Repeater first finds the IP address used by the device to connect to the network, and saves the IP address information field, such as 192.168.18.25. Then trigger the start of the next step to start link layer packet parsing. Since most of the existing IP addresses are dynamic IPs assigned by the server, rather than fixed IPs, in this step, the IP address is obtained first, and then the process of parsing data packets in the link layer is started, which can reduce unnecessary data parsing and save network resources , Purify the network connection process.
[0059] S20: analyze the data packet in the link layer, and intercept the specified domain name (DNS) request;
[0060] In this step, after the router or Repeater obtains the IP address, it ...
Embodiment 2
[0065] Such as figure 2 As shown, the difference between this embodiment and the previous embodiments is that this embodiment provides a more detailed domain name redirection method, and the step S20 specifically includes:
[0066] S21: Analyzing the data packet in the link layer, and judging whether the data packet is a DNS packet;
[0067] In this step, after the router or Repeater etc. obtain the IP address, first analyze all packets received in the link layer one by one, find out the DNS packet, and judge whether it is a DNS packet by monitoring the packet usually. Whether it comes from port 53 of the UPD protocol.
[0068] S22: If it is a DNS packet, continue to parse the DNS packet to obtain DNS;
[0069] In this step, if it is judged that the data packet is indeed from port 53 of the UPD protocol, then continue to analyze the data packet of the message to obtain the DNS in the message.
[0070] S23: Determine whether the DNS is a designated DNS, and if so, execute s...
Embodiment 3
[0082] Such as image 3 As shown, the difference between this embodiment and Embodiment 2 is that this embodiment provides a detailed method for implementing domain name redirection in the Linux kernel. Taking Repeater as an example, in this embodiment, if and only if the Repeater obtains the domain name under the current network connection After obtaining the IP address, the Repeater loads the DNS interception process through the Insmod tool, that is, starts the corresponding processes of steps S20 and S30 to realize DNS redirection.
[0083] In the program writing process, write the corresponding process mentioned in steps S20 and S30 into the same dns_redirect.ko kernel module, if and only if the Repeater obtains the IP address (redirect_ip) under the current network connection, use the Insmod tool to dns_redirect. The ko kernel module is loaded into the Linux kernel, and finally realizes the redirection of the specified DNS. It is not difficult to understand that DNS and ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com