Observed with PowerDNS 2.9.20, binary installed from RPM to Red Hat Enterprise Linux v3.0:
When attempting to start pdns, pdns_server kept exiting (code 1) with the following entries in the syslog:
Fatal error in webserver: binding to port 8081: Cannot assign requested address
It turned out that I had a bad IP address entered for the webserver-address variable in pdns.conf, but that was not obvious from the error message. A slight change to the error message to include the IP and port would prove much more helpful - for example (fake IP address):
Fatal error in webserver: binding to 220.127.116.11:8081: Cannot assign requested address
The success message for the webserver does display the IP address in the syslog:
Launched webserver on 18.104.22.168:8081
Adding the IP address to the error message would be consistent with the success message, and would be helpful in debugging configuration problems.
Thanks for considering this issue.
Looks worthwhile, but as we are rather busy, perhaps you could write the patch?
You can probably just copy paste around in ws.cc, part of the PowerDNS distribution.
fixed in 991