May 15 2012

Bind zone files

Posted by Vitalie Cherpec

We have noticed that our new users are finding hard to migrate their configuration files to our Lua zone file format, to solve this issue we've decided to add native support for Bind zone files to our service.

How does it work?

Bind zone files can be easily deployed to our name servers with Git in the same way as Lua zone files.

Users have the option to store their configurations in standard Bind format or to use more powerful Lua format. Bind zone files can be mixed with Lua zone files in the same Git repository (Lua files have higher priority).

To get started, follow previous post to setup your Git repository. Add your Bind files to repository using .bind extension (Example: and push your modifications with git push origin master.

After git push command, shortly you'll receive an email with the status of the deployment.

With Bind zone format, SOA record is maintained automatically and domain NS records are updated to reflect LuaDNS name servers.

Check the documentation page for updates and example repository.

Supported directives

  • $TTL

Supported records

  • A
  • AAAA
  • MX
  • NS
  • PTR
  • SOA
  • SPF
  • SRV
  • TXT

Example Bind zone:

; File:
; Zone:

; Default origin is computed from the file name,
; you may change the origin with $ORIGIN directive
; Example:

; Default TTL is account's [default TTL](,
; you may change the default TTL with $TTL directive
; Example:
; $TTL 3600             ; 1 hour

; The system will generate and maintain domain's SOA record automatically,
; SOA records found in *.bind files are simply ignored        IN  SOA  (
                              2012050901  ; serial
                              20m         ; refresh (20 minutes)
                              2m          ; retry (2 minutes)
                              1w          ; expire (1 week)
                              1h          ; minimum (1 hour)

; Domain NS records are replaced with system name servers

; The rest of records
@                       A
@                       MX      5

www                     CNAME
mail                    CNAME

; SPF record, see
@                       TXT     "v=spf1 a mx ~all"

; SIP service available at the host
_sip._udp               SRV     0 0 5060