dns server error

Discussion in 'General' started by Hellbound, Aug 2, 2008.

  1. Hellbound

    Hellbound New Member

    Hi guys,

    I can't seem to get the dns server right.

    this is what i get:

    Code:
    [root@host2 named]# dig wwww.megamall.ir
    
    ; <<>> DiG 9.5.0b3 <<>> wwww.megamall.ir
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 57237
    ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
    ;; WARNING: recursion requested but not available
    
    ;; QUESTION SECTION:
    ;wwww.megamall.ir.              IN      A
    
    ;; Query time: 1174 msec
    ;; SERVER: 203.121.16.85#53(203.121.16.85)
    ;; WHEN: Sat Aug  2 21:37:33 2008
    ;; MSG SIZE  rcvd: 34
    
    [root@host2 named]#
    
    
    
    
    
    
    
    
    [root@host2 named]# cat pri.megamall.ir
    $TTL        86400
    @       IN      SOA     host2.persiasys.com. admin.megamall.ir. (
                            2008080203       ; serial, todays date + todays serial #
                            28800              ; refresh, seconds
                            7200              ; retry, seconds
                            604800              ; expire, seconds
                            86400 )            ; minimum, seconds
    ;
                    NS      host2.persiasys.com.              ; Inet Address of name server 1
                    NS      host2.persiasys.com.              ; Inet Address of name server 2
    ;
    
      MX      10 host2.persiasys.com.
    
    megamall.ir.      A        211.25.130.94
    megamall.ir.       A       211.25.130.94
    
    www       CNAME  megamall.ir.
    
    megamall.ir.       TXT  "v=spf1 a mx ptr ~all"
    
    ;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
    
    
    
    
    
    [root@host2 named]#
    
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What does the following command return:

    dig @localhost wwww.megamall.ir
     
  3. Hellbound

    Hellbound New Member

    Hi,

    Thanks for the reply.


    [/code]
    [root@host2 ~]# dig @localhost www.megamall.ir

    ; <<>> DiG 9.5.0b3 <<>> @localhost www.megamall.ir
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50826
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;www.megamall.ir. IN A

    ;; ANSWER SECTION:
    www.megamall.ir. 86400 IN CNAME megamall.ir.
    megamall.ir. 86400 IN A 211.25.130.94

    ;; AUTHORITY SECTION:
    megamall.ir. 86400 IN NS host2.persiasys.com.

    ;; ADDITIONAL SECTION:
    host2.persiasys.com. 86400 IN A 211.25.130.94

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Aug 3 00:26:07 2008
    ;; MSG SIZE rcvd: 112

    [root@host2 ~]#
    [/code]
     
  4. falko

    falko Super Moderator Howtoforge Staff

    There's a "w" too much in your hostname:
    Code:
    dig www[B][COLOR="Red"]w[/COLOR][/B].megamall.ir
    I guess you mean
    Code:
    dig www.megamall.ir
     
  5. Hellbound

    Hellbound New Member

    sorry

    that was a typo...

    Code:
    [root@host2 ~]# .ig @localhost www.megamall.ir
    -bash: .ig: command not found
    [root@host2 ~]# dig @localhost www.megamall.ir
    
    ; <<>> DiG 9.5.0b3 <<>> @localhost www.megamall.ir
    ; (1 server found)
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26397
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;www.megamall.ir.               IN      A
    
    ;; ANSWER SECTION:
    www.megamall.ir.        86400   IN      CNAME   megamall.ir.
    megamall.ir.            86400   IN      A       211.25.130.94
    
    ;; AUTHORITY SECTION:
    megamall.ir.            86400   IN      NS      host2.persiasys.com.
    
    ;; ADDITIONAL SECTION:
    host2.persiasys.com.    86400   IN      A       211.25.130.94
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sun Aug  3 22:15:06 2008
    ;; MSG SIZE  rcvd: 112
    
    [root@host2 ~]# dig www.megamall.ir
    
    ; <<>> DiG 9.5.0b3 <<>> www.megamall.ir
    ;; global options:  printcmd
    ;; connection timed out; no servers could be reached
    [root@host2 ~]#
    
     
  6. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    dig ns megamall.ir
    ?
     
  7. Hellbound

    Hellbound New Member

    Code:
    [root@host2 ~]# dig ns megamall.ir
    
    ; <<>> DiG 9.5.0b3 <<>> ns megamall.ir
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20180
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;megamall.ir.                   IN      NS
    
    ;; ANSWER SECTION:
    megamall.ir.            86400   IN      NS      host2.persiasys.com.
    
    ;; Query time: 468 msec
    ;; SERVER: 203.121.16.85#53(203.121.16.85)
    ;; WHEN: Mon Aug  4 16:39:39 2008
    ;; MSG SIZE  rcvd: 62
    
    [root@host2 ~]#
    
     
  8. falko

    falko Super Moderator Howtoforge Staff

    It's working for me:

    Code:
    mh1:~# dig www.megamall.ir
    
    ; <<>> DiG 9.3.4 <<>> www.megamall.ir
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52033
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;www.megamall.ir.               IN      A
    
    ;; ANSWER SECTION:
    www.megamall.ir.        86400   IN      CNAME   megamall.ir.
    megamall.ir.            86400   IN      A       211.25.130.94
    
    ;; Query time: 767 msec
    ;; SERVER: 213.191.92.84#53(213.191.92.84)
    ;; WHEN: Tue Aug  5 15:00:15 2008
    ;; MSG SIZE  rcvd: 63
    
    mh1:~#
     

Share This Page