Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add A & AAAA record support #12

Merged
merged 4 commits into from
May 6, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix A and AAAA name (match machine hostname instead of service)
  • Loading branch information
jlucidar committed May 4, 2016
commit a66bbca8eacde24e31f5454a0c9e13595e1d1ea5
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