You are not logged in.

#1 2012-11-28 14:36:41

freaks
Member
Registered: 2010-11-10
Posts: 65

[powerdns] port 53: Address already in use

hello
i made some changes in the configuration of powerdns
and i have this errors

binding UDP socket to xxxx.xxxx.xxx.xx port 53: Address already in use
Fatal error: Unable to bind to UDP socket

this is my new configuration file
i tried to restart the service
thanks

allow-axfr-ips=xxx.xx.xxx.x xxx.xx.xxx.x
allow-recursion=127.0.0.1
allow-recursion-override=yes
cache-ttl=60
chroot=/var/empty
config-dir=/etc/powerdns
daemon=yes
disable-axfr=no
distributor-threads=3
guardian=yes
launch=gmysql
gmysql-host=127.0.0.1
gmysql-port=3306
gmysql-dbname=hst_pdns
gmysql-user=hst_pdns
gmysql-password=brqz238biofat

lazy-recursion=yes
local-address=xx.xxx.xx.x
local-port=53
logging-facility=0
loglevel=3
module-dir=/usr/lib/powerdns
negquery-cache-ttl=60
out-of-zone-additional-processing=yes
query-cache-ttl=300
recursive-cache-ttl=150
recursor=127.0.0.1:54
setgid=pdns
setuid=pdns
socket-dir=/var/run
use-logfile=no
webserver=no

Last edited by freaks (2012-11-28 14:37:15)

Offline

#2 2012-11-28 15:22:25

p0x8
Member
Registered: 2012-09-20
Posts: 70

Re: [powerdns] port 53: Address already in use

The service restart apparently didn't stop the running instance. How did you restart it?

Anyway, you could try finding out what process is using the port, e.g.:

# netstat -putan | grep LISTEN

Get the process id that is listening on port 53, kill it and start the service.

Offline

#3 2012-11-28 18:07:06

freaks
Member
Registered: 2010-11-10
Posts: 65

Re: [powerdns] port 53: Address already in use

ok thanks i tried to kill the process but it don't works
powerdns relaunch the daemon
if i stop the service
/etc/rc.d/pdns stop
there is no program listening on port 53
and no error in var/log/error.log
and when i start the daemon
there is a program listening and the error

Nov 28 19:06:32 ns27504 pdns[26342]: binding UDP socket to 'xx.xxx.xx.x' port 53: Address already in use
Nov 28 19:06:32 ns27504 pdns[26342]: binding UDP socket to 'xx.xxx.xx.x' port 53: Address already in use
Nov 28 19:06:32 ns27504 pdns[26342]: binding UDP socket to 'xx.xxx.xx.x' port 53: Address already in use
Nov 28 19:06:32 ns27504 pdns[26342]: binding UDP socket to 'xx.xxx.xx.x' port 53: Address already in use
Nov 28 19:06:32 ns27504 pdns[26342]: binding UDP socket to 'xx.xxx.xx.x' port 53: Address already in use
Nov 28 19:06:32 ns27504 pdns[26342]: Fatal error: Unable to bind to UDP socket
Nov 28 19:06:32 ns27504 pdns[26342]: Fatal error: Unable to bind to UDP socket
Nov 28 19:06:32 ns27504 pdns[26342]: Fatal error: Unable to bind to UDP socket
Nov 28 19:06:32 ns27504 pdns[26342]: Fatal error: Unable to bind to UDP socket
Nov 28 19:06:32 ns27504 pdns[26342]: Fatal error: Unable to bind to UDP socket
Nov 28 19:06:33 ns27504 pdns[26103]: Our pdns instance exited with code 1
Nov 28 19:06:33 ns27504 pdns[26103]: Our pdns instance exited with code 1
Nov 28 19:06:33 ns27504 pdns[26103]: Our pdns instance exited with code 1
Nov 28 19:06:33 ns27504 pdns[26103]: Our pdns instance exited with code 1

Last edited by freaks (2012-11-28 18:07:30)

Offline

Board footer

Powered by FluxBB