切換資料庫後端後,pdns (powerdns) 不再傳回記錄

切換資料庫後端後,pdns (powerdns) 不再傳回記錄

我將資料庫後端從 gmysql 切換到 gpgsql,並將記錄從 mysql 資料庫複製到 postgresql 資料庫。dig +short www.example.com @my_dns_server_ip用於返回所需的結果,但現在不再返回。

我升級到 powerdns 4.1.4 但仍然沒有得到所需的輸出。

我相信在某一時刻我的 pdns 伺服器使用了 gpgsql 後端並且能夠返回所需的輸出,但它停止工作了。有人可以幫忙嗎?

這是我的設定檔:https://dpaste.de/hgg9

config-dir=/etc/powerdns
gpgsql-dbname=powerdns
gpgsql-host=/run/postgresql
gpgsql-password=pw
gpgsql-user=root
include-dir=/etc/powerdns/pdns.d
launch=gpgsql
local-address=0.0.0.0
security-poll-suffix=
setgid=pdns
setuid=pdns

答案1

pdns.local.gpgsql.conf 設定不正確。將它們更改為正確的,伺服器現在正在運行並返回記錄。

相關內容