Skip to content

Commit

Permalink
fix A and AAAA name (match machine hostname instead of service)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucidar committed May 4, 2016
1 parent 6533c3d commit a66bbca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function rr_txt (service) {

function rr_a (service,ip_address) {
return {
name: service.fqdn,
name: service.host,
type: 'A',
ttl: 120,
data: ip_address
Expand All @@ -87,7 +87,7 @@ function rr_a (service,ip_address) {

function rr_aaaa (service,ip_address) {
return {
name: service.fqdn,
name: service.host,
type: 'AAAA',
ttl: 120,
data: ip_address
Expand Down

0 comments on commit a66bbca

Please sign in to comment.