Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-13-2004, 12:49 PM   #1
Registered: Mar 2002
Posts: 51

Rep: Reputation: 15
Arrow Network-wide host setting?

Hi All,

This isn't strictly a Linux question per se, but I expect Linux will be the solution, so this seems the place for it.

We have two servers. One local, one remote. All our domains resolve to the remote one. I want to synchronize these servers as much as possible. Since the configuration of the remote one relies on name based hosting, I would like to attempt to do the same locally.

Right now, all local DNS resolution is done through a cheapo linksys router. It doesn't seem to have the capability to manipulate DNS resolution. However, it can set what DNS server is used by computers it provides DHCP for.
On that note, I believe there must be some way to set up the local server as our primary DNS server, and have a switch somewhere on that server that will set all of our domains to resolve to itself. We would then use this switch when we were in the final stage of testing, to ensure there would be no problems with the domain. I'm certain this, or something approximating it, is possible.

My question is what is the best, simplest way to go about it?

Old 01-13-2004, 02:20 PM   #2
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
I'm not sure I fully understood: you want to instruct your dns to resolve to a fixed host number of addresses, right?
This should be pretty simple: just change your /etc/hosts file or the listing file for named daemon. You may have to kill/respawn named
Old 01-13-2004, 03:03 PM   #3
LQ Newbie
Registered: Jan 2004
Location: Netherlands
Distribution: Gentoo 1.4
Posts: 26

Rep: Reputation: 15
You should run a DNS server on your local machine. This is no problem what so ever, but you should do some reading on it. You could try bind and configure it using webmin if you would like a gui.

Bind DNS server:
Webmin web administration tool:

You can change your hosts file, but the machines on your network will not use this file restarting named will make no difference. If named is running on your system, then you already have bind installed. Install webmin for easy configuration.

It is also possible to use a firewall configuration to redirect clients to the local machine without them knowing it and without using a local DNS server.

I hope this info helps you solve your problem,
Old 01-15-2004, 08:39 PM   #4
Registered: Mar 2002
Posts: 51

Original Poster
Rep: Reputation: 15
Ok, I guess I didn't explain myself properly.

I want to be able to control DNS resolution on the local network. By default, I want to forward requests to a standard external server. But I would like to be able to also, when convenient for me, force DNS resolution on the local network to be done through my local server, which would contain alternate information for some of the domains owned by us.

So for DNS resolution on our local network 192.168.23.x

switch off: resolves to
switch on: resolves to

I would prefer to do this at the domain level, something my firewall cannot accomplish. If necessary, the firewill can do it at the ip level, but that would cut off a number of services that really on our external server.

What I want is a way to have enable/disable a set of zone files on my DNS server, in a very quick simple way.

I know this kind of rambled on a little, so thanks for reading.
Old 01-15-2004, 09:00 PM   #5
LQ Newbie
Registered: Jan 2004
Location: Portugal
Distribution: Slackware 9.0
Posts: 16

Rep: Reputation: 0
I think you can solve your problem using two named servers, more exactly using two configurations for the named server. One assigning to the local server and the other to the remote server.
Then you can switch your DNS assignment restarting the server using the configuration file that suites your purpose. Or maybe by running a simple script that "see" if the remote server in reachable or not.

Not an elegant solution, but....


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
system wide setting of .emacs/.vimrc monkeyking Slackware 4 03-18-2005 05:30 AM
Network Wide Anti-virus kegwell Linux - Security 8 12-20-2004 10:37 PM
Setting ISO8859-15 as the system-wide default ; how? Megamieuwsel Linux - General 1 08-25-2004 02:52 PM
Dell Inspirion 8500 problem setting to wide screen knitelius Linux - Laptop and Netbook 1 02-07-2004 10:07 PM
Need help setting up the Host & network files. hitbob Linux - Networking 4 08-22-2003 03:45 AM

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration