The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

2087 port problem, DNS issues

Discussion in 'Bind / DNS / Nameserver Issues' started by asmar, Aug 5, 2005.

  1. asmar

    asmar Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Hello all,

    In a fresh install I am experiencing problems related with Bind.

    DNS is not working at all and the only way to make it work is to stop it first and then to start bind like:
    /usr/sbin/named -u named -c /etc/named.conf


    Apart from that I cannot access https and 2087 port. In this case I need to do:
    /etc/init.d/xinetd stop
    service cpanel restart

    Any ideas how can I solve this issues?

    I disabled xinetd via webmin and also check the rc3.d dir in case that exist but the xinetd deamon is still running after a reboot.

    Thanks
     
  2. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
  3. asmar

    asmar Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the answer nickb.
    I've seen that post and did everything but as I said the problem remains after I reboot the server.

    Any other suggestions?
     
  4. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    any error messages in /var/log/messages related to bind....and stunnel?...try restarting both and post errors..
     
  5. asmar

    asmar Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Here are a few error that I found on messages :

    xinetd[20481]: bind failed (Address already in use (errno = 98)). service = pop3
    xinetd[20481]: bind failed (Address already in use (errno = 98)). service = pop3s
    xinetd[20481]: xinetd Version 2.3.12 started with libwrap loadavg options compiled in.

    Apart from the above nothing else.
     
  6. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Do u have portsentry running if yes then stop it, restart xineted, restart bind then start portsentry.....
     
    #6 nickb, Aug 5, 2005
    Last edited: Aug 5, 2005
  7. asmar

    asmar Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    nickb the problem comes only after a reboot.
    Portsentry is not running.
     
  8. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    Using webmin alongside cPanel is not supported and I've seen this cause various problems. Your issue appears to be some invalid entries in /etc/xinetd.d/. Check this directory and remove anything you don't need or want.
     
  9. asmar

    asmar Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Ok I will check and see how it goes.

    What about:
    DNS seems to work (ps ax gives me that bind is running) but in the real world it seems to be broken. It doesn't even reply with the right responce when I am doing a nslookup on the same server.
    It works only if I stop it and start it with:
    /usr/sbin/named -u named -c /etc/named.conf

    Any ideas?
     
  10. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    any errors in /var/log/messages after you restart Bind?
     
  11. asmar

    asmar Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    I stopped bind and start it via cpanel (/scripts/restartsrv_named) and I am getting the following error in logs:

    Aug 5 18:01:44 server1 named[13220]: zone 0.in-addr.arpa/IN: loaded serial 42
    Aug 5 18:01:44 server1 named[13220]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
    Aug 5 18:01:44 server1 named[13220]: zone 255.in-addr.arpa/IN: loaded serial 42
    Aug 5 18:01:44 server1 named[13220]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
    Aug 5 18:01:44 server1 named[13220]: zone mydomain.com/IN: loading master file /var/named/mydomain.com.db: file not found
    Aug 5 18:01:44 server1 named[13220]: zone ns1.mydomain.com/IN: loading master file /var/named/ns1.mydomain.com.db: file not found
    Aug 5 18:01:44 server1 named[13220]: zone ns2.mydomain.com/IN: loading master file /var/named/ns2.mydomain.com.db: file not found
    Aug 5 18:01:44 server1 named[13220]: zone localdomain/IN: loaded serial 42
    Aug 5 18:01:44 server1 named[13220]: zone localhost/IN: loaded serial 42
    Aug 5 18:01:44 server1 named[13220]: running

    The strange thing is that /var/named/mydomain.com.db exist in the server.



    Now I stopped the bind and start it with the working command:
    /usr/sbin/named -u named -c /etc/named.conf

    logs are:
    Aug 5 18:02:33 server1 named[31809]: zone 255.in-addr.arpa/IN: loaded serial 42
    Aug 5 18:02:33 server1 named[31809]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
    Aug 5 18:02:33 server1 named[31809]: zone mydomain.com/IN: loaded serial 2005080403
    Aug 5 18:02:33 server1 named[31809]: zone ns1.mydomain.com/IN: loaded serial 2005080402
    Aug 5 18:02:33 server1 named[31809]: zone ns2.mydomain.com/IN: loaded serial 2005080403
    Aug 5 18:02:33 server1 named[31809]: zone localdomain/IN: loaded serial 42
    Aug 5 18:02:34 server1 named[31809]: zone localhost/IN: loaded serial 42
    Aug 5 18:02:34 server1 named[31809]: running
    Aug 5 18:02:34 server1 named[31907]: zone mydomain.com/IN: sending notifies (serial 2005080403)
    Aug 5 18:02:34 server1 named[31840]: received notify for zone 'mydomain.com'


    Any help is much appretiate.
     
  12. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    Take a look at the named.conf and the options are set with the correct path to

    directory "/var/namedb";
     
  13. asmar

    asmar Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    The directory /var/namedb does not exist in the server.
    Only the /var/named and there is no namedb directory there.
     
Loading...

Share This Page