Wednesday, May 13, 2009

Exchange 2010 Resource mailbox Properties Exposed.
















As
As Promised MS provided more features to manager REsource mailbox.

Resource Mailbox properties are now available in Exchange Management Console (EMC) in Exchange 2010 .

These features are available in OWA or with PowerShell in Exchange server 2007.
list of new features and Tabs available in Exchange server 2010 Resource mailbox properties.

Read my Next post on RBAC...

E14 Beta Setup Switches.

Dump of Exchange 2010 Beta Setup Switches ======================================================
C:\Exchange2010-Beta1-x64>setup /?

Welcome to Microsoft Exchange Server 2010 Setup Help Please type one of the below options for detailed help on each subject:
Setup.com /help:Install – Installing Exchange Server roles. Setup.com /help:Uninstall – Uninstalling Exchange Server roles. Setup.com /help:Upgrade – Upgrading Exchange Server roles. Setup.com /help:RecoverServer – Recovering an existing Exchange Server. Setup.com /help:PrepareTopology – Preparing your topology for Exchange. Setup.com /help:Delegation – Delegated server installations. Setup.com /help:UmLanguagePacks – Adding/removing UM language packs. Setup.com /help:LanguagePacks – Adding language packs.
---------------------------------------------------------------------------------------
C:\Exchange2010-Beta1-x64>setup /help:Install Microsoft Exchange Server 2010 Setup arameter Help

Install/Uninstall Server Role Usage: Setup.com /mode: /roles:
[/OptionalParameters] –Install/Uninstall Required Parameters–
/mode, /m

Specifies the operation to perform: . Install: (Default)–Installs one or more server roles. Uninstall: Removes one or all installed server roles.
/roles, /role, /r Specifies which server roles to install or uninstall: /role:Mailbox /roles:Mailbox, HubTransport
The following are the valid roles: . HubTransport, HT, H . ClientAccess, CA, C . Mailbox, MB, M . UnifiedMessaging, UM, U . EdgeTransport, ET, E . ManagementTools, MT, T
–Install/Uninstall Optional Parameters–
[/OrganizationName, /on] /OrganizationName:MyCompany
* This parameter is required if the Exchange organization hasn’t been created.
[/TargetDir, /t] Specifies the location to install Exchange Server 2010 files. Default: %programfiles%\Microsoft\Exchange Server
[/SourceDir, /s] Specifies the path to the Exchange DVD.
[/UpdatesDir, /u] Updates from the directory specified will be installed during setup.
[/DomainController, /dc] Specifies the domain controller that setup will use to read and to write to Active Directory. Netbios or FQDN format can be used.
[/?] Displays the help for setup.
–Install/Uninstall Advanced Optional Parameters–
[/AnswerFile /af] Specifies the location of an answer file that contains advanced parameters for setup. The format for the answer file is = Only the advanced parameters are valid for the answer file.
[/DoNotStartTransport] Edge Transport Service will not be started during setup when this parameter is specified. Roles: Hub Transport, Edge Transport
[/EnableLegacyOutlook] Specifies that legacy outlook clients can connect to the Exchange 2007 servers. Roles: Mailbox Remarks: This parameter can only be specified during the first Exchange 2010 Mailbox server installation to an organization.
[/LegacyRoutingServer] Specifies the name of a legacy Exchange server that will be used to route messages to. Roles: Hub Transport Remarks: This parameter can only be specified during the first Exchange 2010 Hub Transport server installation to an organization.
[/EnableErrorReporting] This enables the Exchange server to automatically submit critical error reports. Microsoft uses this information to diagnose problems and provide solutions.
This parameter applies to installation of all server roles.
[/CustomerFeedbackEnabled] Specify whether to participate in Customer Experience Improvement Progr am. The value can be True or False.
[/Industry] The industry type of the organization.
[/Mdbname] The name of the default mailbox database.
Roles: Mailbox
[/DbFilePath] The full path to the edb file.
Roles: Mailbox
[/LogFolderPath] The folder path to the directory where logs should be placed. Roles: Mailbox
[/NoSelfSignedCertificates] Specifies that setup should skip creating self signed certificates if no other valid certificate is found for use in SSL/TLS sessions.
Roles: Client Access, Unified Messaging
[/AdamLdapPort] LDAP Port to use for Edge Transport server role AD/AM instance. Roles: Edge Transport
[/AdamSslPort] SSL Port to use for Edge Transport server role AD/AM instance.
Roles: Edge Transport
----------------------------------------------------------------------------------------
C:\Exchange2010-Beta1-x64> Setup.com /help:Uninstall Microsoft Exchange Server 2010 Setup Parameter Help
Install/Uninstall Server Role Usage: Setup.com /mode: /roles: [/OptionalParameters]
–Install/Uninstall Required Parameters–
/mode, /m Specifies the operation to perform: . Install: (Default)–Installs one or more server roles. . Uninstall: Removes one or all installed server roles.
/roles, /role, /r Specifies which server roles to install or uninstall:
/role:Mailbox /roles:Mailbox, HubTransport
The following are the valid roles: . HubTransport, HT, H . ClientAccess, CA, C . Mailbox, MB, M . UnifiedMessaging, UM, U . EdgeTransport, ET, E . ManagementTools, MT, T
–Install/Uninstall Optional Parameters–
[/OrganizationName, /on] /OrganizationName:MyCompany
* This parameter is required if the Exchange organization hasn’t been created.
[/TargetDir, /t] Specifies the location to install Exchange Server 2010 files. Default: %programfiles%\Microsoft\Exchange Server
[/SourceDir, /s] Specifies the path to the Exchange DVD.
[/UpdatesDir, /u] Updates from the directory specified will be installed during setup.
[/DomainController, /dc] Specifies the domain controller that setup will use to read and to write to Active Directory. Netbios or FQDN format can be used.
[/?] Displays the help for setup.
–Install/Uninstall Advanced Optional Parameters–
[/AnswerFile /af] Specifies the location of an answer file that contains advanced parameters for setup. The format for the answer file is = Only the advanced parameters are valid for the answer file.
[/DoNotStartTransport] Edge Transport Service will not be started during setup when this parameter is specified. Roles: Hub Transport, Edge Transport
[/EnableLegacyOutlook] Specifies that legacy outlook clients can connect to the Exchange 2007 servers. Roles: Mailbox Remarks: This parameter can only be specified during the first Exchange 2010 Mailbox server installation to an organization.
[/LegacyRoutingServer] Specifies the name of a legacy Exchange server that will be used to route messages to. Roles: Hub Transport Remarks: This parameter can only be specified during the first Exchange 2010 Hub Transport server installation to an organization.
[/EnableErrorReporting] This enables the Exchange server to automatically submit critical error reports. Microsoft uses this information to diagnose problems and provide solutions.
This parameter applies to installation of all server roles.
[/CustomerFeedbackEnabled] Specify whether to participate in Customer Experience Improvement Progr am. The value can be True or False.
[/Industry] The industry type of the organization.
[/Mdbname] The name of the default mailbox database. Roles: Mailbox
[/DbFilePath] The full path to the edb file. Roles: Mailbox
[/LogFolderPath] The folder path to the directory where logs should be placed. Roles: Mailbox
[/NoSelfSignedCertificates] Specifies that setup should skip creating self signed certificates if no other valid certificate is found for use in SSL/TLS sessions.
Roles: Client Access, Unified Messaging

[/AdamLdapPort] LDAP Port to use for Edge Transport server role AD/AM instance. Roles: Edge Transport
[/AdamSslPort] SSL Port to use for Edge Transport server role AD/AM instance.
Roles: Edge Transport
--------------------------------------------------------------------------------------------
C:\Exchange2010-Beta1-x64>Setup.com /help:Upgrade Upgrade Exchange Server Usage: Setup.com /mode:Upgrade [/OptionalParameters]
–Upgrade Required Parameters– /mode, /m Specifies the operation to perform: Upgrade: Upgrades all installed servers roles.
–Upgrade Optional Parameters–
[/SourceDir, /s] Specifies the path to the Exchange DVD.
[/UpdatesDir, /u] Updates from the directory specified will be installed during setup.
[/DomainController, /dc] Specifies the domain controller that setup will use to read and to write to Active Directory. Netbios or FQDN format can be used.
[/DoNotStartTransport] Edge Transport Service will not be started during setup when this parameter is specified. Roles: Hub Transport, Edge Transport
----------------------------------------------------------------------------------------------
C:\Exchange2010-Beta1-x64>Setup.com /help:RecoverServer Recover Exchange Server Usage: Setup.com /mode:RecoverServer [/OptionalParameters]
–Recover Exchange Server Required Parameters– /mode, /m Specifies the operation to perform: RecoverServer: Recovers an existing Exchange server object.
–Recover Exchange Server Optional Parameters–
[/TargetDir, /t] Specifies the location to install Exchange Server 2010 files. Default: %programfiles%\Microsoft\Exchange Server\V14
[/UpdatesDir, /u] Updates from the directory specified will be installed during setup.
[/DomainController, /dc] Specifies the domain controller that setup will use to read and to write to Active Directory. Netbios or FQDN format can be used.
[/EnableErrorReporting] This enables the Exchange server to automatically submit critical error reports. Microsoft uses this information to diagnose problems and provide solutions.
[/DoNotStartTransport] Edge Transport Service will not be started during setup when this parameter is specified. Roles: Hub Transport, Edge Transport
======================================================
C:\Exchange2010-Beta1-x64>Setup.com /help:PrepareTopology Prepare Topology Usage: Setup.com /PrepareAD [/CustomerFeedbackEnabled:] [/Industry:<>] [/DomainController:] Setup.com /PrepareSchema [/DomainController:] Setup.com /PrepareDomain [/DomainController:] Setup.com /PrepareDomain: [/DomainController:] Setup.com /PrepareAllDomains [/DomainController:] Setup.com /PrepareLegacyExchangePermissions [/DomainController:]
Setup.com /PrepareLegacyExchangePermissions: [/DomainController:]
–Prepare Topology Required Parameters–
/PrepareLegacyExchangePermissions, /pl Prepares the permissions in a legacy forest. Use this parameter only if you have Exchange 2000 or 2003 servers in your organ ization.
/PrepareLegacyExchangePermissions:, /pl: Prepares the permissions for the specified domain.
/PrepareAD, /p Prepares the Active Directory forest for the Exchange installation. This will perform all the operations listed below in the local domain.
/PrepareSchema, /ps Prepares the Active Directory Schema for the Exchange installation.
/PrepareDomain, /pd Prepares the local domain for the Exchange installation.
/PrepareDomain:, /pd: Prepares the specified domain for the Exchange installation.
/PrepareAllDomains, /pad Prepares all domains in the forest for the Exchange installation.
–Prepare Topology Optional Parameters–
[/DomainController, /dc] Specifies the domain controller that setup will use to read and write to Active Directory. Netbios or FQDN format can be used.
--------------------------------------------------------------------------
C:\Exchange2010-Beta1-x64>Setup.com /help:Delegation Server Setup Delegation Usage: Setup.com /NewProvisionedServer: [/ServerAdmin:] Setup.com /RemoveProvisionedServer: Setup.com /ForeignForestFQDN:
–Server Setup Delegation Required Parameters–
/NewProvisionedServer:, /nprs Creates a placeholder server object so that a delegated server admin ca n run Exchange installation.
/RemoveProvisionedServer, /rprs Removes the provisioned server object.
/ForeignForestFQDN Creates another set of Exchange security groups in a separate forest.
–Server Setup Delegation Optional Parameter–
[/ServerAdmin, /sa] User or group to be granted permission as Server Administrator. You can only use this parameter with the /NewProvisionedServer parameter
------------------------------------------------------------------------------------------------
C:\Exchange2010-Beta1-x64>Setup.com /help:UmLanguagePacks Adding/Removing Unified Messaging Language Packs: Setup.com /AddUmLanguagePack: [/SourceDir:] Setup.com /RemoveUmLanguagePack:
–Add/Remove UM Language Pack Required Parameters–
/AddUmLanguagePack – Adds the language packs for the specified cultures.
/RemoveUmLanguagePack – Removes the installed lanugage packs.
–Add UM Language Pack Optional Parameter–
[/SourceDir,/s] – Location for the unified messaging language pack for the cultures specified. Valid with /addumlanguagepack parameter only.
[/UpdatesDir, /u] – Updates from the directory specified will be installed during setup.
Usage Examples: Setup.com /AddUmLanguagePack:de-DE /s:d:\Downloads\UmLanguagePacks Setup.com /AddUmLanguagePack:de-DE,fr-FR,ja-JP /s:\\myshare\langpacks Setup.com /RemoveUmLanguagePack:de-DE,fr-FR Setup.com /AddUmLanguagePack:de-DE /s:d:\Downloads /u:d:\Patches
Remarks: en-US unified messaging language pack cannot be added/removed. It will be installed and uninstalled with the Unified Messaging role. These operations are only valid when Unified Messaging role is already installed on the server.
-----------------------------------------------------------------------------------------
C:\Exchange2010-Beta1-x64>Setup.com /help:LanguagePacks Adding Language Packs: Setup.com /mode:install /LanguagePack:
Setup will install the languages contained in the bundle specified.
Upgrading with Language Packs: Setup.com /mode:upgrade /LanguagePack:
Setup will perform a product upgrade and additionally upgrade the languages contained in the bundle specified.
Remarks: /mode:install must be used to initially install language packs You may upgrade language packs independently of the product by using install mode Language Packs can only be uninstalled when the entire product is uninstalled

Wednesday, April 22, 2009

Install Exchange2010 Beta1

It's time for Exitement. Let's get started @ Beta1 for exchange 2010

In this post I will write on Beta 1 and installation process.

I guess i am late , It is already written by Exchange product group memeber Scott Schnoll.

http://blogs.technet.com/scottschnoll/archive/2009/04/15/how-to-install-exchange-server-2010.aspx


-Manju

Saturday, March 29, 2008

Setup a Standby Continuous Replication in Exchange 2007 SP1


Overview:

----------
Standby Continuous Replication (SCR) is a new feature in Exchange 2007 SP1. It has been designed to provide a solution to complete site failure. It does this by utilising the existing Exchange replication service (asynchronous replication) used by Cluster Continuous (CCR) and Local Continuous replication (LCR) to replicate data to a target which is in a different site.

*SCR doesn’t rely on clustering, so the configuration of offsite copies has none of the limitations that clustering can enforce. Another important feature of SCR is that is allows for multiple copies of data to be made by allowing each source storage group to have multiple targets.

A few key things changes have been made to the replication technology compared to its use in CCR and LCR. In SCR there is a lag time before logs are played into the SCR target database. In fact, before the database is even created 50 logs must have been copied across to the target before a database is even created. On top of this there is a parameter ReplayLagTime which by default is 24 hours which specifies that SCR will wait the configured amount of time before any logs are played into the database. Of these two delays, the ReplayLagTime is configurable but the 50 log delay is hard coded!

Finally before moving onto look at what will be tested I will outline the perquisites for SCR:

· Source and Target data paths must match
· Source and Target installation paths must match
· There must be a 1-1 mapping of Storage Groups and Databases
· Source and Target Operating Systems must match
· Source and Target must be in the same AD domain
What is being tested
In this document, I will test the following scenarios:

· Setup of SCR
· A planned activation
· An emergency activation after a failure of the source
· Re-initialization of the original site
SCR Setup
To begin with I setup a new Storage group on the source machine and create a database within. I then moved a few test mailboxes to it.
To enable and SCR copy use the following command (replacing your Storage Group and Server names where appropriate:

Enable-StorageGroupCopy –Identity SCRSourceSG1 –StandbyMachine SiteBSCR1.gaots.co.uk –ReplayLagTime 0.0:10:0

You will notice the ReplayLagTime I set ensures that there is only a ten minute lag. Also note the placement of periods and colons in the value which should be entered as shown.

Having enabled SCR I needed to make some traffic to generate 50 log files as can be seen in Figure 1! Once I had done that, just as expected, the target database was created.

Figure 1 – The Storage group path showing the created logs

Of course; to start with the database remained small however, after 10 minutes the logs started to play in. It should be noted here that only some of the logs play in. There is always a buffer of the last 50 logs which will not play in as can be seen in Figure 2; this final 50 logs would be manually played in as part of activation.

Figure 2 shows how to check the health of the SCR copy by running the following command:

Get-StorageGroupCopyStatus – Identity SCRSource1 –StandbyMachine SiteBSCR1.gaots.co.uk

Figure 2 – The output from the Get-StorageGroupCopyStatus command

So having setup SCR and verified that it is replicating correctly let’s move onto activation.
SCR Activation
Activation where the source still exists
The first type of activation I will demonstrate is simply activating a single failed database where the original DB and server still exist. This would either be a planned failover or one where corruption has occurred. This procedure makes use of the Exchange database portability feature enabling the re-homing of a users’ mailbox to a new server, in this case the target SCR copy.

The first step is to create a Storage Group (SG) and Database (DB) on the target server. This should be created in a new path (not one already used for a target copy). Having created the SG and DB, mount the DB and then dismount it. Once you have dismounted the DB delete all files from the SG and DB paths.

New-StorageGroup -Server 'SITEBSCR1' -Name 'SCRRestore1' -LogFolderPath 'C:\SCRRestore1' -SystemFolderPath 'C:\SCRRestore1'

New-MailboxDatabase -StorageGroup 'SITEBSCR1\SCRRestore1' -Name 'SCRRestoreDB1' -EdbFilePath 'C:\SCRRestore1\DB\SCRRestoreDB1.edb'

Mount-Database -Identity ‘SCRRestoreDB1'

DisMount-Database -Identity ‘SCRRestoreDB1'

Delete all files in the folders below:

· C:\SCRRestore1
· C:\SCRRestore1\DB (also delete the catalog folder)

Having carried out the preparation steps, you must first dismount the production DB if it not already dismounted.

DisMount-Database -Identity ‘SCRSourceDB1'

Once the source SG is dismounted you must enable the target database for mounting and ensure all log files are copied across. This is done using the following command:

Restore-StorageGroupCopy SiteAMB1\SCRSource1 –StandbyMachine SiteBSCR1

If you find that you get any errors investigate them carefully as it usually means that a log cannot be copied across, which will mean that data loss will occur. For an example see Figure 3.

Figure 3 – Showing possible errors
So long as everything copied correctly, then you will be left at the command prompt with no message. At this point you must perform a few more steps before getting the DB back online.

First verify whether the target copy of the DB is in a clean shutdown state. This is done using ESEUTIL.

ESEUTIL /mh c:\SCRSource1\DB\SCRSourceDB1.edb findstr State

Notice the pipe to the findstr cmdlet which lets us search for on the info on shutdown state which we require. As you can see in Figure 4, the database is in a Dirty Shutdown state.

To rectify the dirty shutdown, we use ESEUTIL again as follows. First change to the SG path location:

Cd c:\SCRSource1

Next run a recovery on the DB:

ESEUTIL /r E02

Note that you would use whatever log version you have for that storage group, be it E01 through E50!

Having performed the above steps re-check the database shutdown state and it should now be clean.

Figure 4 – The database is in a dirty shutdown state and is then repaired

Next we must make use of the SG and DB that we created right at the beginning of this process. We will basically point the SG and DB to the path where the SCR copy is held as follows:

Move-StorageGroupPath SiteBSCR1\SCRRestore1 -SystemFolderPath c:\SCRSource1 –LogFolderPath C:\SCRSource1 -ConfigurationOnly

Move-DatabasePath SiteBSCR1\SCRRestore1\SCRRestoreDB1 -EdbFilePath C:\SCRSource1\DB\SCRSourceDB1.edb –ConfigurationOnly

Finally before mounting the DB we must set it to allow it to be overwritten during a restore as follows:

Set-MailboxDatabase SiteBSCR1\SCRRestore1\SCRRestoreDB1 -AllowFileRestore:$True

This done we can mount the database using the command below:

Mount-Database –Identity SiteBSCR1\SCRRestore1\SCRRestoreDB1

The database is now restored and available for use. All we have to do now is ensure that the users know where to access it. This is done by moving the users mailbox again using the ConfigurationOnly parameter so as only to update the configuration. The complete command shown below will get all the mailboxes from the Source database and will move all but the System mailboxes across to the Target database.

Get-Mailbox -Database SiteAMB1\SCRSource1\SCRSourceDB1 where {$_.ObjectClass - NotMatch '(SystemAttendantMailboxExOleDbSystemMailbox)'} Move-Mailbox - ConfigurationOnly -TargetDatabase SiteBSCR1\SCRRestore1\SCRRestoreDB1

Having completed the above steps the next stage is to test that users can now access mail again. It should be noted that they will have to exit and re-open Outlook for the setting to take effect.

Activation after complete site/server loss
As I showed above, SCR can be used as a rudimentary failover solution perhaps if major work is being undertaken at a site, or on WAN links. However, it is perhaps more likely to be used in the event of a complete site or server failure. This scenario requires a slight adjustment to the process described above in particular, the use of the force switch.

When you get to the point of running the Restore-StorageGroupCopy command, you will find that it will produce an error shown in Figure 5. This is because it cannot contact the source server to check that the source DB is dismounted.

Figure 5 – Restore error because the source is unavailable

At this point, having verified the source really is gone, run the command below to force Exchange to restore:

Restore-StorageGroupCopy -Identity sitebscr1\scrrestore1 -StandbyMachine siteamb1
-Force

Exchange will notify you that data loss is expected, as it was not possible to copy the final logs. At this point you must continue the restore procedure by verifying the shutdown state of the database. Again you will notice the DB is in dirty shutdown state. This time however, to recover it you will need a slightly different ESEUTIL command:

ESEUTIL /r E00 /A

The /A tells ESEUTIL that this is a soft restore where log files may be missing.

After that follow the remaining steps above complete restore.

One other thing to note is that the loss of the original server also has repercussions with regards to updating user profiles. Now only those with Outlook 2007 will get automatically redirected using the Autodiscover service. Those on Outlook 2003 will no longer be able to contact the original server for redirection and will therefore need updating manually.

Note: The above procedure could easily be expanded to cover all stores on a failed server.
Restoring SCR redundancy after failure is recovered
After you have dealt with the failure of a site, server or database you will want to get redundancy back and restore your Exchange organisation to the original configuration. The steps below outline how to undertake this.

The first stage to resetting configuration to the original setup is that you need to setup SCR in the opposite direction in order to get the database synchronised back to the original source server. To do this, first remove any trace of the original SG and DB from your original source server by deleting the SG and DB and then removing their files.

Next follow the procedure above to setup SCR. Having setup SCR and verified that it is functioning, reseed the database to ensure that it is as up to date as possible using the commands below:

Suspend-StorageGroupCopy - Identity sitebscr1\scrrestore1 -StandbyMachine siteamb1

Note: the next command must be run on the target machine.

Update-StorageGroupCopy -Identity sitebscr1\scrrestore1 -StandbyMachine siteamb1
-DeleteExistingFiles

Resume-StorageGroupCopy -Identity sitebscr1\scrrestore1 -StandbyMachine siteamb1

Finally check that SCR is running correctly using the command below:

Get-StorageGroupCopyStatus -Identity sitebscr1\scrrestore1 -StandbyMachine siteamb1 fl

At this point your target copy (on the original source machine) will be almost up to date, which means that you are now ready to activate following the procedure laid out above.

Having completed activation, users will now be using the DB on the original source server and you should setup SCR again to replicate to the original target server.
Summary
I hope this document gives a clear idea of how to setup and use SCR. For more information about some other commands available, see the following link:
http://technet.microsoft.com/en-us/library/bb676502.aspx

Wednesday, November 28, 2007

How to resolve Duplicate Microsoft Exchange security groups created after Exchange 2007 installation.

After a failed Exchange 2007 installation or reinstallation ofexchange 2007 server (RTM) you will see duplicate security objects created under Microsoft exchange security groups.
[ ADUC - Microsoft Exchange security Groups]

Below are the steps you need to follow to identify the proper security groups associated and which one to delete.

- Exchange 2007 make use of other-well-knownobjects attirbute to identify these secerity groups. Other well known objects contains a list of containers by GUID and DN (Distinguished name).
- Windows servers use groups to control access to security objects such as NTFS files and folders, registry keys and Active Directory objects. Exchange 2003 uses groups to control access to public folders and user mailboxes as well as to act as distribution lists.

Default groups.
- Exchange Organization Administrators
- Exchange Public Folder Administrators
- Exchange Recipient Administrators
- Exchange Servers
- Exchange View-Only Administrators
- ExchangeLegacyInterop

- when installation is failied and you reinstall exchange 2007 again, duplicate groups will appear with suffix 1 added.
-Follow below steps to delete the duplicte groups.
-install windows support tools.
- run- > ldp.exe
- connect to DC and enter the credentials .
- Select view menu - select configuration container
- navigate through containers .
- Double click on exchange organization ,on the right hand pane search for "OtherwellknownObjects"
- note the groups associated with otherwellknown objects.
- You can safely delete the groups which are not associated with "other wellknownobjects".

Wednesday, October 24, 2007

Exchange 2007 & DNS requirement -1.

* I will explain Basics of DNS first proceed with verifiyng DNS records and troubleshooting DNS issues related to Exchange. Hope you enjoy reading.]

For computer systems to communicate, LAN or WAN, the Internet, they must have the ability to identify one another using some type of a process called. Off several strategies developed DNS is the most reliable one.

Ie is critical in a mail environment for a message to reach its destination where TCP Packets travel through several systems that need to know the Path it has to travel to reach destination.

WINS provided a distributed database for registering and querying dynamic mappings of NetBIOS names for computers and groups. WINS mapped these NetBIOS names to IP addresses, and was originally designed to resolve problems that surrounded NetBIOS name resolution in routed networks.
However, in [EX2k7] Microsoft Exchange Server 2007, support for WINS/NetBIOS broadcasts has been done away with. This makes the importance of DNS in Exchange 2007 greater than ever because if DNS is not configured and working properly, Exchange 2007 will not work at all.

Even Lightweight Directory Access Protocol (LDAP) queries for local mailbox users require the DNS client to be properly configured and functioning on your E2K7 servers.

DNS Defined
-------------

The Internet, & most home, business networks, rely on Internet Protocol (IP) addresses to allow computers to connect to one another. If we had to remember the IP addresses of every website, server, workstation, and printer that we connect to on a daily basis, it would be very difficult to accomplish anything!
The domain name system, commonly abbreviated as DNS, is a hierarchical, distributed database used to resolve, or translate, domain and host names to IP addresses. Using DNS, users, computers, and applications that query DNS can specify remote systems by fully qualified domain names (FQDNs).
DNS is the primary method for name resolution for the Microsoft Windows Server platforms. DNS is also a requirement for deploying Active Directory (AD), though Active Directory is not a requirement for deploying DNS. That being said, in a Microsoft Windows environment, integrating DNS and Active Directory enables DNS servers to take advantage of the security, performance, and fault-tolerance capabilities designed into Active Directory.

Using DNS
----------

DNS is composed of two components: clients and servers. Servers store information about specific components.
When a DNS client needs to contact a host system, it first attempts to do so by using local resources. The client first checks its local cache, which is created by saving the results of previous queries. Items in the local cache remain until one of three things occurs:

- The Time-to-Live (TTL) period, which is set on each item, expires.
- The client runs the ipconfig /flushdns command.
- The DNS client is shut down.

As client attempts to resolve the query using the local HOSTS file, which, on Windows systems, is located in the %systemroot%\system32\drivers\etc directory. This file is used to manually map host names to IP addresses, and remains in place even if the system is rebooted.
Finally, if the client is unable to resolve the query locally, it forwards the request to a DNS server for resolution. The DNS server attempts to resolve the client’s query as detailed next:


- If the query result is found in any of the zones for which the DNS server is authoritative, the server responds to the host with an authoritative answer.

- If the result is in the zone entries of the DNS server, the server checks its own local cache for the information.

If the DNS server is unable to resolve the query, it forwards the request to other DNS servers, sending what is known as a recursive query. The server forwards to other servers that are listed as “forwarders,” or to a set of servers configured in the DNS server’s “Root Hints” file.
The DNS query is forwarded through communications channels on the Internet until it reaches a DNS server that is listed as being authoritative for the zone listed in the query. That DNS server then sends back a reply—either an “affirmative,” with the IP address requested, or a “negative” stating that the host in question could not be resolved.

Who Needs DNS
-----------------

Not all situations require the use of DNS. There are other name resolution mechanisms that exist besides DNS, some of which come standard with the operating system (OS) that companies deploy. While not all scenarios have the requirement of a complex name resolution structure, DNS makes life easier by managing name servers in a domain sometimes with little overhead.

In the past, an organization with a standalone, noninterconnected network could get away with using only host files or WINS to provide NetBIOS-to-IP address name translation. Some very small environments could also use broadcast protocols such as NetBEUI to provide name resolution. In modern networks, DNS becomes a necessity, especially in Active Directory environments.

WINS is no longer used by Exchange with the release of Exchange 2007. The proper installation and configuration of DNS is critical to the successful deployment of Exchange 2007.