Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

The non www version of my site is not loading.....i strongly think its DNS and not nginx(I haven't setup an redirect in nginx yet .The www version works perfect

I don't use any cpanel atm and i don't want to use one either I followed this tutorial Its exactly like the one in tutorial above except that i modified his domain to mine Here is my site (Remove www from link and site won't load)

Please help me to solve this problem , i need both of the versions to work .I will redirect to version of my choice later Some extra info: OS - Centos 6 No control panel Guys please help me to solve this non www version of site not loading. Also the tutorial above don't say how to add slave nameserver(ns2).For me the ip of ns 1 is same as ns2. Notice: I am complete noob when it comes to dns , can you please give me setup by setup tutorial

Here are the dns configuration /etc/named.conf

// // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. //

options { listen-on port 53 {; }; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { localhost; }; recursion yes;

dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto;

/* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic"; };

logging { channel default_debug { file "data/"; severity dynamic; }; };

zone "." IN { type hint; file ""; };

zone "" { type master; file ""; };

zone "" { type master; file ""; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; $ORIGIN


@ SOA (12 4h 1h 1w 1h)


www IN A



@ SOA (12 4h 1h $


211 IN PTR

Just a question Accoding to me NS are & then why hostname is in dns

You guys know better , please fix this for me

share|improve this question

2 Answers 2

up vote 1 down vote accepted

THe problem, as @Frederik Nielsen said, it's in the DNS. And, even if modify YOUR config, records aren't even pointing to your DNS Server. They point at To start configuring your DNS server, just go here and it will generate the zone file.

PLus, when the name server at was configured, you probably added the zone as, because the domains and exist! When you added the zone it should be named as, without www. on it. Just see that you can access via

share|improve this answer
You are right in all ways dude but when i add domain (without www) it says domain already registered.So i have no option but to to put domain as – Werulz Aug 12 '12 at 4:46

You have forgotten to create a A record for @.

Check out these dig's for more info:

Post your DNS configuration, so it can be investigated further.

share|improve this answer
Thanks for the quick reply Frederik – Werulz Aug 11 '12 at 16:11
Which file to edit to add the A record...Also please give an example – Werulz Aug 11 '12 at 17:55
@Werulz According to your whois record, your DNS service is being handled by your hosting provider. You will need to use the tools provided by your hosting provider. – Michael Hampton Aug 11 '12 at 18:03
just added dns configuration.....its a dedicated server .My friend just added the suggested NS .We could have changed it to but dns has been propagated already so useless to wait more time.Frederik must be right – Werulz Aug 11 '12 at 18:08
@Werulz as user1460016 correctly states, you have to make the changes at as it doesn't look like you are fully in charge of the DNS setup yourself. – Frederik Nielsen Aug 11 '12 at 18:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.