Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update SRV record export to add missing zone (NicTool#126)
  • Loading branch information
abeeson authored and msimerson committed May 25, 2016
1 parent 30a7c12 commit 1c66d96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/lib/NicToolServer/Export/BIND/nsupdate.pm
Expand Up @@ -328,7 +328,10 @@ sub zr_srv {

# srvce.prot.name ttl class rr pri weight port target
return
"update $mode $r->{name} $r->{ttl} SRV $priority $weight $port $r->{address}\n";
"update $mode "
. $r->{name}
. (substr($r->{name}, -1, 1) eq '.' ? '' : '.' . $r->{zone})
. " $r->{ttl} SRV $priority $weight $port $r->{address}\n";
}

sub zr_aaaa {
Expand Down

0 comments on commit 1c66d96

Please sign in to comment.