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

Active Publication Date: 2018-01-19
山东中网云安智能科技有限公司
View PDF7 Cites 7 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 a

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
  • Domain name redirection method and system
  • Domain name redirection method and system
  • Domain name redirection method and system

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 comprises the following steps: S10, obtaining an internet protocol address; S20: analyzing a data packet in a link layerand intercepting a specified domain name request; and S30: redirecting the specified domain name request to the internet protocol address. By adoption of the domain name redirection method and system, the user only needs to remember the domain name and can directly access the network by the domain name, so that the method is more friendly; and in addition, the interception range of the DNS request data packets is expanded, identical interception and redirection are performed on the DNS requests not passing the IP layer, thereby ensuring the integrity of the data and ensuring the comprehensiveness of device management, for the service providers, some network devices that cannot be managed by accessing the fixed IP addresses can be managed by the method by accessing the fixed IP addresses,and thus the 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
IPC IPC(8): H04L29/12
CPCH04L61/00
Inventor 赵冲
Owner 山东中网云安智能科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products