Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
mkdir bin<br/>
cd bin<br/>
wget http://wikidl.amahi.org/images/3/32/Hda-get-hosts.sh<br/>mv Hda-get-hosts.sh hda-get-hosts<br/>
chmod +x hda-get-hosts
</div>
Add the following entry in your crontab ('''crontab -e''' to edit your crontab).<br/>
Note: Notes*Replace '''your_username''' with your Fedora username (for example ''joe'').*Replace '''hda_ip_address''' with your HDA IP address.
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
<nowiki>* * * * *</nowiki> ssh '''your_username'''@hda '''hda_ip_address''' "sudo bin/hda-get-hosts" > /tmp/hosts.hda ; grep -v "From HDA$\|Amahi HDA$" /etc/hosts > /tmp/hosts.new ; echo "# The following lines were added from your Amahi HDA" >> /tmp/hosts.new ; cat /tmp/hosts.hda >> /tmp/hosts.new ; sudo cp -f /tmp/hosts.new /etc/hosts
</div>
ping -c 1 hda.home.com | grep from
</div>
 
==DNS configuration on client(s)==
 
You have two choice:
#You [[Turning off DHCP|disable the DHCP]] on your HDA, and replace it with your router's DHCP. Don't forget to re-configure static IPs you had configured on your HDA into your router, and to [[RenewIP|renew the IP address]] on the client(s).
#You manually configure the DNS servers on your client computers to use your router as their DNS server (or any other DNS that is not your HDA). You HDA will continue to act as DHCP server, and will ask clients to use it as their DNS server, but as long as you can manually override that, you'll be fine.
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
3,789

edits