mirror of
				https://github.com/StackExchange/dnscontrol.git
				synced 2025-11-04 03:32:19 +08:00 
			
		
		
		
	
		
			
				
	
	
	
	
		
			1.2 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.2 KiB
		
	
	
	
	
	
	
	
Global Flags
These flags are global. They affect all subcommands.
   --debug, -v        Enable detailed logging (default: false)
   --allow-fetch      Enable JS fetch(), dangerous on untrusted code! (default: false)
   --disableordering  Disables update reordering (default: false)
   --no-colors        Disable colors (default: false)
   --help, -h         show help
They must appear before the subcommand.
Right
{% hint style="success" %}
dnscontrol --no-colors preview
{% endhint %}
Wrong
{% hint style="danger" %}
dnscontrol preview --no-colors
{% endhint %}
- 
-debug- Enable debug output.  (The 
-valias is the original name for this flag. That alias will go away eventually.) 
 - Enable debug output.  (The 
 - 
--allow-fetch- Enable the 
fetch()function indnsconfig.js(or equivalent). It is disabled by default because it can be used for nefarious purposes. It is dangerous on untrusted code! Enable it only if you trust all the people editing dnsconfig.js. 
 - Enable the 
 - 
--disableordering- Disables update reordering. Normally DNSControl re-orders the updates done by 
push. This is usually only used to work around bugs in the reordering code. 
 - Disables update reordering. Normally DNSControl re-orders the updates done by 
 - 
--no-colors- Disable colors. See Disabling Colors for details.