LinuxQuestions.org
Visit Jeremy's Blog.
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 03-30-2010, 04:13 PM   #1
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
DNS view


Hi,

I have two different networks A and B & servers as below

www A 192.168.1.1
A 192.168.2.1

smtp A 192.168.1.1

Whenever a client from A network queries for www, i would like to reply back one of the IPs, say 192.168.1.1 and when a client queries from B, i would like to reply back the other.

I know this can be done by creating views. However, as I have a long list of servers, such as "smtp" which I would like to reply back with same IP ( no matter whether queried from A network or B), I am just wondering if view can be created only for specific hosts (www in this case) and not the entire zone ?

Can this be achieved somehow ???
 
Old 03-30-2010, 04:47 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2035Reputation: 2035Reputation: 2035Reputation: 2035Reputation: 2035Reputation: 2035Reputation: 2035Reputation: 2035Reputation: 2035Reputation: 2035Reputation: 2035
Hi,

What you can do is to use the same A record for the hosts like smtp in both views:
Code:
view A:
www IN A 192.168.1.1
smtp IN A 192.168.1.1

view B:
www IN A 192.168.2.1
smtp IN A 192.168.1.1
Regards
 
Old 03-31-2010, 08:15 AM   #3
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Original Poster
Rep: Reputation: 15
This is what I was thinking if can be avoided. It is because, I use dynamic dns and there will be lots of other hosts such as "smtp" in this case which will have the same IP for both internal and external hosts...

I didn't want to create view for entire zone...I wanted to create only for specific hosts. Is there any other way around to solve this ??



Quote:
Originally Posted by bathory View Post
Hi,

What you can do is to use the same A record for the hosts like smtp in both views:
Code:
view A:
www IN A 192.168.1.1
smtp IN A 192.168.1.1

view B:
www IN A 192.168.2.1
smtp IN A 192.168.1.1
Regards

Last edited by sang_froid; 03-31-2010 at 08:21 AM.
 
  


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
What is view in DNS in Linux linuxjamil Linux - Server 2 07-22-2009 03:45 PM
Folder View or graphical view login using ssh caliskans Linux - Newbie 2 07-05-2009 04:57 PM
KDE Konqueror View Mode Icons (Image Preview/Tree View) sadarax Linux - General 7 06-27-2006 12:45 PM
how to view movies that only windows media player can view? servnov Linux - General 7 02-08-2006 10:42 AM
dns named.conf: "view" unknown option rioguia Linux - Networking 16 11-02-2004 11:04 AM

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

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