dig @my-server-ip mydomain.com works from inside, not from outside?

Discussion in 'Server Operation' started by x4954, Jan 15, 2012.

  1. x4954

    x4954 New Member


    My server has 2 ips: x.x.x.73 and x.x.x.248. I can access my site via these ips, using Web browser.

    {Now, from a centos machine (not my server), using terminal}
    If I:

    dig @x.x.x.73 mydomain.com
    dig @x.x.x.248 mydomain.com

    I get the result:
    Connection timed out; no server could be reached.

    Could somebody please tell me how to fix it? Thank you.


    More information:

    If I log in to my server using ssh and do:
    dig @x.x.x.73 mydomain.com
    dig @x.x.x.248 mydomain.com

    I can see my zone shown as expected:

    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5_7.1 <<>> @x.x.x.73 mydomain.com
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12757
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2

    ;mydomain.com. IN A

    mydomain.com. 38400 IN A x.x.x.73
    mydomain.com. 38400 IN A x.x.x.248

    mydomain.com. 38400 IN NS ns2.mydomain.com.
    mydomain.com. 38400 IN NS ns1.mydomain.com.

    ns1.mydomain.com. 38400 IN A x.x.x.73
    ns2.mydomain.com. 38400 IN A x.x.x.248

    ;; Query time: 20 msec
    ;; SERVER: x.x.x.73#53(x.x.x.73)
    ;; WHEN: Sun Jan 15 11:46:30 2012
    ;; MSG SIZE rcvd: 129


    -BIND version 9.3.6, Centos 5.
    -Logging to my server using ssh, do a "dig google.com" also shows expected results.
    Last edited: Jan 15, 2012
  2. pititis

    pititis Member


    are you running a dns server in these ips?If yes check if tcp and udp port 53 are open.

  3. x4954

    x4954 New Member


    Yes, those ips are assigned to my vps/dns server.

    It is my hosting/vps provider blocked it (udp port). It's fine now.
    Thank you so much for taking your time.

    Best regards. :D

Share This Page