LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-03-2010, 03:15 PM   #16
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled

How are you using firefox? Are you using it only with IP addresses, no host names?
 
Old 03-04-2010, 06:18 AM   #17
dheerajsuthar2008
Member
 
Registered: May 2008
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kakaka View Post
How are you using firefox? Are you using it only with IP addresses, no host names?
Thanks for reply.
No I use host names only in firefox (also lynx). This is what I feel strange how firefox is able to resolve those host names??? How can I do the same.
 
Old 03-04-2010, 06:23 AM   #18
dheerajsuthar2008
Member
 
Registered: May 2008
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nimnull22 View Post
Ok, I have ask you to try to: "ping 208.67.222.222".

Also try to type: "nslookup www.google.com 208.67.222.222"

If you do not receive anything - probably 53 port is closed, and you have to talk to your sysadmin about it.

Also you can try to do next things:
type in address bar on your browser : http://208.69.32.231/, and press enter
Thanks for reply.
Both ping and given nslookup failed.
Output:
Code:
sherkhan@bt:~$ nslookup www.google.com 208.67.222.222
;; connection timed out; no servers could be reached
sherkhan@bt:~$ ping 208.67.222.222
PING 208.67.222.222 (208.67.222.222) 56(84) bytes of data.
... and it just hanged there.
and with that url address I landed on google home page.

I also now believe port 53 might be closed. Its tough to ask the admins as they generally don't reveal all these things to students.
Are there any http equivalents of these commands. How does my browser resolve hosts then(firefox and lynx).
 
Old 03-04-2010, 09:56 AM   #19
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
There is only one way, how you can resolve IP is set up your own DNS - BIND. You can download database of domain names and IP. But, if you start to use internet, your admins easily can close the rest of it.

Also you can read about socks proxy - they also can resolve IP on server side. But not many browsers can use them.

You can also make a tunnel to someone with unlimited internet, and use its internet.

But easiest way is ti type on browser address bar:
Code:
http://216.92.207.177/toolbox/smart-whois.php
And resolve domain there.


The problem is when admins have hidden DNS server, they knew what they are doing, idea was to prevent people to use internet.

Last edited by nimnull22; 03-04-2010 at 10:15 AM.
 
Old 03-04-2010, 12:25 PM   #20
dheerajsuthar2008
Member
 
Registered: May 2008
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nimnull22 View Post
There is only one way, how you can resolve IP is set up your own DNS - BIND. You can download database of domain names and IP. But, if you start to use internet, your admins easily can close the rest of it.

Also you can read about socks proxy - they also can resolve IP on server side. But not many browsers can use them.

You can also make a tunnel to someone with unlimited internet, and use its internet.

But easiest way is ti type on browser address bar:
Code:
http://216.92.207.177/toolbox/smart-whois.php
And resolve domain there.


The problem is when admins have hidden DNS server, they knew what they are doing, idea was to prevent people to use internet.
Thanks for reply.
Yes, I also now believe only way possible is to use some web dns query service.
Any how thanks to all great guys here for their kind replies. Only one questions remains:

Quote:
How does the applications like lynx,firefox, wget and curl recognize host(or resolve hosts.).
Kindly do close this thread after answering this question. I don't want to trouble you people any more. You have been very kind to a newbie like me.
Thanks again.
 
Old 03-04-2010, 02:50 PM   #21
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
There's an option in firefox network configuration that, when selected, tells firefox to use the proxy server for all protocols. In principle, firefox can also try to get proper configuration from a proxy server automatically. Who configured firefox?
 
Old 03-04-2010, 10:28 PM   #22
dheerajsuthar2008
Member
 
Registered: May 2008
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kakaka View Post
There's an option in firefox network configuration that, when selected, tells firefox to use the proxy server for all protocols. In principle, firefox can also try to get proper configuration from a proxy server automatically. Who configured firefox?
Thanks for reply!!
I myself configured firefox:
Preferences->Advanced->Network->Settings
I entered the proxy address given by college in the proxy field and selected "Use this for all protocols." So how does firefox use my proxy to resolve host. Can I mimic it with some code.
Latest Update:
Yesterday night tried nc -v google.com 80
It also was not working even with IP address of google and other many sites. However was working on LAN computers.
OUTPUT:
Google(both host address and ip address):
Code:
sherkhan@bt:~$ nc -v google.com 80
google.com: forward host lookup failed: Unknown host : Connection timed out
sherkhan@bt:~$ nc -v   74.125.43.105 80
74.125.43.105: inverse host lookup failed: Unknown server error : Connection timed out
(UNKNOWN) [74.125.43.105] 80 (www) : Connection refused
However on LAN computers it worked(only some and strange still they appears to be some cisco machines!!!):
Code:
sherkhan@bt:~$ nc -v   172.30.104.5 80
172.30.104.5: inverse host lookup failed: Unknown server error : Connection timed out
(UNKNOWN) [172.30.104.5] 80 (www) open
GET HTTP HTTP/1.0
HTTP/1.1 400 Bad Request
Date: Mon, 01 Mar 1993 20:55:34 GMT
Server: cisco-IOS
Accept-Ranges: none

400 Bad Request
Does netcat also suffers from the same problem. But with ip-address give(as in case of google.com) why it fails as it need not do any host lookup??
 
Old 03-05-2010, 12:19 AM   #23
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Well if the machines on the LAN to which you referred have some way of using the proxy, you might want to find out if there's something they have, that you should have.

Also, now that we know you're not using IP addresses in firefox, there may be some other possibilities as well.

I don't know that I've ever had to worry about it myself. so I never used them. But I have some vague recollection about various things for working with a proxy. There was something with some name like proxy client that I believe was a substitute for some standard libraries that ultimately would make system calls. The substitute libraries instead made calls to some facility that was installed to handle various things through the proxy. There was also something with a name like proxy chains that I believe ran other commands within it's environment, in which it talked through the proxy. I almost thought I had heard of something designed for use with squid. You can check at source forge and places of that type for "projects" that might do what you want. I believe some of these things were years ago, don't know if they work on newer versions of Linux, specifically RHEL, or if they are still being maintained, if there's anything newer, etc. But it's probably worth a look...
 
Old 03-07-2010, 03:43 AM   #24
dheerajsuthar2008
Member
 
Registered: May 2008
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kakaka View Post
Well if the machines on the LAN to which you referred have some way of using the proxy, you might want to find out if there's something they have, that you should have.

Also, now that we know you're not using IP addresses in firefox, there may be some other possibilities as well.

I don't know that I've ever had to worry about it myself. so I never used them. But I have some vague recollection about various things for working with a proxy. There was something with some name like proxy client that I believe was a substitute for some standard libraries that ultimately would make system calls. The substitute libraries instead made calls to some facility that was installed to handle various things through the proxy. There was also something with a name like proxy chains that I believe ran other commands within it's environment, in which it talked through the proxy. I almost thought I had heard of something designed for use with squid. You can check at source forge and places of that type for "projects" that might do what you want. I believe some of these things were years ago, don't know if they work on newer versions of Linux, specifically RHEL, or if they are still being maintained, if there's anything newer, etc. But it's probably worth a look...
Thanks for reply!
I am checking for such libraries. One alternative I found was that of Curl library. Another one in python(although not much clear about it) provide library functions for dns queries and also take care of proxy. So it seems i will have to write my own host command :-0 well hope it will be a exciting adventure.
Thanks to all the kind people for their sincere reply. If i find any breakthrough I shall share here.
 
Old 03-07-2010, 06:05 AM   #25
devwatchdog
Member
 
Registered: Jan 2010
Posts: 202

Rep: Reputation: 47
From what I can understand from the various bits of information on the network being discussed here, the intention of the network administrators there was to prevent direct internet access via anything short of the proxy server. If you can't send DNS requests out whatever gateway being utilized there, you're probably not going to have direct access to anything else, either. There's a good chance that whatever gateway you have assigned via your DHCP lease isn't the gateway being used by the proxy server you use for internet access as well.

After going through the process of setting up something to resolve DNS requests via the proxy server there, you're still more than likely not going to be able to send whatever traffic you generate due to the fact that it appears the security devices in place don't allow the traffic and/or you don't know what the actual internet access device is.

Let us know when the network admins there disable your network access. That's what I've done in the past with those that do things on the network they shouldn't be doing. That forces the offending party to inquire about their network access being broken.
 
Old 03-07-2010, 04:09 PM   #26
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Hi dheerajsuthar2008,

devwatchdog has expressed a valid principle. I too have had to shut people down on a network when they were doing something that I felt they shouldn't be doing.

I don't know what your overall goal is. I've been functioning on the basis that if the proxy allowed you to resolve DNS via firefox, for general Internet sites, that you were allowed to use the internet on an *outgoing* basis. That perhaps the admins just wanted to prevent people from running servers which could accept *incoming* connections, and result in a lot of extra traffic over their internal network. If the admins just didn't want you to set up servers, or some such, and you just wanted to learn by figuring out how firefox does DNS via the proxy, to me it seemed like no big deal. I also wondered if perhaps there was some instructions for setting things up, that you just hadn't followed. Maybe you just took a guess at how do set things up yourself. :-)

If instead the situation is that you are only able to get to web sites within a college campus, and not outside on the Internet in general, or if your goal is to do a great deal more than just poke around with DNS, if instead you are trying to do all sorts of things the admins probably don't want you to do, you might want to consider stopping.
 
Old 03-08-2010, 02:45 PM   #27
dheerajsuthar2008
Member
 
Registered: May 2008
Posts: 48

Original Poster
Rep: Reputation: 15
Smile

My sincere thanks to all those kind repliers!
Although problem still persists and appears to be insolvable due to great restrictions of my net admin, I learnt a great deal from your replies. My sincere thanks to all of you once again. Moderators can kindly close this thread.
 
  


Reply



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
Bind9 ,host does reslove a dns name but ping says unknown host Byenary Linux - Networking 10 01-12-2011 01:33 AM
ping command not working in tcl/tk? Passions Programming 2 02-17-2010 05:24 PM
[SOLVED] ping / nslookup / host not working j66788 Linux - Networking 5 10-07-2009 05:52 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM

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

All times are GMT -5. The time now is 04:38 PM.

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