~shulhan/pakakeh.go#1: 
lib/dns: zone parser failed if line start with spaces

Given the following zone file,

@ A 127.0.0.1
  x  A 127.0.0.1 ; this line will 

The zone parser will fail with the following error:

ParseZone: parse: parseRR: line 2: unknown class or type
Status
RESOLVED CLOSED
Submitter
~shulhan
Assigned to
No-one
Submitted
5 months ago
Updated
3 months ago
Labels
No labels applied.

~shulhan REPORTED CLOSED 3 months ago

~shulhan CLOSED REPORTED 3 months ago

~shulhan REPORTED CLOSED 3 months ago

Marking this as invalid because a space before RR has a meaning as describe by RFC 1035 section "5.1. Format" paragraph 4,

The last two forms represent RRs. If an entry for an RR begins with a blank, then the RR is assumed to be owned by the last stated owner. If an RR entry begins with a , then the owner name is reset.

Register here or Log in to comment, or comment via email.