Questions tagged [rfc1035]

RFC 1035, issued by the IETF, describes the workings of the Domain Name System and Protocol.

The Domain Name System (DNS) specified by RFC 1035 is used to translate domain names (which are easy to remember) to IP addresses (which are not).

Helpful Links:

14 questions
54
votes
1 answer

What is the maximum length of a DNS name

I saw several mentions that the maximum string length of a DNS name (domain name) is 253 characters. Wikipedia seems to be referring this old blog…
Nicolas Bouvrette
  • 4,295
  • 1
  • 39
  • 53
16
votes
3 answers

What does QD stand for in DNS RFC1035

I was just curious about the nomenclature of certain variables part of DNS's RFC: https://www.ietf.org/rfc/rfc1035.txt While I was able to find most other acronyms : AN in ANCOUNT seems stands for Answer NS in NSCOUNT stands for Name Server AR in…
Nicolas Bouvrette
  • 4,295
  • 1
  • 39
  • 53
9
votes
2 answers

How can I validate that a domain name conforms to RFC 1035 using Python?

I'm trying to write some code that will take in a "supposed" domain name and will validate it according to RFC 1035. For instance, it would need to satisfy these rules: Domain consists of no more than 253 total characters Domain character set is…
gleb1783
  • 451
  • 1
  • 6
  • 18
4
votes
1 answer

CNAME Record in Additional section

RFC 1034+1035 state the CNAME records should cause no additional section processing. But I am seeing an increasing trend of services like wordpress sending a CNAME chain with one part of the chain in the additional section. So, without parsing the…
creatiwit
  • 221
  • 2
  • 11
2
votes
1 answer

Check Domain Names According to RFC 1035 Standard in Java

I am trying to write code to check domain names are valid according to rfc 1035 standard or not. RFC 1035(https://www.rfc-editor.org/rfc/rfc1035) standard has following criteria for domain names: ::= | " " ::=…
rishi007bansod
  • 1,283
  • 2
  • 19
  • 45
2
votes
1 answer

Writing more than 255 characters of data in a TXT or SPF record

While hand-writing DNS messages from scratch, I am able to send out TXT records upto 255 chars with this pseudo C code: char use_this[1024]; memset(use_this, 0, 1024); use_this[0] = len; for (int i = 0; i < len; i++){ use_this[i + 1] =…
struggling_learner
  • 1,214
  • 15
  • 29
1
vote
1 answer

In what cases can a DNS master file contain a CRLF?

While reading RFC 1035 Section 5.1 in order to write a master file parser, I stumbled across the following statement: 5.1. Format The format of these files is a sequence of entries. Entries are predominantly line-oriented, though parentheses can…
1
vote
1 answer

Do DNS messages pad names to an even number of bytes?

Preliminary note Yes, I am aware of the existence of DNS libraries and easy-to-use DNS servers. I am doing this purely for academic purposes, and to get a grasp of how DNS queries work. The question I was looking at RFC 1035 to get an idea of how…
Matteo Monti
  • 8,362
  • 19
  • 68
  • 114
1
vote
2 answers

Testing a DNS server

I'm implementing a DNS server and I wonder if there's any tool, preferably online, that I can use to test that I've implemented various features right. A tool that I could use to make various requests to the DNS server and test that it follows the…
Dude Dawg Homie
  • 179
  • 1
  • 4
1
vote
1 answer

how can i decipher dns messages?

i'm writing a program to receive dns messages and respond an appropriate answer(a simple dns server that only reply A records). but when i receive messages it's not like the described format in 1035 RFC. for example this is a dns query generated by…
sia
  • 401
  • 3
  • 8
  • 20
0
votes
1 answer

Parsing Verisign COM Zone File with DNSJava

I'm attempting to read the Verisign COM master zone file using the Master parser in DNSJava. Here is an example input: ; The use of the Data contained in Verisign Inc.'s aggregated ; .com, and .net top-level domain zone files (including the…
Adam
  • 4,590
  • 10
  • 51
  • 84
0
votes
1 answer

RFC 1035 Header Structure

I'm studying about dns and would like to understand about this information, because I could not fully understand. The header contains the following fields: 1 1 1 1 1 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 …
J. A
  • 1
  • 1
  • 1
0
votes
1 answer

Why 63 bytes of limit on dns label imposed?

The DNS rfc 1035 imposes a limit of 63 byte on each of DNS label as well as the total length of DNS name should not exceed 255 bytes. Why 63 bytes of limit on dns label imposed? How can system support the unlimited label length? Thanks.
AnilJ
  • 1,951
  • 2
  • 33
  • 60
0
votes
1 answer

Add length prefix to DNS request using TCP and Scapy

In the RFC 1035 about DNS, it's written : 4.2.2. TCP usage Messages sent over TCP connections use server port 53 (decimal). The message is prefixed with a two byte length field which gives the message length, excluding the two byte length…
Comtention
  • 123
  • 3
  • 9