Support #4435
closedonly able to create PTR records in Foreman (dns is set in Domains)
Description
HOSTNAME: puppet01.oadr
OS: redhat
RELEASE: CentOS release 6.4 (Final)
FOREMAN: 1.3.1
RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
PUPPET: 3.3.2
I have DNS running on a separate server and foreman can create PTR records but when I update domains to point to the DNS server I get the following error updating/adding hosts:
Net::Error
execution expired
lib/net/dns.rb:36:in `rescue in lookup'
lib/net/dns.rb:15:in `lookup'
lib/net/dns.rb:61:in `dns_lookup'
lib/net/dns/a_record.rb:28:in `conflicts'
lib/net.rb:27:in `conflicting?'
app/models/concerns/orchestration/dns.rb:121:in `dns_conflict_detected?'
app/models/concerns/orchestration.rb:47:in `valid?'
app/models/concerns/foreman/sti.rb:29:in `save_with_type'
app/controllers/hosts_controller.rb:85:in `create'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
if I change the resolv.conf on the foreman server to the IP of the foreman server (it was set to the IP of the DNS server) I don't get the error but foreman also doesn't update the DNS (A or PTR).
I can manually add records using the nsupdate command and using curl to pass through the foreman server (curl -i -d "fqdn=www02.oadr&value=10.199.200.13&type=A" http://10.199.202.64:8443/dns/).
also none of the records exist in DNS (nslookup returns nothing from the DNS server)