Skip to content

Commit a66bbca

Browse files
committed
fix A and AAAA name (match machine hostname instead of service)
1 parent 6533c3d commit a66bbca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function rr_txt (service) {
7878

7979
function rr_a (service,ip_address) {
8080
return {
81-
name: service.fqdn,
81+
name: service.host,
8282
type: 'A',
8383
ttl: 120,
8484
data: ip_address
@@ -87,7 +87,7 @@ function rr_a (service,ip_address) {
8787

8888
function rr_aaaa (service,ip_address) {
8989
return {
90-
name: service.fqdn,
90+
name: service.host,
9191
type: 'AAAA',
9292
ttl: 120,
9393
data: ip_address

0 commit comments

Comments
 (0)