LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-07-2013, 10:50 AM   #16
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Original Poster
Rep: Reputation: 4

Quote:
Originally Posted by unSpawn View Post
Sorry for barging in this late in the thread.


I'd like to point out that AFAIK cached information won't survive a restart of Dnsmasq or the machine it runs on. Pdnsd OTOH does have persistent caching.
I believe that Pdnsd is too hard to configure! Dnsmasq is much easier and the most important TobiSGD has experience on it!

Any idea about my problem?
 
Old 01-07-2013, 11:25 AM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,165
Blog Entries: 54

Rep: Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807
Quote:
Originally Posted by LeoPap View Post
I believe that Pdnsd is too hard to configure!
Heh, I won't argue with those that accept as true that which is not based on anything.


Quote:
Originally Posted by LeoPap View Post
Any idea about my problem?
If you have problems on your non-Linux PC when changing DNS servers then it makes sense to check the log files and run diagnostics (CMD.EXE tools like ipconfig, netsh and nslookup instead of ping) on that machine.
 
Old 01-07-2013, 02:28 PM   #18
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,582
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
Quote:
Originally Posted by unSpawn View Post
I'd like to point out that AFAIK cached information won't survive a restart of Dnsmasq or the machine it runs on. Pdnsd OTOH does have persistent caching.
You are right, I didn't think about that, since I run the caching servers on a machine that runs 24/7 anyways.
I don't know much about Pdnsd, but after a short look at the documentation it seems to be not really difficult to setup and it may be much better for the OP's purpose than dnsmasq.
 
Old 01-07-2013, 02:56 PM   #19
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Original Poster
Rep: Reputation: 4
The server i have install the caching server is 24x7 open, so there is not any problem.
Tobi can you help me with my last problem?

Why my Windows pc, doesn't accept as DNS the ip of the caching dns server?
 
Old 01-07-2013, 03:10 PM   #20
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,582
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
If you have the config file like mine (except of course the interface-name) it should work, if you have your Windows system configured correctly (I use manual configuration on Windows, no DHCP).
 
Old 01-07-2013, 03:53 PM   #21
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Original Poster
Rep: Reputation: 4
The configuration of my windows pc is:

Ip 192.168.1.9
Subnet: 255.255.255.0
Gateway: 192.168.1.1

And when i use for dns the ip of the caching server ( 192.168.1.200 ) I don't have Internet connection on the windows pc.
Although the caching pc, is having Internet connection.

May I ask which Centos version you have? I have heard that 5.8 is more stable than the 6.3 I have.

Also I am using your configurations files.

Leo
 
Old 01-07-2013, 04:34 PM   #22
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,582
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
I am using Debian for this, not CentOS. I somehow don't like RPM distros.
But this shouldn't change anything for the configuration.
May it be possible that you have an active firewall on the server that prevents your Windows machine from connecting to the server?

Last edited by TobiSGD; 01-07-2013 at 04:37 PM.
 
Old 01-07-2013, 04:44 PM   #23
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Original Poster
Rep: Reputation: 4
On the Centos I have the ip tables active. Should I have to open port 53 on iptables?

I am thinking of re-setup the server with Centos 5.8, but I can't find anywhere the minimal version.
 
Old 01-07-2013, 04:45 PM   #24
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Quote:
Originally Posted by LeoPap View Post
And when i use for dns the ip of the caching server ( 192.168.1.200 ) I don't have Internet connection on the windows pc.
According to your previous post, you have dnsmasq listen on the local (loopback) interface:

listen-address=127.0.0.1

This means that only the server itself can connect to it.

You need to change that config to:

listen-address=192.168.1.200

Then other machines on the LAN can connect to it.

You'll also need to change the resolv.conf on the caching server to:

nameserver 192.168.1.200
 
Old 01-07-2013, 04:54 PM   #25
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Original Poster
Rep: Reputation: 4
And what about dns on caching server? Right now I have 127.0.0.1. Should I change it?
You can check my configuration files on post #11 on the previous page of this thread ( my configuration is the same as tobi's)
 
Old 01-07-2013, 05:01 PM   #26
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Quote:
Originally Posted by LeoPap View Post
And what about dns on caching server? Right now I have 127.0.0.1. Should I change it?
You can check my configuration files on post #11 on the previous page of this thread ( my configuration is the same as tobi's)
Yes. On the caching server edit /etc/resolv.conf to:

nameserver 192.168.1.200

Don't forget to restart dnsmasq after changing the config.
 
Old 01-07-2013, 05:09 PM   #27
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Original Poster
Rep: Reputation: 4
Should I change the dns from the system-config-network command as well?

So you are saying that I must change the 127.0.0.1 with 192.168.1.200, on the caching server and on the configuration files right?

Note: the caching server has ip 192.168.1.200
 
Old 01-07-2013, 05:14 PM   #28
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,582
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
Quote:
Originally Posted by sleddog View Post
According to your previous post, you have dnsmasq listen on the local (loopback) interface:

listen-address=127.0.0.1

This means that only the server itself can connect to it.

You need to change that config to:

listen-address=192.168.1.200

Then other machines on the LAN can connect to it.

You'll also need to change the resolv.conf on the caching server to:

nameserver 192.168.1.200
127.0.0.1 is OK, as long as you also use the interface option.
It is also OK to use 127.0.0.1 in the resolv.conf file, works fine here.

Quote:
Originally Posted by LeoPap
On the Centos I have the ip tables active. Should I have to open port 53 on iptables?
Of course, if you want to connect with other machines on that port the port must be open.
 
Old 01-07-2013, 05:15 PM   #29
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Just use a text editor. Edit the /etc/dnsmasq.conf file and set:

listen-address=192.168.1.200

And then restart dnsmasq.

Then edit /etc/resolv.conf and set:

nameserver 192.168.1.200

That's all. Test using 'dig' on the server and try to browse on a Windows machine.
 
Old 01-07-2013, 05:25 PM   #30
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Original Poster
Rep: Reputation: 4
Maybe I didn't explain well the configuration of my network.

I have a caching Linux pc with ip 192.168.1.200, gateway 182.168.1.1 and dns 127.0.0.1
When I ping and use the dig command from the Linux pc, I get valid results.

Now I want all the windows pc's, to has as dns the caching server in order to increase the browsing speed.

The problem is that when I change the dns of the windows pc, and I enter the ip of the caching server (192.168.1.200) then I don't have Internet connection.

I will try to open the port 53 on iptables. Then I will try replacing 127.0.0.1 with 192.168.1.200 on the caching server.

Thank you guys for your help so far!! I will post the results tomorrow!

Last edited by LeoPap; 01-07-2013 at 05:26 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
new samba server create problem centos 5.5 64bits salimshahzad Linux - Newbie 2 02-07-2011 02:45 PM
i have server which has Linux version centos i want to create the image of the server dhirendrs Linux - Newbie 6 07-22-2010 08:20 PM
i have one server which install the Centos OS and i want to create the image dhirendrs Linux - Enterprise 3 07-22-2010 03:11 PM
LXer: Create Your Own Web Server With BIND And Apache On CentOS 5 LXer Syndicated Linux News 0 07-02-2008 03:11 PM


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