diff --git a/app/views/domains/_form.html.erb b/app/views/domains/_form.html.erb
index 9ecbbe1..b38163a 100644
--- a/app/views/domains/_form.html.erb
+++ b/app/views/domains/_form.html.erb
@@ -1,10 +1,10 @@
<%= bootstrap_form_for(@domain, layout: :horizontal, label_col: 'col-sm-2', control_col: 'col-sm-4') do |f| %>
<%= f.text_field :name %>
<%= f.collection_select :group_id, edit_group_scope, :id, :name %>
<%= f.select :type, Domain.allowed_domain_types %>
- <%= f.text_field :master, wrapper_class: 'hidden' %>
+ <%= f.text_field :master, wrapper_class: @domain.slave? ? '' : 'hidden' %>
<%= f.submit 'Save', class: 'btn btn-primary col-sm-offset-2' %>
<% if dnssec? && @domain.persisted? && @domain.dnssec_elegible? %>
<%= link_to 'Setup DNSSEC', edit_dnssec_domain_path(@domain), class: 'btn btn-default' %>
<% end %>
<% end %>