Find the answer to your Linux question:
Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 40
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11



    ; <<>> DiG 9.2.2-P3 <<>>
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached


    ;; Warning: ID mismatch: expected ID 2651, got 9918
    ;; Warning: ID mismatch: expected ID 2651, got 9918

    ; <<>> DiG 9.2.2-P3 <<>>
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached

  2. #12
    Are you running iptables?

    Let's see if a request even makes it out, and a response makes it back.

    dig @

    Let's see if BIND was able to cache anything in the google query:

    dig +norec any

  3. #13
    dig @

    ; <<>> DiG 9.2.2-P3 <<>> @
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached

    dig +norec any

    ; <<>> DiG 9.2.2-P3 <<>> +norec any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47804
    ;; flags: qr ra; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0

    ; IN ANY

    . 3600000 IN NS B.ROOT-SERVERS.NET.
    . 3600000 IN NS C.ROOT-SERVERS.NET.
    . 3600000 IN NS D.ROOT-SERVERS.NET.
    . 3600000 IN NS E.ROOT-SERVERS.NET.
    . 3600000 IN NS F.ROOT-SERVERS.NET.
    . 3600000 IN NS G.ROOT-SERVERS.NET.
    . 3600000 IN NS H.ROOT-SERVERS.NET.
    . 3600000 IN NS I.ROOT-SERVERS.NET.
    . 3600000 IN NS J.ROOT-SERVERS.NET.
    . 3600000 IN NS K.ROOT-SERVERS.NET.
    . 3600000 IN NS L.ROOT-SERVERS.NET.
    . 3600000 IN NS M.ROOT-SERVERS.NET.
    . 3600000 IN NS A.ROOT-SERVERS.NET.

    ;; Query time: 71 msec
    ;; SERVER:
    ;; WHEN: Sun Apr 3 03:41:31 2005
    ;; MSG SIZE rcvd: 239

    how do i check wether im using iptables or not????

  4. $spacer_open
  5. #14
    Try these commands:

    service iptables stop
    dig +tcp @

  6. #15
    Linux Newbie
    Join Date
    Dec 2004
    Barrie, Ontario
    Take a step back...

    In your resolv.conf you have:
    which means that your machine is acting as the nameserver for your machine. No wonder you can't resolve anything...

    For a test, use two of my nameservers in your resolv.conf:
    then restart your networking:
    /etc/init.d/network restart
    then try to ping google or yahoo:
    and see what you get...

    If you can resolve names using my nameservers, then you just need to change your nameservers to be those of your ISP and you should be fixed.
    Blog - KB5UMQ - Linux User #272983
    3 Rules:
    1) "It doesn't work..." is simply not useful information.
    2) Don't cross post!
    3) If you are asking for help, start by telling us your distro/os and version.

  7. #16
    The guy can't even send a request to google's name server and get a response. I have doubts that his internet is even working.

    And it may be preferred that he uses BIND to resolve stuff, cause having a local, flushable, cache is faster and more convenient than using offsite dns servers. Shoot, I run BIND on my windows machine rather than use Microsoft's DNS Client service. The guy wants his BIND fixed, and that's what I'm helping him do. It is very common that BIND acts as a name server for the local machine.

  8. #17


    [root@localhost root]# dig +tcp @
    ;; Connection to for failed: network unreachable.

    [root@localhost root]# ping
    connect: Network is unreachable

    My internet is working just fine....I tried what 'Kode' has written but it is also not working....

  9. #18
    Course it isn't. He's just guessing, but I've had you give me a lot of information which helps figure out the problem without guessing. Now make sure your resolv.conf is back to the original "nameserver" and nothing else. Your internet might be just fine, but your internet related configuration on your linux machine sure isn't. "network unreachable" is not a good thing when pinging an IP address. DNS wasn't even involved there.

    So we move into network configuration. Show me the results of the following commands:


  10. #19

    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0 * U 0 0 0 eth0 * U 0 0 0 lo


    eth0 Link encap:Ethernet HWaddr 00:A1:B0:10:9C:48
    inet addr: Bcast: Mask:
    RX packets:3385 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3997 errors:6 dropped:0 overruns:0 carrier:0
    collisions:760 txqueuelen:1000
    RX bytes:1300553 (1.2 Mb) TX bytes:641796 (626.7 Kb)
    Interrupt:10 Base address:0xb800

    lo Link encap:Local Loopback
    inet addr: Mask:
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1529 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1529 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1124876 (1.0 Mb) TX bytes:1124876 (1.0 Mb)

  11. #20
    You need to setup a default gateway. That would explain the "Network unreachable" errors. Now, I'm no networking genius, but I believe the following command will fix that real quick.

    route add default gw

    Once you do that, execute this command:


    If you got a network unreachable again, I want to see the results for this command:


    If you actually got ping replies, then tell me how everything else is working.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts