Adding DNS records (with "www" and without)

Hi all,

I still one question, and I didn't really find answers yet…

I try to use my domain name (bought on IWantMyName) on my brand new Linode…

I made the necessary changes in IWantMyName to reflect Linode DNS, not really hard, even for me.

After I follow the Linode tutorial, and it works after two hours.

And it stop working this morning, without making any changes on my Linode panel.

I start it again, adding the "www" on my reverse DNS panel, and it work again, but only when I use the "www", otherwise it won't.

www.simonalibert.com

simonalibert.com

Should I use the "www" or not? And how I can make both working? (with "www" and without)

Thanks you very much!

-

Simon

12 Replies

Both http://www.simonalibert.com and http://simonalibert.com take me to the same page, so I'm not sure you have a problem. Your rDNS should match the hostname set on your server. If your server's hostname is www, then make it that. However, rDNS doesn't have an effect on whether having the www there or not will take someone to the same page.

@bacon:

Both http://www.simonalibert.com and http://simonalibert.com take me to the same page, so I'm not sure you have a problem. Your rDNS should match the hostname set on your server. If your server's hostname is www, then make it that. However, rDNS doesn't have an effect on whether having the www there or not will take someone to the same page.

Thanks!

That's weird! I constantly have errors if I try to reach my domain name without the "www"…

I tried with all browsers, devices, etc. :shock:

BTW, it's better to add the "www" when setting up the DNS panel in Linode (Adding DNS Records & Reverse DNS tabs)?

Thanks again

Without www does not work for me. You'll have to add a record with no name and the IP of your Linode in the DNS manager.Then it'll resolve without www as well.

@Nuvini:

Without www does not work for me. You'll have to add a record with no name and the IP of your Linode in the DNS manager.Then it'll resolve without www as well.

Thanks Nuvini for your answer.

Unfortunately, I don't understand what you mean by "no name".

This is what I've use for my virtual host

# domain: simonalibert.com
# public: /home/simon_alibert/public/simonalibert.com/

 <virtualhost *:80=""># Admin email, Server Name (domain name), and any aliases
  ServerAdmin hello@simonalibert.com
  ServerName  www.simonalibert.com
  ServerAlias simonalibert.com

  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html index.php
  DocumentRoot /home/simon_alibert/public/simonalibert.com/public

  # Log file locations
  LogLevel warn
  ErrorLog  /home/simon_alibert/public/simonalibert.com/log/error.log
  CustomLog /home/simon_alibert/public/simonalibert.com/log/access.log combined</virtualhost> 

Thanks again for your time (both of you)

Without a name - like this:

![](" />

Thanks (again) Nuvini!

It's weird, the blank name was already there.

Screencaps of my Linode Panel

Maybe I should change my setting, to add the "www" to my domain, in my linode panel DNS records ?

@simon*:

Thanks (again) Nuvini!

It's weird, the blank name was already there.

Screencaps of my Linode Panel

Maybe I should change my setting, to add the "www" to my domain, in my linode panel DNS records ?

Not sure what you mean - you already have a www record according that that screenshot.

However, it seems that I can now resolve simonalibert.com without www as well:

dig a simonalibert.com  

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> a simonalibert.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60181
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;simonalibert.com.              IN      A

;; ANSWER SECTION:
simonalibert.com.       21586   IN      A       109.74.206.109

;; Query time: 8 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Jun  9 15:03:26 2013
;; MSG SIZE  rcvd: 50

So looks good right now :)

Thanks again for your help!

I updated and remove the www in my Linode panel.. It look correct now but none of them work anymore, I guess I should wait a little… :)

Thanks again

/* Edit

I really don't get it, now it work only with "www" and not without.. :roll:

*/

You removed the www? Why? Do you only want to use it without www? It was fine as you showed it in your last screenshot.

As for resolving, both www and none www seem to resolve fine at the moment:

dig a simonalibert.com @ns1.linode.com    

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> a simonalibert.com @ns1.linode.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51684
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;simonalibert.com.              IN      A

;; ANSWER SECTION:
simonalibert.com.       86400   IN      A       109.74.206.109

;; AUTHORITY SECTION:
simonalibert.com.       86400   IN      NS      ns4.linode.com.
simonalibert.com.       86400   IN      NS      ns3.linode.com.
simonalibert.com.       86400   IN      NS      ns2.linode.com.
simonalibert.com.       86400   IN      NS      ns1.linode.com.
simonalibert.com.       86400   IN      NS      ns5.linode.com.

;; Query time: 132 msec
;; SERVER: 69.93.127.10#53(69.93.127.10)
;; WHEN: Sun Jun  9 16:53:14 2013
;; MSG SIZE  rcvd: 147
dig a www.simonalibert.com @ns1.linode.com

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> a www.simonalibert.com @ns1.linode.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60412
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.simonalibert.com.          IN      A

;; ANSWER SECTION:
www.simonalibert.com.   86400   IN      A       109.74.206.109

;; AUTHORITY SECTION:
simonalibert.com.       86400   IN      NS      ns3.linode.com.
simonalibert.com.       86400   IN      NS      ns5.linode.com.
simonalibert.com.       86400   IN      NS      ns2.linode.com.
simonalibert.com.       86400   IN      NS      ns1.linode.com.
simonalibert.com.       86400   IN      NS      ns4.linode.com.

;; Query time: 132 msec
;; SERVER: 69.93.127.10#53(69.93.127.10)
;; WHEN: Sun Jun  9 16:54:41 2013
;; MSG SIZE  rcvd: 151

Thanks again for your time, I really appreciate it!

Frankly, I don't understand what happend.

Both access seems to work, I've just asked friends to check it out..

But on my laptop, it does not!

And the most unbelievable things, it doesn't not work on my iPhone when it's connected with Wifi, but it work when I use 3g.

Thanks again!

Probably some DNS Caching. Will just have to wait that out.

@Nuvini:

Probably some DNS Caching. Will just have to wait that out.

Thanks again, it work perfectly now!

Reply

Please enter an answer
Tips:

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] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct