Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for domain name redirection

A redirection and domain name technology, 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, convenient and smooth Internet experience, and reduce the total amount of resolution tasks

Active Publication Date: 2021-11-12
山东中网云安智能科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] However, some network devices on the market will not actively send DNS requests to the IP layer of the network device network protocol stack after receiving the DNS request from the client. Using the above two implementations, it is impossible to support the DNS requests that do not go through the IP layer. DNS request data packets are intercepted, which makes the management of network devices appear blind

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for domain name redirection
  • Method and system for domain name redirection
  • Method and system for domain name redirection

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a domain name redirection method and system. The method includes the following steps: S10: obtain the Internet protocol address; S20: analyze the data packet in the link layer, and intercept the specified domain name request; S30: redirect the Specifies domain name requests to the IP address. The invention enables the user to directly access the network through the domain name only by remembering the domain name, and the method is more friendly; in addition, the invention expands the interception range of the DNS request data packet, and can perform the same interception and Redirection ensures the integrity of data and the comprehensiveness of device management. For service providers, some network devices that cannot be managed by accessing fixed IP addresses can be managed by accessing fixed DNS by using the above method, so that Network management is more convenient and more standardized.

Description

technical field [0001] The invention relates to the Internet field, in particular to a domain name redirection method and system. Background technique [0002] DNS (Domain Name System, Domain Name System) is a system that converts access domain name addresses into corresponding IP addresses (Internet Protocol Address, Internet Protocol Address, also known as Internet Protocol Address). A distributed database mapped to provide domain name to IP address conversion, enabling users to access the Internet more conveniently without having to remember the IP number string that can be directly read by the machine. Usually the URL we input is a domain name. The process of finally obtaining the IP address corresponding to the host name through the host name is called domain name resolution (or host name resolution), and DNS is a system dedicated to completing domain name resolution. The DNS protocol runs on top of the UDP protocol, using port number 53. [0003] At present, in the d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/12
CPCH04L61/00
Inventor 赵冲
Owner 山东中网云安智能科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products