# US 2014/0208423 A1 · Method and device for preventing domain name system spoofing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0208423 A1
- Document ID: US20140208423A1
- Status: Published application
- Kind: A1
- Application number: 14/225,080
- Filed: 2014-03-25
- Published: 2014-07-24
- Earliest claimed: 2008-12-01
- Assignees: Chengdu Huawei Symantec Technologies Co., Ltd.
- Applicants: Chengdu Huawei Symantec Technologies Co., Ltd.
- Inventors: Shaobu MA
- Web page: https://patentgrep.com/patent/US20140208423A1

## CPC

- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- H04L 61/4511: using domain name system [DNS]
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/1458: {Denial of Service}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for preventing Domain Name System (DNS) spoofing includes: performing uppercase/lowercase conversion for letters of a DNS question field in a DNS request packet according to a preset rule; sending the DNS request packet; receiving a DNS response packet; obtaining uppercase/lowercase distribution of the letters of the DNS question field in the DNS response packet; and forwarding the DNS response packet to a target DNS client if the uppercase/lowercase distribution of the letters of the DNS question field in the DNS response packet complies with the preset rule. Corresponding to the method, a device for preventing DNS spoofing is disclosed. The method and device reduce occupation of storage resources of the device.

## Claims

### Claim 1

A method for preventing Domain Name System (DNS) spoofing, comprising:
performing uppercase/lowercase conversion for a portion of first letters in a DNS inquiry field of a DNS request packet according to a preset rule;
sending the DNS request packet to a DNS server;
receiving a DNS response packet in response to the DNS request packet;
obtaining uppercase/lowercase distribution of second letters in a DNS inquiry field of the DNS response packet;
determining that the uppercase/lowercase distribution of the second letters in the DNS inquiry field of the DNS response packet complies with the preset rule; and
based upon the determination, forwarding the DNS response packet to a target DNS client.

### Claim 2 (depends on 1)

The method for preventing DNS spoofing according to claim 1, wherein: before performing the uppercase/lowercase conversion for the portion of the first letters in the DNS inquiry field of the DNS request packet according to the preset rule, the method further comprises:
receiving the DNS request packet sent by the target DNS client.

### Claim 3 (depends on 1)

The method for preventing DNS spoofing according to claim 1, wherein the preset rule is that at least one upper case letter and at least one lower case letter are included.

### Claim 4 (depends on 1)

The method for preventing DNS spoofing according to claim 1, wherein the preset rule is that the uppercase/lowercase distribution pattern matches with 1/0 distribution pattern of binary digitals of a numerical value.

### Claim 5

A computer readable storage medium storing instructions, which when executed by a computer, cause the computer to perform a method comprising:
performing uppercase/lowercase conversion for a portion of first letters in a DNS inquiry field of a DNS request packet according to a preset rule;
sending the DNS request packet to a DNS server;
receiving a DNS response packet in response to the DNS request packet;
obtaining uppercase/lowercase distribution of second letters in a DNS inquiry field of the DNS response packet;
determining that the uppercase/lowercase distribution of the second letters in the DNS inquiry field of the DNS response packet complies with the preset rule; and
based upon the determination, forwarding the DNS response packet to a target DNS client.

### Claim 6 (depends on 5)

The computer readable storage medium according to claim 5, wherein the preset rule is that at least one upper case letter and at least one lower case letter are included.

### Claim 7 (depends on 5)

The computer readable storage medium according to claim 5, wherein the preset rule is that the uppercase/lowercase distribution pattern matches with 1/0 distribution pattern of binary digitals of a numerical value.
