ComTech: IT Support Stirling
TwitterFacebookGoogle

How to set up a DNS Server on Debian 6.0 “Squeeze”

Today we are going to set up and configure a DNS Server on Debian 6.0 “Squeeze”.  We will be using the bind9 package which does not come by default so we will need to install it. Open up a terminal and type:

sudo apt-get install bind9

There are four files which we we need to configure.  Lets take the first.  In a terminal type:

sudo nano /etc/bind/named.conf.local

I have used nano to open up the file but use whichever text editor you are happy with. Insert the following code into the file:

——————————————————————————————————————————–

# This is the zone definition. replace example.com with your domain name
zone “comtech.com” {
type master;
file “/etc/bind/zones/comtech.com.db”;
};

# This is the zone definition for reverse DNS. replace 0.168.192 with your network address in reverse notation – e.g my network address is 192.168.0
zone “1.168.192.in-addr.arpa” {
type master;
file “/etc/bind/zones/rev.0.168.192.in-addr.arpa”;
};

——————————————————————————————————————————–


Replace comtech.com with the name of your DNS domain (this is not the same as an active directory domain but rather a name for your DNS zone).

Next up we shall configure the options file. In the terminal type:

sudo nano /etc/bind/named.conf.options

Within this file we need to modify the forwarder with the address of your ISP’s DNS servers. So modify the file adding the following:

——————————————————————————————————————————–

forwarders {

194.72.0.114;
194.74.65.69;
};

——————————————————————————————————————————–

Replace the addresses above with the addresses of your ISP’s DNS servers.

Now we need to add the zones file:

sudo mkdir /etc/bind/zones

Now we need to configure it by typing:

sudo nano /etc/bind/zones/comtech.com.db (replace comtech.com with your DNS domain).

To configure the file you will need to add the following:

——————————————————————————————————————————–

// replace example.com with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
comtech.com. IN SOA chris-server.comtech.com.
// Do not modify the following lines!
2006081401
28800
3600
604800
38400

)

// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// example.com = domain name
comtech.com. IN NS chris-server.comtech.com.
comtech.com. IN MX 10 mta.example.com.

// Replace the IP address with the right IP addresses.
www IN A 192.168.1.4
mta IN A 192.168.0.3
chris-server IN A 192.168.1.4

——————————————————————————————————————————–

In the above code replace the following:

comtech.com with your DNS domain name,

192.168.1.4 with your static DNS server address,

chris-server.comtech.com with your computers hostname.dns-domain,

mta is your mail server (if you have one). If you do modify the IP address to show this.

Next we have to create the reverse DNS zone file:

sudo nano /etc/bind/zones/rev.1.168.192.in-addr.arpa

Add the following code:

——————————————————————————————————————————–

//replace example.com with your domain name, ns1 with your DNS server name.
// The number before IN PTR example.com is the machine address of the DNS server
@ IN SOA chris-server.comtech.com admin.comtech.com. (
2006081401;
28800;
604800;
604800;
86400
)

IN NS chris-server.comtech.com.
1 IN PTR comtech.com

——————————————————————————————————————————–

All that is left to do is restart bind:

sudo service bind9 restart

Don’t forget to test the new configuration:

dig comtech.com

About the Author

Hi I am Chris Wakefield the owner of ComTech IT Support. I provide Windows and Linux based IT Support, laptop repairs and computer repairs to both business and personal clients in and around Stirling.

For a list of what I can offer you why not visit my website www.comtech247.net where you will find a list of my services, testimonials, blog and much more.

How to set up WSUS on Windows Server 2008 R2


Good morning my fellow readers. Today I am going to show you how to set up WSUS on Windows Server 2008 R2.  WSUS is fantastic for centralising management of Windows Updates throughout your network.  Installing a WSUS server makes deploying patches and security fixes much easier and so by default makes your life easier too!!

For the purpose of this tutorial I will be using Windows Server 2008 R2 SP1 with 1.5 Gb of RAM (you would use much more than this in a production environment).

Open up Server Manager.  Right click on Roles and then click Add Roles.

When asked to select which roles you want to install click Windows Server Update Services and when prompted Add the additional roles that are required (eg Web Server IIS)

During installation you will be prompted to accept the license agreement and then you will be asked where do you want to store all the updates.  Either choose a new folder or accept the default C:\\WSUS location.

You will now be asked to choose whether you want to install the Windows Internal Database or use an existing one instead.  I tend to just install the database on the C drive in C:\\WSUS but the choice is yours.

Next you will be asked for your web site preference.  You can use the default IIS web site to access WSUS over the network or you can specify your own one.  Again I quite happily choose the default for this.

On the last page page review your options and then click next.

The installation itself takes a long time but once installed the first thing we need to do is synchronize the WSUS server with Microsoft Update (or another WSUS server on the network) so expand Server Manager – Windows Server Update Services – Update Services – Options – Update Source and Proxy Server.

For the purpose of this tutorial I will synchronise with Microsoft Update.

Next we have to choose which products to download updates for so click on Products and Classifications.

Choose all the products which you require updates for and click OK.

Next we have to decide what languages to download the updates in (if you select all available languages your downloads will take a long time and take up a loads of disk space).  Click on Update Files and Languages and then the Update Languages tab. Choose your language and then click Apply.

We now need to decide when to check for new updates and when to download them.  To accomplish this we need to click on Synchronization Schedule (shown below).

You can synchronize manually but it is better to synchronize automatically on a daily schedule.  Once you have set your daily schedule click Apply.

With all the housekeeping done all that is left to do is to perfrom the initial synchronization so expand Server Manager – Windows Server Update Services – Update Services – Synchronize and then right click and go to Synchronize Now. This will start the synchronize process.

That is the configuration for the WSUS server complete.

Distributing Updates across the network

To accomplish this we need to set up a Windows Update Group Policy and then distribute it to all computers in the domain.

To do this expand Start – Administrative Programs – Group Policy Management. Once the Group Policy Management Console is open expand Group Policy Management – Forest – Domains – “your domain” – Group Policy Objects. Right click on Group Policy Objects and go to New.

When the New GPO box appears eneter a name for the new GPO and then click OK.  Your new GPO should be visible on the screen (as shown below).  Right click on it and go to Edit.

Now in the left panel expand Computer Configuration – Policies – Administrative Templates – Windows Components – Windows Update to get the screenshot below.

The first setting to configure is Specify intranet Microsoft update service location. Right click and go to Edit.

As shown above set this to enabled. Enter the location of your WSUS Server where required and then click Apply.

The next setting to configure is Configure Automatic Updates.  Set this to enabled and specify how the downloads should be installed and at what time.  Once configured click Apply.

Next we have to configure the Automatic Updates Detection Frequency policy.

Enable the policy and set to 1 hr.  Click Apply.

Last thing we need to do on the GPO front is link it to the domain.

The next time the computers on your domain restart their group policy settings will be updated and they will be pointed to the new WSUS server (screenshot of client computer shown below).

 

About the Author

Hi I am Chris Wakefield the owner of ComTech IT Support. I provide Windows and Linux based IT Support, laptop repairs and computer repairs to both business and personal clients in and around Stirling.

For a list of what I can offer you why not visit my website www.comtech247.net where you will find a list of my services, testimonials, blog and much more.

 

How to set up a Web Server on Windows Server 2008 R2 using IIS


Today I will show you how to set up a Web Server on Windows Server 2008 R2 using IIS.

Open up Server Manager, right click on Roles and click Add Roles.

When you are shown a list of available roles click Web Server (ISS) and then Next.  On the following screen read the information and then click Next.

On the Select Role Services screen which follows click any additional services that you require (or leave the defaults) and then click Next.

On the final page we have to review our selections and click Install when satisfied.

Now we need to check if IIS is working so open up a web browser and type http://localhost into the address bar.  If IIS is working perfectly then you should get the screenshot below.

Now it is time for some configuration.  We are now going to add a new site called ComTech1 so the first thing we need to do is to create a new folder called Web_Root on the C drive which will contain all the website files.  You will need to copy all your website files into this folder.

Now expand Server manager – Roles – Web Server (IIS) – Internet Information Services (IIS) Manager – Your System Name 

Right click on your System Name (e.g 2008Test1 in my example) and go to Add Web Site

 

In the above example I have called the website ComTech1 and set the physical path of the website files as C:\Web_Root.  The ip address of the site has been set to 10.0.0.170 and the Host name as www.comtech.com.  Using this information as a guide enter the relevant details for your own website.

Once configured your website should be available at the ip address you specified above.

About the Author

Hi I am Chris Wakefield the owner of ComTech IT Support. I provide Windows and Linux based IT Support, laptop repairs and computer repairs to both business and personal clients in and around Stirling.

For a list of what I can offer you why not visit my website www.comtech247.net where you will find a list of my services, testimonials, blog and much more.

CyberChimps
Follow

Get every new post delivered to your Inbox

Join other followers

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera
WP Like Button Plugin by Free WordPress Templates