DNS Not working

Discussion in 'Installation/Configuration' started by jribeiro, Apr 13, 2011.

  1. jribeiro

    jribeiro New Member

    Hi there!!

    Really sorry to trouble everyone with another dns related issue but I've read numerous threads with no luck...

    I have ISPConfig 3 + Centos 5.5.

    The domain I'm trying to configure is sostudent.com. Created ns1.sostudent.com and ns2.sostudent.com and assigned to the right ip: 85.139.252.201

    The ispconfig is shown in attachement.

    However I can't access the domain and the tool intodns says "I could not get any nameservers from your nameservers (the ones listed at the parent server). Please verify that they are not lame nameservers and are configured properly. "

    http://www.intodns.com/sostudent.com

    I bought the manual but still can't get through this... I'm newbie!

    Thanks everyone
     

    Attached Files:

    • dns.JPG
      dns.JPG
      File size:
      21.8 KB
      Views:
      230
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run this command on the shell and post the output:

    dig @localhost sostudent.com
     
  3. jribeiro

    jribeiro New Member

    Thanks for the reply!!

    Result:
    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> @localhost sostudent.com
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 51119
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;sostudent.com. IN A

    ;; Query time: 2214 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Apr 14 08:42:01 2011
    ;; MSG SIZE rcvd: 31
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    restart bind and then check the syslog and messages log file for errors.
     
  5. jribeiro

    jribeiro New Member

    Thanks again!! No errors I think. Please check the image bellow
     

    Attached Files:

  6. jribeiro

    jribeiro New Member

    Hi there!!

    Some more info...

    telnet localhost 53
    Responds OK

    telnet localip 53
    Unable to connect

    telnet publicip 53
    Unable to connect

    This is happens both with ispconfig firewall active and inactive...

    What's is going wrong here?? Can anyone help?
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Can you post your /var/named/chroot/etc/named.conf?
     
  8. jribeiro

    jribeiro New Member

    Yup!

    Code:
    //
    // named.conf
    //
    // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
    // server as a caching only nameserver (as a localhost DNS resolver only).
    //
    // See /usr/share/doc/bind*/sample/ for example named configuration files.
    //
    options {
            listen-on port 53 { 127.0.0.1; };
            listen-on-v6 port 53 { ::1; };
            directory       "/var/named/chroot/var/named";
            dump-file       "/var/named/chroot/var/named/data/cache_dump.db";
            statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
            memstatistics-file "/var/named/chroot/var/named/data/named_mem_stats.txt";
            allow-query     { localhost; };
            recursion yes;
    };
    logging {
            channel default_debug {
                    file "data/named.run";
                    severity dynamic;
            };
    };
    zone "." IN {
            type hint;
            file "named.root";
    };
    include "/var/named/chroot/etc/named.conf.local";
    Followed this tutorial:
    http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-3-p5

    and addapted it to 32bit version.

    Anyway just some extra info... the telnet problem happens with other services like pop.

    However the router is propelly configrued. I'm almost 100% positive of that!!

    Also I have two nics but the router is only configured for one of them.

    Don't know if this extra info helps but anyway...

    Thanks!!
     
  9. dromney

    dromney New Member

    Similar Issue, except Ubuntu 10.10

    I am having a similar issue running Ubuntu 10.10, I have the most up to date ISP Config, and I have kept my Ubuntu up to date. Using BIND, and getting the same response from intodns.com. So I would much appreciate any help on this. Same this with the manual to, not very helpful.
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Replace the file with this one:

    Code:
    //
    // named.conf
    //
    // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
    // server as a caching only nameserver (as a localhost DNS resolver only).
    //
    // See /usr/share/doc/bind*/sample/ for example named configuration files.
    //
    options {
            listen-on port 53 { any; };
            listen-on-v6 port 53 { any; };
            directory       "/var/named/chroot/var/named";
            dump-file       "/var/named/chroot/var/named/data/cache_dump.db";
            statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
            memstatistics-file "/var/named/chroot/var/named/data/named_mem_stats.txt";
            allow-query     { any; };
            recursion yes;
    };
    logging {
            channel default_debug {
                    file "data/named.run";
                    severity dynamic;
            };
    };
    zone "." IN {
            type hint;
            file "named.root";
    };
    include "/var/named/chroot/var/named/named.local";
    Then restart named.
     
  11. dromney

    dromney New Member

    Unfortunately this solution can't work for my situation

    I would love to have had this work for my situation, but my bind named.conf files are different. I have 3 different named.comf file, named.conf - which seems to be a bare bones file that references 3 other files, 1)named.com.options 2) named.conf.default-zones 3)named.conf.local

    I will post the contents of these files. In the named.conf.local file, a pri.wrapyourgun.com files is referenced there, and I will post the contents of this file as well. (this is the site I am trying to get to work)

    None of these files have anything that is exactly like what has already been referenced here.

    the named.conf.local has something almost like what you have talked about, it has a listen-on-v6 line, and I added a " listen on 53 { any; }; " to that file as well with no luck.

    Any help would be greatly appreciated.
    Thanks in advance
     

    Attached Files:

  12. falko

    falko Super Moderator Howtoforge Staff

    dromney, please open a new thread, otherwise it will get too confusing here when I try to help two people...
     
  13. dromney

    dromney New Member

  14. jribeiro

    jribeiro New Member

    Hi Falko!!

    Sorry about the delay and thanks for the replies... I made the changes you said and now I can telnet localip 53 succesfully.

    Named service starts with no errors but I can't still telnet webip 53 (i suppose this is some limitation on the router side) because as you can see on the attached image, port 53 is open on both TCP and UDP!!

    I get some errors on my syslog when I try to access my domain. (this errors can be seen bellow)

    So I'm still unable to connect to domain.

    Thanks once again!!
     

    Attached Files:

  15. jribeiro

    jribeiro New Member

    Sorry!! Actually this is solved!! Thanks Falko
     

Share This Page