DNS views

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 ???
LVL 1
its_ns_04Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason WatkinsIT Project LeaderCommented:
Hello,

I am not sure this is an option with Windows-based DNS servers. Please see the link below for DNS view syntax; http://www.zytrax.com/books/dns/ch7/view.html
0
its_ns_04Author Commented:
I am looking for something other than views ( as i mentioned above). I am looking something like the resolved IP is the closet one to the host who is making query.

0
Jason WatkinsIT Project LeaderCommented:
Sorry. I am not sure what you are trying to get accomplished.
0
Redefine Your Security with AI & Machine Learning

The implications of AI and machine learning in cyber security are massive and constantly growing, creating both efficiencies and new challenges across the board. Check out our on-demand webinar to learn more about how AI can help your organization!

its_ns_04Author Commented:
ok lets me explain again...

I have a DNS server which is in 192.168.4.x network and A record for some of the hosts is as below:

www A 192.168.1.1
            A 192.168.2.1

now, if a host in 192.168.2.x network queries for www, then it should get only the IP 192.168.2.1 and if a host in 192.168.1.1 network queries for www, then it should get the IP 192.168.1.1.

I know this can be done using views, but I am looking for some alternative solution. I cannot use views as my DHCP server also updates this zone file and I cannot make DHCP server to update 2 zone files for a single host...(it doesn't make sense to have redundant data)
0
Jason WatkinsIT Project LeaderCommented:
preseed the DNS values in the client's HOST file.
0
its_ns_04Author Commented:
is not a solution....how can i do to 1000 hosts and that also it keeps on adding
0
Jason WatkinsIT Project LeaderCommented:
Is this a BIND server? Maybe the 'topology' section could do as you require. This sets a preferred name server for certain networks, over others.

topology {
       192.168.1/24;
       192.168.2./24;
};

0
its_ns_04Author Commented:
topology doesn't work...Topology is something which tells which DNS server to use....

 I am looking for some details on "sortlist" option in fact.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason WatkinsIT Project LeaderCommented:
Sortlist allows you to specify the subnet for a resolved to use when it receives multiple answers for a query

Options {
     sortlist {
              { 192.168.1.0/255.255.255.0 192.168.2.0/255.255.255.0; };
       };
};

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DNS

From novice to tech pro — start learning today.