4 ms·
Dig is great and DNS is hella underrated. It seems like not nearly enough folks know how to wield it. At both $lastco and $thisco people just used a mess of con
by kortex 5y ago
Dig is great and DNS is hella underrated. It seems like not nearly enough folks know how to wield it. At both $lastco and $thisco people just used a mess of configuration to point to service IPs/URIs. I showed them how to set private zones and records for both A and SRV and suddenly everything is just using sane defaults.
Side note: does anyone know why dig's output is so...eye-bleeding? Why does it show so much info by default? +short should be the default. Why the ;; "comment" prefix?
- kalev 5y agoA blog post of what you describe would be greatly appreciated, i’ll probably learn a thing or two from it.
- kortex 5y agoGreat idea, I'll take a stab at it!
- jvolkman 5y agoI always assumed its output was supposed to resemble a zone file.
- kortex 5y agoAhhh yup, that makes perfect sense given how zone files are formatted. But that moves the question. Why do zone files use ; as comment? Some old assembly dialect? I've not worked much with assembly but it's always been # or //
- fanf2 5y agoThe original DNS implementation (called JEEVES) was written by Paul Mockapetris to run on the PDP-10, which is why the zone file syntax is not very unixy. The ; comments are one example: and backslash escapes are decimal rather than octal, line continuation uses () instead of escaping.
- throw0101a 5y agoStraight from the source: > @jpmens @bortzmeyer @PowerDNS_Bert @kolkman The ";" was the comment delimiter in the TOPS-20 word, hash was dragged in by the UNIX types * https://twitter.com/svnr2000/status/659062798681546752 https://twitter.com/svnr2000/status/659062798681546752 See also RFC 883, "Domain Names - Implementation and Specification": > ; Semicolon is used to start a comment; the remainder of the line is ignored. * https://datatracker.ietf.org/doc/html/rfc883 https://datatracker.ietf.org/doc/html/rfc883 Via: * https://jpmens.net/2015/10/28/the-semicolon-in-zone-master-files-some-history/ https://jpmens.net/2015/10/28/the-semicolon-in-zone-master-f...
- jvolkman 5y agoMaybe the original creator was an Emacs fan? Lisp also uses semicolons for comments.
- detaro 5y ago; is quite common in assembly as the comment marker. And zone files are old, so the // or # were not as standard as they are today.
- throw0101a 5y ago> @jpmens @svnr2000 ; was chosen as a comment in zone files because that's what the PDP10 and other macro assemblers used in those days. * https://twitter.com/paulvixie/status/659934566883328000 https://twitter.com/paulvixie/status/659934566883328000 Via: * https://jpmens.net/2015/10/28/the-semicolon-in-zone-master-files-some-history/ https://jpmens.net/2015/10/28/the-semicolon-in-zone-master-f...