How to use two HDAs on the same network

From Amahi Wiki
Revision as of 13:46, 25 July 2010 by Gboudreau (talk | contribs) (Created page with 'Make sure both HDA use different domain names. You'll need to re-apply this fix on every update of hdactl. You'll need to run the commands below on both your HDAs.<br/> On your…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Make sure both HDA use different domain names.

You'll need to re-apply this fix on every update of hdactl.

You'll need to run the commands below on both your HDAs.
On your main HDA: replace home.com with your second HDA domain name, and 192.168.1.10 with your second HDA real IP address. On your second HDA: replace home.com with your main HDA domain name, and 192.168.1.10 with you HDA real IP address.

cat > named.patch << 'EOF'
*** /usr/bin/hdactl	2010-05-17 12:04:57.994266656 -0400
--- /usr/bin/hdactl.new	2010-05-17 12:06:28.151265690 -0400
***************
*** 255,260 ****
--- 255,265 ----
          printf $hda "\tallow-update { key ddnskey; };\n";
          printf $hda "\tcheck-names ignore;\n";
  	printf $hda "};\n\n";
+ 
+ 	printf $hda "zone \"home.com\" IN {\n";
+ 	printf $hda "\ttype slave;\n";
+ 	printf $hda "\tmasters { 192.168.1.10; };\n";
+ 	printf $hda "};\n\n";
  }
  
  sub print_void_info {
EOF
patch -p0 < named.patch
service hdactl restart