customize DNS settings for new domains

nservices

Verified User
Joined
Dec 11, 2008
Messages
302
Hi,
how i can add new CNAME record for new domains
(just change domain.com to www.domain.com)
automatically for new users and new domains in DirectAdmin

Best Regards,
Nservices.
 
I think that its possible do it better

1. create CNAME form domain.com to www.domain.com
(good for SEO)

2. create configuration for rDNS, show domain by ip address

Best Regards,
Nservices.
 
I see you are referring to SEO, then you are probably not talking about the DNS CNAME record (which is already managed by DA) but an external redirect from domain.com to www.domain.com.
By external redirect I mean an HTTP code 301 in response to a request for domain.com that results in the navigator address bar to change to www.domain.com. This is good for SEO, and has already been asked multiple times in this forum: just use the search function.

For rDNS, DA already manages it but I strongly suggest doing it manually because the automatic feature is very limited.
Anyway most (something very close to "all") datacenters don't delegate rDNS but they manage it themselfs, so there is no reason to spend time developing it further.
 
tillo, Thanks for your answers :)

about the DNS
if i try to nslookup domain.com
i get "Non-authoritative answer" message

i can remove this message or i need contact my datacenter support and configure rDNS first ?

Best Regards,
Nservices.
 
Nope, this means that the record comes from a caching nameserver, which is correct.
If you want to test the authoritative record (the original one coming from your nameserver) just run "nslookup domain.com ns1.nameserverdomain.com".

If you disclose the correct domain name we could test it for you and tell you if it's configured correctly. Don't obscure your DNS data.
 
Last edited:
Code:
s4u.co.il.              14400   IN      A       80.179.242.245
s4u.co.il.              14400   IN      NS      ns2.s4u.co.il.
s4u.co.il.              14400   IN      NS      ns1.s4u.co.il.
;; Received 111 bytes from 80.179.242.244#53(ns1.s4u.co.il) in 76 ms
Code:
xhost.co.il.            14400   IN      A       80.179.242.246
xhost.co.il.            14400   IN      NS      ns2.xhost.co.il.
xhost.co.il.            14400   IN      NS      ns1.xhost.co.il.
;; Received 113 bytes from 80.179.242.244#53(ns1.s4u.co.il) in 81 ms
As you can see your nameservers are giving the correct record. No need for CNAME, DA already manages the A record.
 
OK, but...

if i can get links for xhost.co.il and for www.xhost.co.il, its not good for me
i need one "powerful" name for SEO

and as you already write, i Going to do it via .htaccess

tillo, Thanks for your answers.

Best Regards,
Nservices.
 
Back
Top