LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-10-2008, 09:06 AM   #1
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Rep: Reputation: 15
Unable to accessinternet in Dns forward server


Dear all,

I am running my network behind firewall on suse linux 10.1
For only one machine ( Ex. 192.168.1.100 ). I got full permissions in firewall, and for other machines there is no internet. So what i try to do is to configure a forward dns server in the 192.168.1.100
and from the client i can resolve the public address like ( google, yahoo) but via browser i cant able to access internet. I know that configuring a squid proxy server will do it for me . But i want to know how to solve this .Can some one help in this case.

Thanks
Shan
 
Old 07-11-2008, 03:32 AM   #2
Aegis8
LQ Newbie
 
Registered: Jul 2008
Location: Russian Federation
Distribution: SuSE, Ubuntu, Centos
Posts: 8

Rep: Reputation: 0
If I understand you correctly, your client pc's are blocked by the firewall and only your dns server can access the internet through the firewall. In that case you will have to accept traffic from your client ip's on your firewall. If you don't want to do this you will have to go the proxy route.

Hope this helps
 
Old 07-11-2008, 04:35 AM   #3
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Aegis8 View Post
If I understand you correctly, your client pc's are blocked by the firewall and only your dns server can access the internet through the firewall. In that case you will have to accept traffic from your client ip's on your firewall. If you don't want to do this you will have to go the proxy route.

Hope this helps
What you are saying is correct but when i query for a nslookup from the client to a public site via forward dns i am getting response so why query from the firefox is not resolving
 
Old 07-11-2008, 05:48 AM   #4
Aegis8
LQ Newbie
 
Registered: Jul 2008
Location: Russian Federation
Distribution: SuSE, Ubuntu, Centos
Posts: 8

Rep: Reputation: 0
If your client pc's are getting their dns query resolved by your dns server then they will resolve the name.

When you run and nslookup which server responds to the query?
 
Old 07-11-2008, 05:56 AM   #5
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Aegis8 View Post
If your client pc's are getting their dns query resolved by your dns server then they will resolve the name.

When you run and nslookup which server responds to the query?
All sites like ( yahoo, google, linuxquestions.org, etc.. )
 
Old 07-11-2008, 06:04 AM   #6
Aegis8
LQ Newbie
 
Registered: Jul 2008
Location: Russian Federation
Distribution: SuSE, Ubuntu, Centos
Posts: 8

Rep: Reputation: 0
Sorry let me clarify a bit.

Here is the result of an nslookup to google.

nslookup www.google.com
Server: My DNS server
Address: My DNS server

Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 66.102.9.104
Name: www.l.google.com
Address: 66.102.9.99
Name: www.l.google.com
Address: 66.102.9.147

The My DNS server is the server that responds to the nslookup query. What does your nslookup result look like?
Which server is your gateway?

Last edited by Aegis8; 07-11-2008 at 06:24 AM. Reason: New question.
 
Old 07-11-2008, 06:43 AM   #7
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Aegis8 View Post
Sorry let me clarify a bit.

Here is the result of an nslookup to google.

nslookup www.google.com
Server: My DNS server
Address: My DNS server

Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 66.102.9.104
Name: www.l.google.com
Address: 66.102.9.99
Name: www.l.google.com
Address: 66.102.9.147

The My DNS server is the server that responds to the nslookup query. What does your nslookup result look like?
Which server is your gateway?

This is the nslookup output from the client machine
MyLinux:~ # nslookup google.com
Server: 192.168.1.100
Address: 192.168.1.100#53

Non-authoritative answer:
Name: google.com
Address: 64.233.187.99
Name: google.com
Address: 72.14.207.99
Name: google.com
Address: 64.233.167.99

The dns server is the ip is my local intranet server ip only.
 
Old 07-11-2008, 06:52 AM   #8
Aegis8
LQ Newbie
 
Registered: Jul 2008
Location: Russian Federation
Distribution: SuSE, Ubuntu, Centos
Posts: 8

Rep: Reputation: 0
So what is happening now is your client is getting it's DNS information from 192.168.1.100 and google resolves. But your firewall only allows your 192.168.1.100 IP access to the interent, your client has no way of getting to the internet and so caanot get to the google webpage.

So you will have to add a rule to accept from source ip range of 192.168.1.0/24, this will allow your client to get to the internet. You will also have to specify your firewall as the default gateway for your client.

If you don't want to change your firewall, then you could try setting 192.168.1.100 as the default gateway and activate ip forwarding on that eth interface. This one might work.

And lastly you could set up a proxy server.
 
  


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
How to setup forward only DNS Server in FC6? 2buck56 Linux - Server 2 12-11-2007 11:05 AM
unable to ping my dns server! justsimran Linux - General 7 03-23-2007 11:50 AM
unable to install caching rpm for DNS(server) justsimran Linux - General 1 03-21-2007 01:10 PM
Forward DNS lookup to different DNS Servers ghight Linux - Networking 2 09-28-2006 05:54 AM
forward and reverse DNS don't match Neoslak Slackware 0 12-14-2003 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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