# US 2025/0158958 A1 · Handling raw dns queries in dns client

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

- Number: US 2025/0158958 A1
- Document ID: US20250158958A1
- Status: Published application
- Kind: A1
- Application number: 18/589,137
- Filed: 2024-02-27
- Published: 2025-05-15
- Earliest claimed: 2023-11-10
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Aditi Pravin PATANGE; Milan Crowley JUSTEL; Alexandru JERCAIANU; Matthew Raymond COX; Ivan Dimitrov PASHOV
- Web page: https://patentgrep.com/patent/US20250158958A1

## CPC

- H04L 61/4511: using domain name system [DNS]
- H04L 61/58: Caching of addresses or names
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods and apparatuses for handling raw DNS queries or DNS queries that generate responsive DNS records from a DNS server that are not recognized or decodable by a DNS client are described. The DNS client may receive a DNS query from an application and provide a numerical IP address and one or more DNS records for a given domain name to the application. In some cases, a DNS client provides an interface that enables the application to send and receive DNS queries and responses to DNS queries that use DNS functionalities and customizations that are not recognized by the DNS client. This capability allows the application to craft its own DNS queries to send and receive resulting response bytes or packets through the DNS client, while allowing the DNS queries to pass through the DNS client to make use of host system cache, policies, and settings.

## Claims

### Claim 1

A system for handling DNS requests, comprising:
a storage device for storing instructions that, when executed, cause the system to perform operations comprising:
receiving a DNS request from an application;
acquiring an IP address for the DNS request;
acquiring a first set of DNS records associated with the DNS request;
detecting that a first DNS record of the first set of DNS records is unrecognized by a DNS client;
generating a second set of DNS records different from the first set of DNS records using priority information for the second set of DNS records, the second set of DNS records includes the first DNS record; and
transmitting the second set of DNS records and the IP address to the application.

### Claim 2 (depends on 1)

The system of claim 1, wherein:
the acquiring the first set of DNS records includes acquiring the first set of DNS records from a DNS server; and
the detecting that the first DNS record is unrecognized by the DNS client includes detecting that the first DNS record is not decodable by the DNS client.

### Claim 3 (depends on 1)

The system of claim 1, wherein:
the acquiring the first set of DNS records includes acquiring the first set of DNS records at the DNS client, the first DNS record includes a raw packet.

### Claim 4 (depends on 1)

The system of claim 1, wherein
the generating the second set of DNS records includes generating the second set of DNS records based on an application identifier for the application.

### Claim 5 (depends on 1)

The system of claim 1, further comprising instructions that, when executed, cause the system to perform operations comprising:
applying one or more system policies to the second set of DNS records prior to transmitting the second set of DNS records to the application.

### Claim 6 (depends on 1)

The system of claim 1, wherein:
the generating the second set of DNS records includes generating the second set of DNS records using a machine learning model.

### Claim 7 (depends on 1)

The system of claim 1, wherein:
the generating the second set of DNS records includes generating the second set of DNS records based on a threshold data size for the second set of DNS records.

### Claim 8 (depends on 1)

The system of claim 1, wherein:
the priority information includes a first priority ranking for the first DNS record and a second priority ranking for a second DNS record of the second set of DNS records, the first priority ranking is greater than the second priority ranking.

### Claim 9 (depends on 1)

The system of claim 1, wherein:
the first set of DNS records includes a canonical name record.

### Claim 10 (depends on 8)

The system of claim 8, wherein:
the number of records comprising the second set of DNS records is less than the number of records comprising the first set of DNS records.

### Claim 11

A method for handling DNS requests, comprising:
receiving a DNS request from an application;
determining a ranking of priority for a second set of DNS records;
acquiring an IP address for the DNS request from a DNS server;
acquiring a first set of DNS records associated with the DNS request from the DNS server;
detecting that a first DNS record of the first set of DNS records is unrecognized by a DNS client, the first DNS record includes a raw packet;
generating the second set of DNS records from the first set of DNS records using the ranking of priority for the second set of DNS records; and
transmitting the second set of DNS records and the IP address to the application.

### Claim 12 (depends on 11)

The method of claim 11, wherein:
the detecting that the first DNS record is unrecognized by the DNS client includes detecting that the first DNS record is not decodable by the DNS client.

### Claim 13 (depends on 11)

The method of claim 11, wherein:
the acquiring the first set of DNS records associated with the DNS request includes acquiring the first set of DNS records at the DNS client; and
the generating the second set of DNS records includes generating the second set of DNS records using a machine learning model.

### Claim 14 (depends on 11)

The method of claim 11, wherein:
the generating the second set of DNS records includes generating the second set of DNS records based on an application identifier for the application.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
applying one or more system policies to the first set of DNS records prior to transmitting the second set of DNS records and the IP address to the application.

### Claim 16 (depends on 11)

The method of claim 11, wherein:
the second set of DNS records includes the first DNS record; and
the number of records comprising the second set of DNS records is less than the number of records comprising the first set of DNS records.

### Claim 17 (depends on 11)

The method of claim 11, wherein:
the generating the second set of DNS records includes generating the second set of DNS records based on a threshold data size for the second set of DNS records.

### Claim 18 (depends on 11)

The method of claim 11, further comprising:
determining a maximum number of DNS records to be transferred to the application, a number of DNS records comprising the second set of DNS records does not exceed the maximum number of DNS records.

### Claim 19 (depends on 17)

The method of claim 17, wherein:
the raw packet comprises a wire representation of the first DNS record; and
the threshold data size for the second set of DNS records is set based on an application identifier for the application.

### Claim 20

A system for handling DNS requests, comprising:
a storage device configured to store records priority information for a second set of DNS records; and
a processing system in communication with the storage device that is configured to:
receive a DNS request from an application;
acquire an IP address for the DNS request from a DNS server;
acquire a first set of DNS records associated with the DNS request from the DNS server;
detect that a first DNS record of the first set of DNS records comprises a DNS record that is not decodable by the system;
identify a raw packet associated with the first DNS record;
determine a threshold data size for the second set of DNS records based on an application identifier for the application;
generate the second set of DNS records from the first set of DNS records using the records priority information for the second set of DNS records and the threshold data size for the second set of DNS records; and
transmit the raw packet, the second set of DNS records, and the IP address to the application.
