In this section of videos, we're going to learn how to manage multiple monkey sites from a single location.
Now, if you don't have monkey and you just have a card, you can also follow along because this would
apply to A.D. as well.
Now, both in HD and in Monkey.
We've discussed having a single repo for all of your packages.
So inspired the idea was to minimize the use of the built in tools.
If we just use HD to send scripts to our machines and they download packages from a server and that
server resolves locally to the client, then you're minimizing this all the tools that God provides
and you're going to make a much more robust.
Now, that's exactly how monkey works.
So again, the same thing.
If our monkey client resolves the local monkey server and downloads everything locally, then monkey
will be that much more efficient.
All right.
So how do we make sure that we're always downloading from the most local server?
That's what we're going to discuss here.
And we're going to do that using C names.
Now, there are other ways that you can accomplish this, including a distributed file system.
But C names are just a much easier way of doing it and an easy way to get started.
So let's take a closer look at our environment so we can see more closely how this works.
So over here, I've got my New York machine and you can see that my IP address is 10 to two, four fifty
two.
And over on the side you can see that it's ten to thirty one, sixty two point one or two and they're
not paying a bill from each other.
So if I try to paying my O8 machine.
I'm not going to get a reply.
All right, so let's go ahead and paying our monkey machine.
And if I paying my monkey machine, you can see that I'm getting a response from New York hyphen monkey
hyphen O1.
So that's the host name in the machine.
And you can also see that the IP address of the New York monkey server is in a different subnet.
So our workstations are on one subnet and our servers are on another.
Now, if I go over to my L.A. machine and I ping monkey, then I'm getting a response from L.A. Dash
Monkey, Dash one, and you can see that it's also in a different subnet range from the L.A. workstation.
All right.
So we've got the hostname of the L.A. monkey machine.
What would happen if I ping it from the New York machine?
So I go ahead and it does give me the IP address, but I don't have access to it.
So if I was in L.A. or in New York and I wanted to access the other monkey server with the way that
it's set up, I wouldn't even have access to it.
So when I ping monkey, I am just getting my own monkey server.
OK, so we also did something similar for our doc items.
So you remember we had local and so in our mobile config we said we want to hit our domain controller
and we want to get the local share.
So if I paying D.C., you can see that I get New York DCO one.
And if I did the same thing on the side, I would get Elanco one.
All right.
So let's see how this is set up.
So over here I am on my Windows Domain controller and I'm in the DNS section.
And so here's my domain name.
And you can see over here that I've got.
I've got my host names are going to return my IP addresses, so here's my L.A. machines, here's my
New York machines and these are the IP addresses associated with them now.
We have these search domains and you can see so we have New York dot automata, dot net, and so that
means when I ping something, I'm going to search for addresses in New York, dot automata that and
also accommodate that.
So these are the addresses that I would get on the L.A. and New York side.
But if I'm in New York, I have I can ping these additional host entries and I will get these responses.
Now we can see if I ping D.C. or monkey and installs.
That's the that's what we used in HD.
So if I ping monkey, I'm going to get an alias.
And that alias is basically going to forward me to New York monkey one.
And if I'm in L.A. and I ping monkey, it's going to afford me to L.A..
Monkey one Now, L.A. and New York are subdomains of tomate net.
So thus the search domain, L.A. dot com, dot net.
And so that's how this works.
So when I'm paying monkey on either side, I am getting the server that's closest to me.
And when any one given site can use a single hostname to get its local resources, all of a sudden you
can have a single script or a mobile config profile that you can design in one location and it will
work in any location.