LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot ping outside hostnames (https://www.linuxquestions.org/questions/linux-networking-3/cannot-ping-outside-hostnames-350079/)

PeterLarsson 08-04-2005 07:47 PM

Cannot ping outside hostnames
 
I'm trying to set networking up on my debian-system.

The thing is that I can ping all IP-numbers; both on the LAN and on the internet, but hostnames does not work, (as long as they aren't in /etc/hosts)

I have set up my /etc/resolv.conf as it should be:
---
# Insert nameservers here
nameserver 192.168.0.1
---

ifconfig gives me the following output:
==========================
eth0 Link encap:Ethernet HWaddr 00:00:94:A9:33:77
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:421 errors:1 dropped:0 overruns:0 frame:0
TX packets:293 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38900 (37.9 KiB) TX bytes:38135 (37.2 KiB)
Interrupt:11 Base address:0xe800

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:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1108 (1.0 KiB) TX bytes:1108 (1.0 KiB)

I hope someone can help me here, I'm going nuts after 5 hours of searching on google.
:confused:

Regards, Peter Larsson!

roopunix 08-05-2005 12:37 AM

ok you have specified your name server as 192.168.0.1
so as you have said you can't ping with the hostname. so have you checked your nameserver.It should contain all your hostname you are trying to ping. for example

host1.example.com IN A 192.168.0.x
host2.example.com IN A 192.168.0.y
and like that.

it should then get resolved because you have pointed your name server to 192.168.0.1.


All times are GMT -5. The time now is 04:23 AM.