I've been with this WEIRD problem on my server. I've been setup a DNS server (BIND) for two domains, but somehow in one of them do not resolve with www. I tried with CNAME an A record with no luck. (The same configuration is in the other domain)
$TTL 4h
$ORIGIN transparenciaactiva.gob.sv.
@ IN SOA ns1.domain.com. root.transparenciaactiva.gob.sv. (
2014030301 ; serial
4h ; refresh (4 hours)
1h ; retry (4 hours)
2w ; expire (2 weeks)
1h ; minimum (1 hour)
)
IN NS ns1.domain.com.
IN NS ns2.domain.com.
IN A 178.63.84.xxx
www IN CNAME @
Ping gives me this error:
ping: unknown host
host -a www.transparenciaactiva.gob.sv
Trying "www.transparenciaactiva.gob.sv"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22245
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.transparenciaactiva.gob.sv. IN ANY
;; ANSWER SECTION:
www.transparenciaactiva.gob.sv. 242098 IN CNAME 178.63.84.xxx.transparenciaactiva.gob.sv.
In some places the ping works in other places the domain with "www" points to 127.0.0.1 but without points to te server, also the domain with "www" it doesn't works at all in the server itself.
Any ideas on this issue?
Thanks in advance.