![]() |
|
|
#1 |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts
|
domain masters/owners what does your A record look like?
before i make an attempt and screw it all up, id like some feedback on a proper way to setup an A record. currently i have
*.example.com pointing to my server ip address. this works great since i have mail.example.com setup in apache as a virtual server. so no issues with that. however i would like http://example.com to also point to the server, but it replies with a DNS error when searching for it in the browser. so it has to be www.example.com for it to open the home page. how should i edit my A record so that i can also reach it without using www ? |
|
|
|
|
|
#2 |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts
|
anyone?
|
|
|
|
|
|
#3 |
|
Creator Solaris Utility DVD
Join Date: Aug 2005
Location: Reinacting scenes from platoon with Charlie Sheen
Posts: 13,708 (4.83/day)
Thanks: 4,366
Thanked 3,295 Times in 2,311 Posts
|
have you tried just adding another entry to your record?
__________________
I Made the Millionth post! | "Please come to WI now so I can beat you over the head with a bratwurst."-Kreij
PS3 mod 8500/8600GT Mod Guide Rebuild a Copperhead Heat Ware NF4 Ultra SLI Mod Solaris Utility DVD 4.0 Broken CPU pin guide Vista Mark |
|
|
|
|
|
#4 |
![]() Join Date: Sep 2008
Location: Weedopia
Posts: 1,169 (0.68/day)
Thanks: 114
Thanked 187 Times in 143 Posts
|
this technically gets done usually both in the Web Server configuration and DNS. In Apache Web Server it is a "ServerAlias". In DNS it's just another A record in the configuration for that domain name.
__________________
|
|
|
|
|
|
#5 |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts
|
right, but what would the A record be for it? i have the virtual servers/alias already setup for the subdomains. thanks.
|
|
|
|
|
|
#6 | |
![]() Join Date: Sep 2008
Location: Weedopia
Posts: 1,169 (0.68/day)
Thanks: 114
Thanked 187 Times in 143 Posts
|
Quote:
If you are renting....contact them and tell them to fix that for you. If you are hosting....You want to be sure both www.example.com and example.com both have the same IP addy. For virtual servers your gonna wanna edit a file for Apache. I think its 'httpd.conf' So Example <VirtualHost *> DocumentRoot /home/www/web ServerName www.example.com ServerAlias example.com </VirtualHost> Your file should look similar.... hope this helps
__________________
Last edited by Munki; Jan 12, 2010 at 01:15 AM. |
|
|
|
|
| The Following User Says Thank You to Munki For This Useful Post: |
|
|
#7 |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts
|
ok i added a blank A record entry for my domain to point to my my server ip. and so now when i put in example.com in the browser it routes me to www.example.com which is better since when i put in example.com it said DNS error.
however, i want it to stay as example.com. i added a VirtualHost entry in my sites-enabled section of apache (that is how it works in ubuntu). i may be missing 1 step. edit: i am the host edit2 note: my whole system runs fine. i am just being anal and would like for the domain name to stay example.com if it is typed that way into the browser. just like techpowerup.com works. Last edited by Easy Rhino; Jan 12, 2010 at 01:58 AM. |
|
|
|
|
|
#8 | |
![]() Join Date: Sep 2008
Location: Weedopia
Posts: 1,169 (0.68/day)
Thanks: 114
Thanked 187 Times in 143 Posts
|
Quote:
![]() Try swaping www. and not www in the file oh...have your tried a Mod_Rewrite in an .htaccess file?
__________________
Last edited by Munki; Jan 12, 2010 at 02:37 AM. |
|
|
|
|
|
|
#9 |
|
Benevolent Dictator
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,789 (4.18/day)
Thanks: 184
Thanked 10,259 Times in 3,173 Posts
|
just add another a record
foo.com. A 127.0.0.1 note the . at the end that signifies you are listing a fqdn |
|
|
|
| The Following User Says Thank You to W1zzard For This Useful Post: |
|
|
#10 |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts
|
i finally got around to working on this. all i had to do was create a virtualhost with serveralias as simply the domain name pointing to the proper document root. simply fix.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What does the 9800GX2 really look like? | hat | NVIDIA | 32 | May 5, 2008 07:12 PM |
| What does this look like to you? | Casheti | General Hardware | 5 | Oct 26, 2007 11:46 PM |
| What does the Stock AM2 Cooler Look Like? | PVTCaboose1337 | General Hardware | 10 | May 30, 2006 11:49 AM |
| What is a MOSFET, what does it look like, and where are they on my motherboard? | W1zzard | Articles | 0 | May 24, 2004 08:11 AM |