dig command

Discussion in 'Installation/Configuration' started by Alertshot, Sep 22, 2010.

  1. Alertshot

    Alertshot New Member

    i changed named.conf to listen any and query any

    Hi falko,
    I had changed named.conf to listen any and query any can please verify whether my changes are correct,
    [root@zambahotels ~]# cat /etc/named.conf
    //
    // 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; any; };
    listen-on-v6 port 53 { ::1; any; };
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query { localhost; any; };
    recursion yes;

    dnssec-enable yes;
    dnssec-validation yes;
    dnssec-lookaside auto;

    /* Path to ISC DLV key */
    bindkeys-file "/etc/named.iscdlv.key";
    };

    logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic;
    };
    };

    zone "." IN {
    type hint;
    file "named.ca";
    };

    include "/etc/named.rfc1912.zones";

    include "/etc/named.conf.local";

    now dig @ns1.zambahotels.com any harmoneehotels.com is ok and the output as follows,
    [root@zambahotels ~]# dig @ns1.zambahotels.com any harmoneehotels.com

    ; <<>> DiG 9.7.1-P2-RedHat-9.7.1-2.P2.fc13 <<>> @ns1.zambahotels.com any harmoneehotels.com
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3645
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;harmoneehotels.com. IN ANY

    ;; ANSWER SECTION:
    harmoneehotels.com. 86400 IN SOA ns1.zambahotels.com. info.harmoneehotels.com. 2010092503 28800 7200 604800 86400
    harmoneehotels.com. 86400 IN A 203.117.114.181
    harmoneehotels.com. 86400 IN MX 10 mail.harmoneehotels.com.
    harmoneehotels.com. 86400 IN NS ns1.zambahotels.com.

    ;; ADDITIONAL SECTION:
    mail.harmoneehotels.com. 86400 IN A 203.117.114.181

    ;; Query time: 0 msec
    ;; SERVER: 203.117.114.179#53(203.117.114.179)
    ;; WHEN: Tue Sep 28 21:46:38 2010
    ;; MSG SIZE rcvd: 160

    but when try to view the www.harmoneehotels.com using a web browser it states that "Unable to connect
    Firefox can't establish a connection to the server at www.harmoneehotels.com. "

    so i try to restart my httpd and the following are the output for /etc/init.d/httpd restart
    [root@zambahotels ~]# /etc/init.d/httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: [Tue Sep 28 21:49:56 2010] [warn] NameVirtualHost 203.117.114.181:443 has no VirtualHosts
    [Tue Sep 28 21:49:56 2010] [warn] NameVirtualHost 203.117.114.179:80 has no VirtualHosts
    [Tue Sep 28 21:49:56 2010] [warn] NameVirtualHost 203.117.114.179:443 has no VirtualHosts
    [Tue Sep 28 21:49:56 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
    [ OK ]
    so help me dude!!!
     
  2. falko

    falko Super Moderator ISPConfig Developer

    I can connect without problems.
     

Share This Page