Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.
Open
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
3 changes: 2 additions & 1 deletion templates/named/dynamic-zone.db.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ $TTL 1800
NS <%= scope.lookupvar('::openshift_origin::nameserver_hostname') %>.
$ORIGIN <%= scope.lookupvar('::openshift_origin::domain') %>.
<% if scope.lookupvar('::openshift_origin::nameserver_hostname').end_with?(scope.lookupvar('::openshift_origin::domain')) %>
<%= scope.lookupvar('::openshift_origin::nameserver_hostname').split('.').first %> A <%= scope.lookupvar('::openshift_origin::nameserver_ip_addr') %>
<%= scope.lookupvar('::openshift_origin::nameserver_hostname').gsub('.'+scope.lookupvar('::openshift_origin::domain'),'') %> A <%= scope.lookupvar('::openshift_origin::nameserver_ip_addr') %>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be simpler to just write:

<%= scope.lookupvar('::openshift_origin::nameserver_hostname') %>.  A <%= scope.lookupvar('::openshift_origin::nameserver_ip_addr') %>

<% end %>