Getting A/AAAA records right for two domains

I have two domains. One is and the other is

I'm trying to get my web server to distinguish and give browsers the corresponding content (static at this point).

First things first, I'm wondering if I have the A/AAAA records set up correctly. I have both domains set up as "masters" and pointing to my IP. Within the domains the A records are as follows (am leaving out the AAAA records from the question, they are "parallel"):

domain (two A records)
hostname: web

domain (two A records)
hostname: web

All point to the same IP.

Browsing the URL's gives the following: - reaches index.htm for - reaches index.htm for - reaches index.htm for (OK for now) - reaches

I assume that once the webserver software is configured correctly to handle the split, will arrive at the index.htm for I'm not so concerned about that not being set up correctly YET.

First things first, shouldn't work the same as Am I misunderstanding how to set up A records?

Curiously, brings up the index.htm for the site. I don't understand why this is happening. The hexara content folder is NOT located within the adonax content folder system.

Does any of this have to do with the /etc/hosts file? (If I understand correctly, the "hosts" file only pertains to requests originating from my Linode, and has nothing to do with requests arising from an external browser.)

I would like to verify I have these A files set up correctly before taking the issue to a forum for the Jetty software I'm using as a web server.

2 Replies


First things first, shouldn't work the same as

Not necessarily. As far as the web server is concerned they are 2 different hostnames - as much as and and can be configured independently. It’s just become an “accepted norm” that the www and non-www are the same site.

Does any of this have to do with the /etc/hosts file?

No you are correct - outbound DNS queries from your Linode use the hosts file.

This A record does not exist in DNS. Looks like the page you’re seeing is one being “faked” by your ISP when you encounter a non-existent website.

You do need to set up both a “root” A/AAAA record (e.g. and a “” record to be able to use both the www and non-www version of your domain. currently only has the root record, not the www one. has both records in place.

Thanks for the assistance.

I can't believe how dumb this mistake was. I had put in "web" instead of "www".

It is good to get the reassurance that I am interpreting the "hosts" file correctly.

Also your confirmation of what should be occurring with the helped make me take a second, and closer look. Again thanks for taking the time!


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct