• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

How do I redirect from http://www.domainname to http://domainname

Our DNS is hosted on Xrio DeanSoft - Qbalancer. We want our website to be accessed either by using www or without.
0
ittsd
Asked:
ittsd
  • 7
  • 3
1 Solution
 
mfhorizonCommented:
Create an A record as below

yourcompanyweb.com     destination_IP    TTL

If MX record not created, Create an MX record as below

yourcompanyweb.com     destination_IP/URL    TTL

It should work fine.
0
 
mfhorizonCommented:
A Record
Short for Address Record: Maps from an IP address to a domain name. An A Record is also referred to as a host or hostname.

CNAME Record
Short for Canonical Name Record: A special type of DNS record in a DNS database used to create an alias from one hostname to another.
For example: If, www.YourHostedDomainName.com, is a CNAME to, YourHostedDomainName.com - then this means that anyone accessing www.YourHostedDomainName.com will be pointed to the same IP address as YourHostedDomainName.com.

This is useful when your IP address changes, since you will only have to update the YourHostedDomainName.com DNS entry and www.YourHostedDomainName.com will automatically point to the right place.

Note: We recommend the use of individual A Records rather than CNAME aliases. It is recognized as a "best practice" among DNS experts to minimize the use of CNAME aliases.

MX Record
Short for Mail Exchanger Record: This DNS record is an entry in a DNS database that identifies the email server that handles email for a given domain or subdomain.

TXT Record
TXT Record provides the ability to associate arbitrary text with the host or other name. The TXT record is used to define the SPF (Sender Policy Framework) information record which may be used to validate legitimate email sources from a domain. See this Knowledge Base article for more information on SPF records.

0
 
ittsdAuthor Commented:
Can the domain name and the A record name be the same ?
0
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 
mfhorizonCommented:
i will explain that A reocrds are the name giving to your Hosting IP address.

like my web ip addres is 101.101.101.101, i must know it.

Then i will create A record entries as
www.mywebsite.com
mywebsite.com
0
 
mfhorizonCommented:
so "www.mywebsite.com" and "mywebsite.com" will automatically direct traffics to my hosting IP addresses where I have hosted my website.
0
 
mfhorizonCommented:
Sorry I missed your point, Yes, domain name is actually you primary A record.
0
 
ittsdAuthor Commented:
I think my question is not clear.

Our zone name in dns is companyname.com
We have a A record defined in this as www

So our website can be accessed with http://www.companyname.com

We need our website to be accesed with only http://companyname.com

I am not able to define a A record for companyname.com as this is the dns zone name


0
 
mfhorizonCommented:
I am sure I have answered your query. But it seems there is a term difference. I rephrase that In your Zone name  in dns you add another A record with blank value. (not www) or try with a dot ' . 'It should work!!

It seems that the way you define A record is differrent in your web control panel. I am attaching here an example from www.discountasp.net control panel where my website is hosted.

If your problem not solved send me the screenshot here or at kashif.abbas@live.com i will recoomend as required.
a-records.JPG
0
 
mfhorizonCommented:
Considering highlighted entries above, I am sure you can get similar idea for your web referencing....

Good Luck!
0
 
ittsdAuthor Commented:
Thanks. Works fine with a blank entry.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now