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.

Exchange Server 2010 Tutorial


Today I will show you how to set up Exchange Server 2010 so that you can host your own emails.  For the purpose of this tutorial I will be using Exchange 2010 already installed on Windows Server 2008 R2.  This tutorial will only cover how to set up Exchange to receive and send emails and not extras like Outlook Web App (OWA) and SSL Certificates which I will cover in future tutorials.

Prerequisites

1. You have already installed the Exchange 2010 package onto Windows Server 2008 R2 with the  Transport, Client Access and Mailbox Roles (Typical Installation)

2. Install the 2007 Office System Converter Microsoft Filter Pack.

3. You have received a static public ip address off your ISP.

Hub Transport Configuration

Open up the Exchange Management Console (EMC) and expand Microsoft Exchange  On-Premises – Organization Configuration – Hub Transport.

Next click on Accepted Domains (shown below).  Your domain should be visible by default.

In the Actions pane (right side of screen) click New Accepted Domain and add the name of the domain you wish to use for email addresses.

Now we need to set up a Send Connector so in the Actions pane click New Send Connector.  This will start the wizard.

Choose a name and then set the intended use as Internet.  Click Next.  This will bring you to the Address Space page. Enter the domain you want to use for emails (mine would be comtech.com) and make sure that you check the box to include all subdomains.  Click next.

On the Network Settings page unless you are routing your emails through an upstream  host select Use domain name system (DNS) “MX” records to route mail automatically.

For the rest of the wizard click Next.

Now expand Server Configuration – Hub Transport and right click on Default and go to Properties.

On the Properties page go to the Permissions Groups tab and check the box for Anonymous users.  This will allow your Exchange server to accept incoming mail from remote mail servers.

Now you need to give your users email addresses and you do this by expanding Recipient Configuration – Mailbox and then going to New mailbox in the Actions pane.  Create email addresses for all your users.

Configuring DNS Records

The final piece to the puzzle is to configure your external DNS records.  You are going to require both an A record and an MX record.

In DNS configure the following:

A Record

mail.comtech.com = 123.56.2.14

Replace comtech.com with your domain name and 123.56.2.14 with the static public ip addresses obtained from your ISP.

MX Record

mail.comtech.com (Preference 10) 

You can set as many preferences as you like but mail will be sent to the lowest preference first.

You will also need to contact the company who hosts your domain name (either ISP or external hosting company) to add the same records to their DNS records.

 

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 a static ip address in Windows


Today I will show you how to add a static ip address to a Windows installation.  For this tutorial I am using Windows 7 but the steps are the same for either Vista, 8 or any server variant.

First thing we need to do is find out what the subnet mask, dns servers and default gateway are for your network.  Open up a command prompt and type:

ipconfig /all

This will bring up a lot of information about your network.  Locate the lines for DNS servers, subnet mask and default gateway and write down the information.  We will need this later.

Next open up Control Panel and go to Network and Sharing Sharing Centre.  Click on Change Adapter Settings and then right click on the connection you want to configure and go to properties.  The Local Area Connection Properties box should appear.  Locate and click on Internet Protocol Version 4 (TCP/IPv4) and then click on properties.

On the following page click Use the following IP address and enter the details you jotted down earlier.  Remember to set the ip address to the static one you require.  Do the same for the DNS server addresses.  Close down the pages and reboot.  Your computer should now have the static ip address you configured but remember to check by using ipconfig in the command prompt.

About the Author

P1020114

Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter

 

 

 

 

 

 

How to set up a Linux DNS server


Today we will have a look at setting up a DNS server on Linux.  This tutorial was configured using Linux Mint 9 but the steps are the same for any Linux distribution.

First thing to do is to install the software we need. Open up a terminal and type:

sudo apt-get install bind9

Once installed it is time for some configuring.  The first file we need to configure is named.conf.local.  So in the 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 is 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

And then configure it:

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

Add the following code to the file:

// 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 yoour 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 (using upstart) or sudo /etc/init.d/bind9 restart (init scripts)

Don’t forget to test the new configuration:

dig comtech.com

About the Author

Hi I am Chris the owner of ComTech. I provide IT Support, Laptop repairs and Computer repairs to both personal and business 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 my blog, testimonials, services and much more.  Start supporting a local business today so I can start supporting you.

If you found this blog useful then why not sign up to my RSS Feed for news, tutorials, views and general techie stuff!!

 

 

 

 

 

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