Project

General

Profile

Actions

Support #11575

closed

smart-proxy can't update ns in bind

Added by Lukas Müller over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DNS
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,

i configured Bind to communicate with the foreman-proxy via the web ui when provisioning a new host.

It fails at creating a reverse DNS-Entry in bind. (Error 400 bad request).

Here's my named.conf:

@options {
  directory "/var/named";
  dump-file "/var/named/data/cache_dump.db";
  statistics-file "/var/named/data/named_stats.txt";
};
controls {  inet 127.0.0.1 allow { localhost; } keys { foreman; }; };
include "/etc/rndc.key";
include "/etc/foreman.key";

zone "10.168.192.in-addr.arpa" {
  type master;
  file "/var/named/10.168.192.rev";
  update-policy {
        grant foreman zonesub ANY;
};
#  allow-update {key "foreman"; };
};
zone "example.local" {
  type master;
  file "/var/named/example.local.hosts";
  update-policy {
        grant foreman zonesub ANY;
};
#  allow-update {key "foreman"; };
};
logging
{
  category update { update_log; };
  channel update_log
  {
    file "/var/named/logs/dns-update.log" versions 2 size 20m;
    print-time yes;
    print-category yes;
    print-severity yes;
    severity info;
  };
};
zone "." {
  type forward;
  forwarders {
    10.140.79.240;
  };
};
@

Error-Log of Foreman-proxy:

@E, [2015-08-26T15:13:14.403595 #24454] ERROR -- : Update errors: Answer:

;; ->>HEADER<<- opcode: UPDATE, status: REFUSED, id:  40880

;; flags: qr ra; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 1

;; ZONE SECTION:

;10.168.192.in-addr.arpa.       IN      SOA

;; TSIG PSEUDOSECTION:

rndc-key.               0       ANY     TSIG    hmac-md5.sig-alg.reg.int. 1440594794 300 16 ddtIA5xr2Tte8HjEHHoRrQ== 40880 NOERROR 0

192.168.10.90 - - [26/Aug/2015 15:13:14] "POST /dns/ HTTP/1.1" 400 336 0.0939
@

Do someone of you have any idea how to fix this foreman-proxy-dns-error?

Release 1.8.3

Actions

Also available in: Atom PDF