<p>Addresses <a href="https://github.com/opentechinstitute/luci-commotion/issues/33" class="issue-link" title="Add option to manual mesh config to change DNS server">#33</a> </p>

<p>Users should be able to override profile dns entries.<br>
To test:<br>
1. Select Commotion > Mesh Configuration (manual) from the top menu<br>
2. Add two ip addresses in the DNS Servers field and save & apply. When the page reloads, the field should contain both ip addresses, and changes should appear in /etc/config/network on all interfaces using proto commotion.<br>
3. Delete the ip addresses from the DNS Servers field in meshconfig. The dns entry should be removed from all interfaces in /etc/config/network with proto commotion.<br>
4. Enter an invalid (non-ip address) string. The changes should be rejected.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/luci-commotion dns-override</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/luci-commotion/pull/109'>https://github.com/opentechinstitute/luci-commotion/pull/109</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Deleted .swp and gedit backup files</li>
  <li>Working placeholder population from /etc/config/network</li>
  <li>Successful validation using host datatype</li>
  <li>DNS form field should only show unique entries</li>
  <li>Use .default, not .placeholder so overrides aren't accidentally deleted when editing other sections</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>D</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/109/files#diff-0">luasrc/controller/commotion/.meshprofile.lua.swp</a>
    (0)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/109/files#diff-1">luasrc/controller/commotion/meshprofile.lua~</a>
    (347)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/109/files#diff-2">luasrc/model/cbi/commotion/meshconfig.lua</a>
    (69)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/109.patch'>https://github.com/opentechinstitute/luci-commotion/pull/109.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/109.diff'>https://github.com/opentechinstitute/luci-commotion/pull/109.diff</a></li>
</ul>