LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-18-2009, 01:41 PM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
ping: unknown host www.google.com (wireless problem)


The subject problem often happens (wireless, ifup method), and then I open a konsole, and run:

/etc/rc.d/network restart

and dns resolution works again.

Why does not it work this way (being called from a desktop shortcut)?:
xdg-su -c "/etc/rc.d/network restart"

If I run network restart by xdg-su, then dns resolution only works in the xdg-su window, and nowhere else. Should I export some environment variables, maybe? Which ones?

P.S.
Why do I have to restart the network from time to time to keep it alive?
If the network is idle for some time, or a single, big file is downloaded, the wireless link tends to break after some minutes. But, when I download a hundred thousand small files for days, the network stays alive for days. Why?

Last edited by J_Szucs; 11-18-2009 at 02:06 PM.
 
Old 11-18-2009, 03:24 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,544

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
Are you connected to a router that has a choice for smart connect or something like that?

Maybe cause of this?

xdg-su provides a graphical dialog that prompts the user for a password to run command as user or as root if no user was specified.

xdg-su is for use inside a desktop session only.
 
Old 11-18-2009, 03:44 PM   #3
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
"If I run network restart by xdg-su, then dns resolution only works in the xdg-su window, and nowhere else."

The above is the main problem.
It means that if xdg-su starts "network restart", followed by a ping, then that ping will be OK; name resolution works.

But: if I ping in other konsole windows simultaneously, or subsequently, those pings will not work: "unknown hostname". Why?

Last edited by J_Szucs; 11-18-2009 at 03:48 PM.
 
  


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
ping: unknown host www.google.com tcma Linux - Networking 7 03-02-2012 11:47 PM
ping www.google.ca fine, www.google.com NOT!!!! DropSig Linux - Networking 1 01-19-2009 10:29 PM
FC6 ping on terminal works with www.google.com, not with http://www.google.com pxumsgdxpcvjm Linux - Networking 4 12-27-2006 03:36 PM
ping: unknown host www.google.com juanjavier_xxx Debian 8 01-02-2006 01:47 PM
Resolver problem: ping localhost.localdomain gives Unknown host rmd Linux - Networking 0 11-06-2003 07:58 AM


All times are GMT -5. The time now is 01:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration