• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

domain masters/owners what does your A record look like?

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,449 (2.42/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
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

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,449 (2.42/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
25,892 (3.79/day)
Location
Alabama
System Name Rocinante
Processor I9 14900KS
Motherboard EVGA z690 Dark KINGPIN (modded BIOS)
Cooling EK-AIO Elite 360 D-RGB
Memory 64GB Gskill Trident Z5 DDR5 6000 @6400
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 500GB 980 Pro | 1x 1TB 980 Pro | 1x 8TB Corsair MP400
Display(s) Odyssey OLED G9 G95SC
Case Lian Li o11 Evo Dynamic White
Audio Device(s) Moondrop S8's on Schiit Hel 2e
Power Supply Bequiet! Power Pro 12 1500w
Mouse Lamzu Atlantis mini (White)
Keyboard Monsgeek M3 Lavender, Akko Crystal Blues
VR HMD Quest 3
Software Windows 11
Benchmark Scores I dont have time for that.
have you tried just adding another entry to your record?
 
Joined
Sep 13, 2008
Messages
1,230 (0.22/day)
Location
Metro Atlanta
Processor AMD Ryzen 1700
Motherboard Gigabyte AB350 GAMING 3
Memory 16GB (2x8) 3200MHz
Display(s) Acer 24" LCD
Software Windows 10 Pro
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.
 

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,449 (2.42/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
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.
 
Joined
Sep 13, 2008
Messages
1,230 (0.22/day)
Location
Metro Atlanta
Processor AMD Ryzen 1700
Motherboard Gigabyte AB350 GAMING 3
Memory 16GB (2x8) 3200MHz
Display(s) Acer 24" LCD
Software Windows 10 Pro
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:

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,449 (2.42/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
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:
Joined
Sep 13, 2008
Messages
1,230 (0.22/day)
Location
Metro Atlanta
Processor AMD Ryzen 1700
Motherboard Gigabyte AB350 GAMING 3
Memory 16GB (2x8) 3200MHz
Display(s) Acer 24" LCD
Software Windows 10 Pro
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? :laugh:


Try swaping www. and not www in the file



oh...have your tried a Mod_Rewrite in an .htaccess file?
 
Last edited:

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,049 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
just add another a record
foo.com. A 127.0.0.1

note the . at the end that signifies you are listing a fqdn
 

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,449 (2.42/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
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.
 
Top