LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-20-2006, 08:28 AM   #1
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
DNS faliure!!


Now i have a problem with my linux box. It cannot resolve any address i type in at the prompt with the ping command.
For example:
Code:
Ping www.google.com
replies with:
Code:
unknown host.
Now here is another interesting scenario, i have a similar machine still on linux, my proxy, which is able to resolve the address with the default dns servers provided by our isp.Even more interesting i have a win2k3 machine on the same network which is able to do a similar job.
Is there any network configuration i might have missed out on coz my network entries are just the same ones on the windows machine well...except for the ip addresses?
 
Old 12-20-2006, 08:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
dns server details live in /etc/resolv.conf, e.g. "nameserver 192.168.1.1" for a potential local server.
 
Old 12-20-2006, 08:39 AM   #3
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Original Poster
Rep: Reputation: 32
Now lemme get it straight, would it be appropriate to edit my /etc/resolv.conf file by giving the proxy address? since it is connected to the router?

Or how can i configure it to query the /etc/resolv.conf file of the proxy?
 
Old 12-20-2006, 08:48 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
your proxy server is probably a proxy for http and https requests - not for dns - that then would be a dns relay.
you can either have the dns nameserver bradcasted via your dhcp server, or set it manually by editing the file.

your web-proxy though has nothing to do with it.
 
Old 12-20-2006, 08:52 AM   #5
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Original Poster
Rep: Reputation: 32
kindly take me through the steps coz that was the only way i saw possible to have my pc reoslve its addresess.
Now how can i configure it to perform the above? I have tried it before and it just didnt work. adn what am i supposed to include in the resolve.conf file? just for clarity's sake?
 
Old 12-20-2006, 09:16 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
resolv.conf is for name servers, not proxy servers, the two have next to nothign in common. if you want to use a proxy for webbrowsing, then configure that in your web browser. if you want to be able to direftly resolve addresses of other internet hosts on the machine itself, somethign not required when a proxy is used,. then resolv.conf is of no interest.
 
Old 12-20-2006, 09:21 AM   #7
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Original Poster
Rep: Reputation: 32
Ok ive got the machine to resolve the addresses but now there is no reply from them yet it connected to the network.Would there be a most likely problem to this?
 
Old 12-20-2006, 09:36 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i think the problem is that you don't understand what you want to achieve, and what a proxy is... maybe if you at least try to explain the end goal and what you are currently doing with the other machines that you say are working we can fill in the blanks for ourselves.
 
Old 12-20-2006, 10:21 AM   #9
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Original Poster
Rep: Reputation: 32
acid i definately know what a proxy is otherwise i would be registered as a newbie.dont you agree?
Anyway, i have achieved what i wanted thanks to your enourmous help i really appreciate it.
 
Old 12-20-2006, 01:49 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there are people on this site with 2,000 posts who i know for a fact don't understand what squid does. at all.
 
Old 12-20-2006, 02:18 PM   #11
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
your right... perhaps the admins should raise the 'newbie' status to 80 posts - then you'd be one again... does that then mean you dont know what a proxy is anymore? :-P

if you did understand what a web-proxy does, you would not be wanting to point your dns client to it.
now, drop that 'i need to defend myself against the moderator, because he thinks i am a newbie, which i am clearly not as LQ adds the word member beneath my name, next to each of my posts...' stuff, and provide some more information.

nothing is going to get you any closer to learning, understanding, and achieving your goal than that.

so: tell us exactly what you are trying to do, i.e. post the commands you are using, tell us about your network setup, etc.
 
Old 12-20-2006, 10:22 PM   #12
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Original Poster
Rep: Reputation: 32
Code:
now, drop that 'i need to defend myself against the moderator, because he thinks i am a newbie, which i am clearly not as LQ adds the word member beneath my name, next to each of my posts...' stuff, and provide some more information.
You know i really dont see what the issue here is.If LQ is all about enlightening linux enthusiasts then with all fairness let it be done in a manner that is less condescending.
We arent all good at it and that's why we are in this forum and i think the number of posts shouldnt be used as a bench mark for just " how much you know".
Back to what's important, the reason i brought up my proxy is so that any one in the forum can atleast highlight why it able to perform dns yet my second machine cant and they are under the same subnet.
 
Old 12-21-2006, 01:24 AM   #13
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
i ment no offence - only humor :-P
just would like to highlight acid's post:
Quote:
Originally Posted by acid_kewpie
there are people on this site with 2,000 posts who i know for a fact don't understand what squid does. at all.
then let's get started :-)

give us some information on your proxy server and your 'second machine':
output of 'route -n'
output of 'cat /etc/resolv.conf'
 
Old 12-21-2006, 05:43 AM   #14
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Original Poster
Rep: Reputation: 32
[HTML]Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.20.16.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 172.20.16.1 0.0.0.0 UG 0 0 0 eth0
[/HTML]
Here is my output.

PHP Code:
search 212.49.82.53.localdomain
nameserver 212.49.82.53
nameserver 212.49.70.22
nameserver 212.49.70.23 
Now the 'search' is my proxy and the rest are the dns's from our isp.
 
Old 12-21-2006, 05:48 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, so that search entry is wrong, search is for adding suffixes onto non-fqdn requests, e.g. to add "example.com" if no result is found for "server1" thereby searching for "server1.example.com" automatically. the nameserver entries look fine, but in order to reach them you need to enable a route out to the internet, which would at leat invovle enabled ip forwarding on the squid server if that it the physical link between the two relevant networks. you can see how far you are currently going if you do something like "traceroute -n 212.49.70.23" and i'd expect to not get very far at all...
 
  


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
DNS name resolution faliure immortaltechnique Linux - Networking 14 12-14-2006 09:56 AM
Login Faliure mulberry Debian 3 09-29-2004 11:08 AM
hard drive faliure sadiboyz Linux - Laptop and Netbook 1 07-22-2003 01:00 PM
Mandrake 8.0 - HardDrake Faliure newguy2001 Linux - Newbie 0 05-17-2001 11:44 PM
Mandrake 8.0 - HardDrake Faliure newguy2001 Linux - Software 0 05-17-2001 11:36 PM

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

All times are GMT -5. The time now is 01:53 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