denominator icon indicating copy to clipboard operation
denominator copied to clipboard

allow zone format syntax in CLI

Open codefromthecrypt opened this issue 11 years ago • 2 comments

This is both for recordset as well bulk operations:

Tasks:

  • [ ] add record using zone format. ex. denominator record -z foo.com add hostname.foo.com 3600 IN A 1.2.3.4
  • [ ] bulk add record using zone format. ex. denominator record -z foo.com add --file cnames.txt

codefromthecrypt avatar Mar 08 '13 23:03 codefromthecrypt

+1

jdamick avatar Aug 13 '13 19:08 jdamick

Here's a redacted real-world bind zone file denominator should be able to parse:

$TTL 1m
example.com.    IN SOA ns.example.com. whois.example.com. (
                        2009032363      ; serial, todays date + todays serial #
                        2h              ; refresh
                        1h              ; retry
                        30d             ; expire
                        1h )            ; minimum

example.com.  IN  NS    ns.example.com.
example.com.  IN  NS    ns2.example.com.

localhost         IN  A     X.X.X.X
example.com.  IN  A     X.X.X.X
example.com.  IN  MX 10 mx.example.com.
seven.example.com.  IN  MX 10 seven.example.com.
one.example.com.  IN  MX 10 one.example.com.
example.com.  IN  TXT "v=spf1 a mx a:seven.example.com a:three.example.com a:four.example.com a:five.example.com include:gmail.com ~all"
;one.example.com.     IN  A  X.X.X.X
;two.example.com.     IN  A  X.X.X.X
three.example.com.     IN  A  X.X.X.X
four.example.com.   IN  A  X.X.X.X
five.example.com.  IN  A  X.X.X.X
six.example.com.   IN  A  X.X.X.X
seven.example.com.    IN  A  X.X.X.X
control.example.com.        IN  CNAME  control.three.example.com.
trac.one.example.com.       IN  CNAME  trac.seven.example.com.
*.dev.example.com.          IN  CNAME  seven.example.com.
chess.example.com.          IN  CNAME  four.example.com.
haywire.example.com. IN CNAME webmail.example.com. ; Inline comment
; CDN domains
cdn.www.example.com.        IN  CNAME  abc.def.ghi-cdn.com.
cdn.one.example.com.        IN  CNAME  one.def.ghi-cdn.com.
cdn.seven.example.com.       IN  CNAME  one.def.ghi-cdn.com.
ten.cdn.example.com.      IN  CNAME  ten.def.ghi-cdn.com.

strangecode avatar Aug 13 '13 20:08 strangecode