LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ping: unknown host www.google.com (wireless problem) (https://www.linuxquestions.org/questions/linux-software-2/ping-unknown-host-www-google-com-wireless-problem-770017/)

J_Szucs 11-18-2009 01:41 PM

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?

jefro 11-18-2009 03:24 PM

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.

J_Szucs 11-18-2009 03:44 PM

"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?


All times are GMT -5. The time now is 10:26 AM.