Skip to content

Commit

Permalink
added node ip address and fqdn information to ddns recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
renemendoza committed Jul 24, 2010
1 parent 6fdeb24 commit 293aa99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/dynamic_dns/ddns_update.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
##
## Generated by Chef for <%= @node[:fqdn] %>

TTL=3600
SERVER=ns1.zefironetworks.com
ZONE=zefironetworks.com
Expand All @@ -11,6 +14,6 @@ nsupdate -v -k $KEYFILE > /dev/null << EOF
server $SERVER
zone $ZONE
update delete $HOSTNAME A
update add $HOSTNAME $TTL A $new_ip_address
update add $HOSTNAME $TTL A <%= @node[:ipaddress] %>
send
EOF

0 comments on commit 293aa99

Please sign in to comment.