ubiquiti:cli:dns_forwarding
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubiquiti:cli:dns_forwarding [2020/09/15 08:16] – created 192.168.1.1 | ubiquiti:cli:dns_forwarding [2020/09/15 09:14] (current) – 192.168.1.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubiquiti - CLI - DNS forwarding ====== | ====== Ubiquiti - CLI - DNS forwarding ====== | ||
+ | |||
+ | ===== ssh into your Controller ===== | ||
+ | |||
+ | ssh into your Controller (NOT the USG!). | ||
+ | |||
+ | For controller on: | ||
+ | |||
+ | * **Windows**: | ||
+ | * **Mac**: / | ||
+ | * **Ubuntu**: / | ||
+ | * **CloudKey**: | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | Create/Edit the file config.gateway.json in your site directory: | ||
+ | |||
+ | <file bash config.gateway.json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | Simply copy & paste it to JSON Formatter & Validator. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Finalize ===== | ||
+ | |||
+ | |||
+ | Once the file is on the UniFi-Controller: | ||
+ | |||
+ | * Navigate to **Devices**. | ||
+ | * Click your USG. | ||
+ | * Click the " | ||
+ | * Click " | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Verify ===== | ||
+ | |||
+ | Verify the setting by ssh' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// | ||
ubiquiti/cli/dns_forwarding.1600157817.txt.gz · Last modified: 2020/09/15 08:16 by 192.168.1.1