techPowerUp! Forums

Go Back   techPowerUp! Forums > Hardware > Networking & Security

Reply
 
Thread Tools
Old Jan 11, 2010, 01:02 AM   #1
Easy Rhino
Linux Advocate
 
Easy Rhino's Avatar
 
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts

System Specs

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 ?
Easy Rhino is offline  
Reply With Quote
Old Jan 11, 2010, 11:52 PM   #2
Easy Rhino
Linux Advocate
 
Easy Rhino's Avatar
 
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts

System Specs

anyone?
Easy Rhino is offline  
Reply With Quote
Old Jan 11, 2010, 11:58 PM   #3
Solaris17
Creator Solaris Utility DVD
 
Solaris17's Avatar
 
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
Send a message via ICQ to Solaris17 Send a message via AIM to Solaris17 Send a message via MSN to Solaris17 Send a message via Yahoo to Solaris17 Send a message via Skype™ to Solaris17

System Specs

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
Solaris17 is offline  
Reply With Quote
Old Jan 12, 2010, 12:41 AM   #4
Munki
1000 Posts
 
Munki's Avatar
 
Join Date: Sep 2008
Location: Weedopia
Posts: 1,169 (0.68/day)
Thanks: 114
Thanked 187 Times in 143 Posts
Send a message via AIM to Munki

System Specs

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.
__________________
Munki is offline  
Reply With Quote
Old Jan 12, 2010, 01:00 AM   #5
Easy Rhino
Linux Advocate
 
Easy Rhino's Avatar
 
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts

System Specs

Quote:
Originally Posted by Munki View Post
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.
right, but what would the A record be for it? i have the virtual servers/alias already setup for the subdomains. thanks.
Easy Rhino is offline  
Reply With Quote
Old Jan 12, 2010, 01:09 AM   #6
Munki
1000 Posts
 
Munki's Avatar
 
Join Date: Sep 2008
Location: Weedopia
Posts: 1,169 (0.68/day)
Thanks: 114
Thanked 187 Times in 143 Posts
Send a message via AIM to Munki

System Specs

Quote:
Originally Posted by Easy Rhino View Post
right, but what would the A record be for it? i have the virtual servers/alias already setup for the subdomains. thanks.
Are you hosting this or are you renting?

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.
Munki is offline  
Reply With Quote
The Following User Says Thank You to Munki For This Useful Post:
Old Jan 12, 2010, 01:46 AM   #7
Easy Rhino
Linux Advocate
 
Easy Rhino's Avatar
 
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts

System Specs

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.
Easy Rhino is offline  
Reply With Quote
Old Jan 12, 2010, 01:59 AM   #8
Munki
1000 Posts
 
Munki's Avatar
 
Join Date: Sep 2008
Location: Weedopia
Posts: 1,169 (0.68/day)
Thanks: 114
Thanked 187 Times in 143 Posts
Send a message via AIM to Munki

System Specs

Quote:
Originally Posted by Easy Rhino View Post
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.
Arent we all anal?


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.
Munki is offline  
Reply With Quote
Old Jan 12, 2010, 10:25 AM   #9
W1zzard
Benevolent Dictator
 
W1zzard's Avatar
 
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 13,789 (4.18/day)
Thanks: 184
Thanked 10,259 Times in 3,173 Posts
Send a message via ICQ to W1zzard Send a message via AIM to W1zzard Send a message via MSN to W1zzard

System Specs

just add another a record
foo.com. A 127.0.0.1

note the . at the end that signifies you are listing a fqdn
W1zzard is online now  
Reply With Quote
The Following User Says Thank You to W1zzard For This Useful Post:
Old Jan 22, 2010, 06:14 AM   #10
Easy Rhino
Linux Advocate
 
Easy Rhino's Avatar
 
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts

System Specs

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.
Easy Rhino is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 09:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts