2017-01-12 04:02:45 +08:00
---
layout: default
2017-10-11 20:33:17 +08:00
title: JavaScript DSL
2017-01-12 04:02:45 +08:00
---
# Javascript DSL
2017-05-08 19:36:29 +08:00
DNSControl uses javascript as its primary input language to provide power and flexibility to configure your domains. The ultimate purpose of the javascript is to construct a
2017-08-30 01:49:39 +08:00
[DNSConfig ](https://godoc.org/github.com/StackExchange/dnscontrol/models#DNSConfig ) object that will be passed to the go backend and operated on.
2017-01-12 04:02:45 +08:00
{% include funcList.md title="Top Level Functions" dir="global" %}
{% include funcList.md title="Domain Modifiers" dir="domain" %}
{% include funcList.md title="Record Modifiers" dir="record" %}
< script >
$(function(){
var f = function(){
$("div.panel").removeClass("panel-success")
var jmp = window.location.hash;
if(jmp){
$("div"+jmp).addClass("panel-success")
}
}
f();
2017-08-30 01:49:39 +08:00
$(window).on('hashchange',f);
2017-01-12 04:02:45 +08:00
})
2017-05-08 19:36:29 +08:00
< / script >