change bind9 port

Discussion in 'Installation/Configuration' started by axtoxic107, Apr 26, 2010.

  1. axtoxic107

    axtoxic107 New Member

    Hello,

    When i restart my bind9 i face this message

    Code:
    Apr 26 03:01:32 imagezza named[1872]: loading configuration from '/etc/bind/named.conf'
    Apr 26 03:01:32 imagezza named[1872]: max open files (1024) is smaller than max sockets (4096)
    Apr 26 03:01:32 imagezza named[1872]: using default UDP/IPv4 port range: [1024, 65535]
    Apr 26 03:01:32 imagezza named[1872]: using default UDP/IPv6 port range: [1024, 65535]
    Apr 26 03:01:32 imagezza named[1872]: listening on IPv6 interfaces, port 53
    Apr 26 03:01:32 imagezza named[1872]: listening on IPv4 interface lo, 127.0.0.1#53
    Apr 26 03:01:32 imagezza named[1872]: could not listen on UDP socket: address in use
    Apr 26 03:01:32 imagezza named[1872]: creating IPv4 interface lo failed; interface ignored
    Apr 26 03:01:32 imagezza named[1872]: listening on IPv4 interface venet0, 127.0.0.1#53
    Apr 26 03:01:32 imagezza named[1872]: could not listen on UDP socket: address in use
    Apr 26 03:01:32 imagezza named[1872]: creating IPv4 interface venet0 failed; interface ignored
    Apr 26 03:01:32 imagezza named[1872]: listening on IPv4 interface venet0:0, 184.82.19.178#53
    Apr 26 03:01:32 imagezza named[1872]: could not listen on UDP socket: address in use
    Apr 26 03:01:32 imagezza named[1872]: creating IPv4 interface venet0:0 failed; interface ignored
    Apr 26 03:01:32 imagezza named[1872]: listening on IPv4 interface venet0:1, 184.82.19.179#53
    Apr 26 03:01:32 imagezza named[1872]: could not listen on UDP socket: address in use
    Apr 26 03:01:32 imagezza named[1872]: creating IPv4 interface venet0:1 failed; interface ignored
    So i decided to run nmap and see the port 53 in action.
    Here are result of it.

    Code:
    PORT     STATE SERVICE    VERSION
    21/tcp   open  ftp        ProFTPD 1.3.1
    22/tcp   open  ssh         (protocol 2.0)
    53/tcp   open  tcpwrapped
    80/tcp   open  http       Apache httpd 2.2.9 ((Debian) PHP/5.2.6-1+lenny8 with S                                                                             uhosin-Patch)
    3306/tcp open  mysql      MySQL (Host blocked because of too many connections)
    5901/tcp open  vnc        VNC (protocol 3.8)
    6001/tcp open  X11         (access denied)
    
    So as we cn see 53/tcp port is already open for another process "tcpwrapped"..

    How can i change my bind9 to run on another port? I dont know "tcpwrapped" process. So how can i stop it or run it on another port?

    Thanks
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Can you post the outputs of
    Code:
    netstat -tap
    and
    Code:
    netstat -uap
    ?
     
  3. axtoxic107

    axtoxic107 New Member

    Thanks for ur input..

    Here are stats of netstat -tap


    Netstat - uap

    Here in the above netstat -tap result,
    29929/mysqld
    tcp 0 0 imagezza.com:46983 vz23.ramhost.us:www ESTABLISHED

    This line is confusing to me..ramhost.us is my old host, i create new server on burst.net..
     
  4. dfed

    dfed New Member

    So you're running pdns and bind together?
     
  5. axtoxic107

    axtoxic107 New Member

    Actully i first install pdns but its not worked so i install bind and then trying..
    Cant i run botht together, do i need to uninstall pdns first?
     
  6. dfed

    dfed New Member

    Code:
    tcp 0 0 *:domain *:* LISTEN 5551/pdns_server-in
    That means pdns is taking up the port on which bind wants to run.

    One or the other. either uninstall bind and fix pdns or uninstall pdns.
     
  7. axtoxic107

    axtoxic107 New Member

    Thanks man...
    I finally got the thing working.

    Now my other problem is my sites are running very slow..Previously when Phpmyadmin was installed it was running fast but now its very very slow..

    Can u help me here please?
    What will be the reason for this slowness?
     
  8. axtoxic107

    axtoxic107 New Member

    can someone please explain this line
    tcp 0 0 imagezza.com:46983 vz23.ramhost.us:www ESTABLISHED 15397/epiphany-brow

    here ramhost.us is my previous host.
    Why this new server is point mysql to that host??
     
  9. axtoxic107

    axtoxic107 New Member

    i am trying my best here..
    My latest nmap result
    mysql open but the message "Host blocked because of too many connections" there must be something wrong in the server so it blocked it..

    Where can i see the error log of mysql..I am using debian linux..

    And one more result for ur reference - netstat -tap
    What does "bind-redirect 127.0.0.1" do? Right now in my my.cnf file that line is commented.

    One more important thing, my phpmyadmin working well here..I have install mysql by following below tutorial
    http://www.howtoforge.com/ubuntu_debian_lamp_server

    Thanks
     
  10. falko

    falko Super Moderator ISPConfig Developer

    You can try to add something like
    Code:
    max_connections        = 100
    to the [mysqld] section in /etc/mysql/my.cnf. Don't forget to restart MySQL afterwards.
     

Share This Page