DNS/Gateway issue.

Discussion in 'Server Operation' started by J4zen, Sep 16, 2007.

  1. J4zen

    J4zen New Member

    Hi there,

    Im running on a fedora 7 distro and am by far, no expert.
    After installing Fedora i find myself unable to ping any hosts outside of my own local network.
    However.. an nslookup does show it resolves to an IP just fine.

    It started by a "fedora = connect: Network is unreachable" message when pinging, it turned out that my 2003server didnt send out a gateway adress in dhcp(which is now fixed).


    Heres the output of my nslookup:
    Code:
    [root@localhost ~]# nslookup
    > google.com
    Server:         192.168.1.100
    Address:        192.168.1.100#53
    
    Non-authoritative answer:
    Name:   google.com
    Address: 64.233.167.99
    Name:   google.com
    Address: 72.14.207.99
    Name:   google.com
    Address: 64.233.187.99
    
    My local network is setup as follows:
    Gateway: 192.168.1.1 (router which was unable to provide fedora with DNS service)
    DNS: 192.168.1.100 (Server2003, setup to provide a DNS service and forward it to 192.168.1.1)
    Fedora IP: Via DHCP, 192.168.1.10.

    Fedora server is configured to recieve DHCP(static lease) from Server2003, Server2003 will then forward all DNS-service requests to my router(192.168.1.1).

    Heres the output from netstat -nr:
    Code:
    [root@localhost ~]# netstat -nr
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
    169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
    0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
    
    And lastly, my ifconfig output:
    Code:
    [root@localhost ~]# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:19:DB:CB:5F:11
              inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::219:dbff:fecb:5f11/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2751 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3062 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:259420 (253.3 KiB)  TX bytes:471590 (460.5 KiB)
              Interrupt:21 Base address:0x800
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:60 errors:0 dropped:0 overruns:0 frame:0
              TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:4776 (4.6 KiB)  TX bytes:4776 (4.6 KiB)
    
    Does anyone have any IDEA why i AM able to resolve ip's, but unable to ping or wget/yum?

    Thanks in advance, if you need further info.. please tell me :D

    Regards,
    J. van Vierzen
     
    Last edited: Sep 16, 2007
  2. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/resolv.conf? Did you disable SELinux? What's the otput of
    Code:
    iptables -L
    ?
     
  3. J4zen

    J4zen New Member

    Resolv.conf:
    Code:
    
    nameserver 192.168.1.100
    
    IPTables -L
    Code:
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Yes SELinux and the firewall are disabled.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Try
    Code:
    nameserver 145.253.2.75
    nameserver 193.174.32.18
    in /etc/resolv.conf instead.
     
  5. J4zen

    J4zen New Member

    Tried it , didnt work.. not even NSLookup works now

    :
    Code:
    [root@fedora ~]# nslookup
    > google.com
    ;; connection timed out; no servers could be reached
    > www.google.com
    ;; connection timed out; no servers could be reached
    
    Any idea's?

    Thanks for your time :)
     
  6. falko

    falko Super Moderator Howtoforge Staff

    This sounds like a firewall issue with your router. Try to modify your router's firewall.
     
  7. J4zen

    J4zen New Member

    Right on, i purchased a new router today as the previous one didnt allow the firewall to be disabled withuot turning the NAT service off as well.

    Worked as soon as i plugged the network cable in.

    Thanks for your support!
     

Share This Page