Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-15-2008, 10:43 AM   #1
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
Question dns configuration question.


I wondering if is possible to configure my local dns server to forward all traffic for a certain dns prefix to one ip address.

e.g. all traffic for xyz.* goes to

would point to

The reason I would want to do this is my company has a lot of urls and i would like users to be able to switch between the remote live server and local test server by changing prefix.

e.g. points to live but points to test.

Adding the test urls manually would be really time consuming and the list grows constantly.

Is it possible ?


Old 10-15-2008, 10:58 AM   #2
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16

Since you're going to have to have individual zone files for each domain, I can't see how you would gain from this strategy. There's no overall zone file for all domains. If there were, then your server would have to be authoritative for every domain!

You will need to use something like

xyz IN A
www IN A

for each zone file.
Old 10-15-2008, 11:44 AM   #3
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Yes you can. Look at Apache Virtual Hosting.
Old 10-16-2008, 03:21 AM   #4
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16
Sorry Aurora, but I think that's wrong.

Apache virtual hosting will let you have multiple hosts pointed to the same IP and will serve different websites according to the hostname specified in the http request.

In zone file: IN A IN A

In zone file: IN A IN A

Virtual hosting will allow you to server between 1 and 4 different sites for each of these hostnames. However you still need to have different zone files for each domain.

AS such, it doesn't answer John's question as to whether it's possible to have a single zone file where www.* and xyz.* (using * as a wildcard here) will work. The answer is that it won't. There's no such thing as a universal zone file.



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
DNS configuration and configuration file in RHEL5 remo1225 Linux - Newbie 1 02-20-2008 04:25 AM
DNS configuration tsaravan Linux - Newbie 1 11-10-2007 10:59 PM
dns configuration question zugi99 Linux - Newbie 4 03-20-2006 10:12 PM
DNS configuration? existo Slackware 1 01-30-2004 12:43 PM
DNS Configuration romel Linux - Newbie 4 09-22-2003 09:45 AM

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