Unable to save Create Reverse DNS record for mydomain.com task failed with the following error: ERF12-2357 [ProxyAPI::ProxyException]: Unable to set DNS entry ([RestClient::BadRequest]: 400 Bad Request) for proxy https://mydomain.com:8443/dns

Apply to Katello,Satellite and Foreman

"Unable to save Create Reverse DNS record for mydomain.com task failed with the following error: ERF12-2357 [ProxyAPI::ProxyException]: Unable to set DNS entry ([RestClient::BadRequest]: 400 Bad Request) for proxy https://mydomain.com:8443/dns"

This is the network we are using for this example:

Network 192.168.122.x



The error we are getting is caused for a misspelling of the reverse zone resolution when we active the dns as you can see in this example the dns-reverse is 13.17.172 instead of 122.168.192

katello-installer -v --capsule-dns true --capsule-dns-interface eth0 --capsule-dns-zone example.com --capsule-dns-forwarders 192.168.122.4 --capsule-dns-reverse 13.17.172.in-addr.arpa

 Looking in the messages logs this is the error we get

named: client 127.0.0.1#51110/key rndc-key: signer "rndc-key" approved

named: client 127.0.0.1#51110/key rndc-key: updating zone 'example.com/IN': adding an RR at 'test.example.com' A

named: client 127.0.0.1#56707/key rndc-key: update '168.192.IN-ADDR.ARPA/IN' denied

named: client 127.0.0.1#28443/key rndc-key: signer "rndc-key" approved

named: client 127.0.0.1#28443/key rndc-key: updating zone 'example.com/IN': deleting rrset at 'test.example.com' A


After correct the reverse zone as expected.

katello-installer -v --capsule-dns true --capsule-dns-interface eth0 --capsule-dns-zone example.com --capsule-dns-forwarders 192.168.122.4 --capsule-dns-reverse 13.17.172.in-addr.arpa


All is working as  now

named: client 127.0.0.1#24069/key rndc-key: updating zone 'example.com/IN': adding an RR at 'test.example.com' A

named: client 127.0.0.1#60420/key rndc-key: updating zone '122.168.192.in-addr.arpa/IN': adding an RR at '200.122.168.192.in-addr.arpa' PTR

named: client 127.0.0.1#46716/key rndc-key: updating zone 'example.com/IN': deleting rrset at 'test.example.com' A

named: client 127.0.0.1#11584/key rndc-key: updating zone '122.168.192.in-addr.arpa/IN': deleting rrset at '200.122.168.192.in-addr.arpa' PTR

Comments

Popular posts from this blog

How to clean all the foreman task and locked task

CentOS 7 Server Hardening Guide

How to restrict users to send only mail to the local domain in Zimbra