Difference between revisions of "How to use two HDAs on the same network"

From Amahi Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
You'll need to run the commands below on both your HDAs.<br/>
 
You'll need to run the commands below on both your HDAs.<br/>
 +
 +
You'll need to edit named.patch before executing the patch command:<br/>
 
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.<br/>
 
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.<br/>
 
On your second HDA: replace home.com with your main HDA domain name, and 192.168.1.10 with you HDA real IP address.<br/>
 
On your second HDA: replace home.com with your main HDA domain name, and 192.168.1.10 with you HDA real IP address.<br/>
  
  cat > named.patch << 'EOF'
+
  wget -O named.patch http://wiki.amahi.org/images/c/ca/Named.patch
*** /usr/bin/hdactl 2010-06-16 21:55:38.000000000 -0400
 
--- /usr/bin/hdactl.new 2010-08-03 07:49:22.083756431 -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
 
  patch -p0 < named.patch
 
  service hdactl restart
 
  service hdactl restart

Revision as of 12:14, 3 August 2010

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.

You'll need to edit named.patch before executing the patch command:
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.

wget -O named.patch http://wiki.amahi.org/images/c/ca/Named.patch
patch -p0 < named.patch
service hdactl restart