Difference between revisions of "Changing your DNS provider"

From Amahi Wiki
Jump to: navigation, search
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
Amahi defaults to providing DNS forwarding through [http://www.opendns.com OpenDNS].
 
Amahi defaults to providing DNS forwarding through [http://www.opendns.com OpenDNS].
  
If you would like to change that to your router or your ISP or some other provider, you can issue this command, provided you have two IP addresses of the providers:
+
If you would like to change that to your router or your ISP or some other provider, follow the guidance below:
  
{{Code|hda-change-dns FIRST_DNS_IP SECOND_DNS_IP}}
+
= Amahi 7 or greater (Fedora) =
 +
Log in to your dashboard as your 1st admin user, the accomplish the following:
 +
 
 +
* Verify [[Advanced_Settings|Advanced Settings]] is enabled. 
 +
* Select '''Network''' tab, then '''Settings'''. 
 +
* Choose desired DNS provider:
 +
** Preconfigured (Google Public DNS, OpenNIC DNS, or OpenDNS)
 +
** '''Custom'''
 +
*** Enter the IP addresses for the DNS provider.
 +
*** Select Update DNS IPs
 +
 
 +
 
 +
<b>NOTE:</b>  You may need to [[RenewIP|renew the DHCP lease]] on your clients to use the new DNS provider.
 +
 
 +
= Amahi 6 (Ubuntu 12.04.x) =
 +
This has to be done via command line.  Issue this command, provided you have two IP addresses of the providers:
 +
 
 +
hda-change-dns FIRST_DNS_IP SECOND_DNS_IP
  
 
For instance, if you would like to use [http://code.google.com/speed/public-dns/ Google's Public DNS] service, you would do:
 
For instance, if you would like to use [http://code.google.com/speed/public-dns/ Google's Public DNS] service, you would do:
  
{{Code|hda-change-dns 8.8.8.8 8.8.4.4}}
+
hda-change-dns 8.8.8.8 8.8.4.4
  
 
To revert back to the default OpenDNS settings use:
 
To revert back to the default OpenDNS settings use:
  
{{Code|hda-change-dns 208.67.222.222 208.67.220.220}}
+
hda-change-dns 208.67.222.222 208.67.220.220
 +
 
 +
In some cases you may need to use the full path for hda-change-dns
 +
 
 +
example: /usr/bin/hda-change-dns 208.67.222.222 208.67.220.220
 +
 
 +
= Clear DNS Cache (Optional) =
 +
<u>Fedora</u>
 +
 
 +
Clear out DNS cache, do the following as '''root''' user:
 +
nscd -i hosts
  
Clear our DNS cache, do the following as '''root''' user:
+
<u>Ubuntu</u>
{{Code|nscd -i hosts}}
+
sudo /etc/init.d/dns-clean

Latest revision as of 01:05, 25 March 2016

Amahi defaults to providing DNS forwarding through OpenDNS.

If you would like to change that to your router or your ISP or some other provider, follow the guidance below:

Amahi 7 or greater (Fedora)

Log in to your dashboard as your 1st admin user, the accomplish the following:

  • Verify Advanced Settings is enabled.
  • Select Network tab, then Settings.
  • Choose desired DNS provider:
    • Preconfigured (Google Public DNS, OpenNIC DNS, or OpenDNS)
    • Custom
      • Enter the IP addresses for the DNS provider.
      • Select Update DNS IPs


NOTE: You may need to renew the DHCP lease on your clients to use the new DNS provider.

Amahi 6 (Ubuntu 12.04.x)

This has to be done via command line. Issue this command, provided you have two IP addresses of the providers:

hda-change-dns FIRST_DNS_IP SECOND_DNS_IP

For instance, if you would like to use Google's Public DNS service, you would do:

hda-change-dns 8.8.8.8 8.8.4.4

To revert back to the default OpenDNS settings use:

hda-change-dns 208.67.222.222 208.67.220.220

In some cases you may need to use the full path for hda-change-dns

example: /usr/bin/hda-change-dns 208.67.222.222 208.67.220.220

Clear DNS Cache (Optional)

Fedora

Clear out DNS cache, do the following as root user:

nscd -i hosts

Ubuntu

sudo /etc/init.d/dns-clean