Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page Strange local ping problem
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 09-19-2007   #1 (permalink)
StarGhost
Just Joined!
 
Join Date: Nov 2006
Posts: 13
Strange local ping problem

Hi,

I've installed Debian 4.0 on my new server, and it arose a strange problem:

I could resolve and ping internet name successfully. However, I could only resolve local hosts, but when I try to ping them (something like pc1.univ.local), it indicated unknown host.

I went further by dumping with tcpdump, and surprisingly, when pinging local hosts, the ping program didn't even query the DNS server for name resolution at all.

This happens only to Debian, but for other such as Redhat, Fedora, Windows, etc. it's still fine.

Very much appreciate for an idea on what is happening.

SG.
StarGhost is offline   Reply With Quote
Old 09-20-2007   #2 (permalink)
StarGhost
Just Joined!
 
Join Date: Nov 2006
Posts: 13
And there is one phenomenon that I have just recognized:

Everytime I tried to ping a host name which ended up with .local then the ping program does not query the dns server for name resolution, but just printed out "unknown host".

Is this some kind of bug? Or has it been designed to function that way? And this happens only in Debian. Anyone, please try and give an idea.

SG.
StarGhost is offline   Reply With Quote
Old 09-20-2007   #3 (permalink)
vijay_kernel
Just Joined!
 
vijay_kernel's Avatar
 
Join Date: Apr 2007
Posts: 77
Hi,

I understood your question as " you are not able to ping to the localhost",
If that is the case , try this ...

Open the file

# vi /etc/hosts

Add

<IP address> localhost <hostname>

save and close the file, try pinging now this time it should work.
__________________
-Vijay.

" Linux users are better Lovers "
vijay_kernel is offline   Reply With Quote
Old 01-24-2008   #4 (permalink)
collie
Just Joined!
 
Join Date: Jan 2008
Posts: 1
Stange behaviour with .local TLD

Hi there,

did you come to a solution to this?
I just experience the same trouble - would be nice to rid of it!

TX!
Collie
collie is offline   Reply With Quote
Old 01-24-2008   #5 (permalink)
StarGhost
Just Joined!
 
Join Date: Nov 2006
Posts: 13
Quote:
Originally Posted by collie View Post
Hi there,

did you come to a solution to this?
I just experience the same trouble - would be nice to rid of it!

TX!
Collie
No, I didn't find the solution, and changed to Fedora. But I guess that is the way Debian behave, and there shouldn't be any problem with that. Otherwise, Debian works just fine for all you need.

If you want to confirm, try the ping source code. If you don't like it, just change to other distribution.

Regards,

SG.
StarGhost is offline   Reply With Quote
Old 01-24-2008   #6 (permalink)
coopstah13
Linux Enthusiast
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: MA, USA
Posts: 531
edit /etc/resolv.conf to search your domain

search localdomain
nameserver x.x.x.x
nameserver y.y.y.y

etc. beware though every time you restart networking this file gets overwritten, might wanna use a chattr +i on it.
coopstah13 is offline   Reply With Quote
Old 01-24-2008   #7 (permalink)
wowbag1
Linux Newbie
 
Join Date: Jan 2008
Location: UK
Posts: 169
Hi I found this regarding Debian running with selinux and ping.
The link is:- SELinux/Setup - Debian Wiki

These additional permissions that need to be fulfilled will of course deny many things that you are used to.

For example, a regular user (depending on the policy) might not be able to do a "ping", unless you set the "user_ping" boolean.

But in many cases, there won't be a simple boolean to set - in some cases, a different behaviour is actually expected.
end quote.

Unfortunatley I do not know enough about debian or selinux to comment on whether this could be related to it but maybe it is worth considering.
wowbag1 is offline   Reply With Quote
Old 04-14-2008   #8 (permalink)
mawheadon
Just Joined!
 
Join Date: Apr 2008
Posts: 2
Hello,

I have noticed a similar problem in OpenSuse 10.3. Originally I just thought it was me, but I have come across it on several PCs now. This thread leads me to think there is a problem or some kind of configuration trap. We have a Windows 2003 server at work, and when that was installed we decided to adopt a naming convention for our internal domain of pacsol.local. I think the '.local' is a kind of default for Microsoft. That may be why this problem has come to light. I have done some nslookups and pings on my PC (openSuse 10.3) with the following results:

wheadom@pcmwc521:~> nslookup
> gbpslase
Server: 10.1.2.5
Address: 10.1.2.5#53

Name: gbpslase.pacsol.local
Address: 10.1.2.5
> gbpslase.pacsol.local
Server: 10.1.2.5
Address: 10.1.2.5#53

Name: gbpslase.pacsol.local
Address: 10.1.2.5
> exit

wheadom@pcmwc521:~> ping gbpslase
PING gbpslase.pacsol.local (10.1.2.5) 56(84) bytes of data.
64 bytes from GBPSLASE.PACSOL.LOCAL (10.1.2.5): icmp_seq=1 ttl=64 time=0.367 ms
64 bytes from GBPSLASE.PACSOL.LOCAL (10.1.2.5): icmp_seq=2 ttl=64 time=0.419 ms

--- gbpslase.pacsol.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.367/0.393/0.419/0.026 ms
wheadom@pcmwc521:~> ping gbpslase.pacsol.local

wheadom@pcmwc521:~>

As you can see, nslookup can find our AS/400, gbpslase and gbpslase.pacsol.local. However, only the short name gbpslase can be pinged, gbpslase.pacsol.local cannot be pinged.

The major pain is that our intranet uses gbpslase.pacsol.local. So I have problems using our intranet.

MAW.
mawheadon is offline   Reply With Quote
Old 04-15-2008   #9 (permalink)
mawheadon
Just Joined!
 
Join Date: Apr 2008
Posts: 2
It works fine with OpenSuse 10.2

I have another PC on OpenSuse 10.2 and it works fine. I can ping gbpslase and gbpslase.pacsol.local without any problems. so it looks like 10.3 is the problem, or perhaps a more recent DNS resolver package that many/some of the distributions use.

MAW.
mawheadon is offline   Reply With Quote
Old 05-13-2008   #10 (permalink)
JaseyWasey
Just Joined!
 
Join Date: May 2008
Posts: 1
Hi all,

I also have this problem on Ubuntu 8.04, I've tested on a Debian Etch, and a suse 10.3 and the problem is on those too

however an older suse 10.2 box works fine.

the problem is pinging a domain that ends in "local" which Is quite annoying because it's quite widely used too.

anyone found a solution to this issue yet?

Jason
JaseyWasey is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
strange ext2fs problem abb The Linux Kernel 0 09-01-2006 05:21 PM
Strange problem with .rpm hajime Redhat / Fedora Linux Help 1 08-25-2006 07:57 PM
A strange problem with graphics card neusun001 SuSE Linux Help 2 02-23-2006 07:03 PM
strange problem after kernel update sharonenoch The Linux Kernel 1 02-21-2006 08:49 AM
Strange Modem/Dial-Up Problem mebrahim Linux Networking 0 11-21-2005 05:46 PM


All times are GMT. The time now is 10:31 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0