Difference between revisions of "Changing your DNS provider"
From Amahi Wiki
m (Reverted edits by Kirkpatricky (talk) to last revision by Dblteb) |
|||
Line 14: | Line 14: | ||
==OPTIONAL== | ==OPTIONAL== | ||
+ | <u>Fedora</u> | ||
Clear out DNS cache, do the following as '''root''' user: | Clear out DNS cache, do the following as '''root''' user: | ||
{{Code|nscd -i hosts}} | {{Code|nscd -i hosts}} | ||
− | + | <u>Ubuntu</u> | |
+ | {{Code|sudo /etc/init.d/dns-clean}} | ||
In some cases you may need to use the full path for hda-change-dns | 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 | example: /usr/bin/hda-change-dns 208.67.222.222 208.67.220.220 |
Revision as of 21:18, 22 October 2012
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, you can issue this command, provided you have two IP addresses of the providers:
bash code |
---|
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:
bash code |
---|
hda-change-dns 8.8.8.8 8.8.4.4
|
To revert back to the default OpenDNS settings use:
bash code |
---|
hda-change-dns 208.67.222.222 208.67.220.220
|
OPTIONAL
Fedora Clear out DNS cache, do the following as root user:
bash code |
---|
nscd -i hosts
|
Ubuntu
bash code |
---|
sudo /etc/init.d/dns-clean
|
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