LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-04-2005, 07:47 PM   #1
PeterLarsson
LQ Newbie
 
Registered: Aug 2005
Location: Frillesås
Distribution: KnoppMyth
Posts: 1

Rep: Reputation: 0
Unhappy 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.


Regards, Peter Larsson!
 
Old 08-05-2005, 12:37 AM   #2
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Can't ping hostnames Nox UK Linux - Networking 3 04-19-2005 03:07 PM
Client (windows) can't ping hostnames HKDude Linux - Networking 5 05-12-2004 06:14 PM
Can ping MyDNS1.FQDN and IPs but no other hostnames? leecason Linux - Networking 3 10-06-2003 03:01 PM
cannot ping hostnames joadoor Linux - Networking 21 06-10-2003 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration