MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: LotsOfQ on 2017-07-11, 13:02:56

Title: WWW A Record
Post by: LotsOfQ on 2017-07-11, 13:02:56
intodns.com have this error.

Code: [Select]
WWW A Record ERROR: I could not get any A records for www.mydomain.com!

(I only do a cache request, if you recently added a WWW A record, it might not show up here.)

I have waited over 3 days and check dns setting and it's all there. Today I ping www.mydomain.com and it show 'ping: unknown host www.mydomain.com'. But ping mydomain.com then it works fine.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-11, 14:28:46
I've tried 'sh /script/fixdns; sh /script/restart-dns' and even 'sh /script/fix-all' but nothing fixed this. Any idea?
Title: Re: WWW A Record
Post by: MRatWork on 2017-07-11, 14:56:56
I didn't issue for mydomain.com in intodns.com.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-11, 15:10:55
mydomain.com is my domain not the real domain name.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-11, 15:13:52
I think it's related to this issue which is still not solved. I still have to edit it manually every time.
https://forum.mratwork.com/kloxo-mr-bugs-and-requests/dns-templates

This is only happened to a few domains not all. As other domains have no issues.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-11, 16:13:02
Screenshot #1 is from intodns.com

Screenshot #2 is my '{DNS Records}' this is after edited or it will be similar to this https://forum.mratwork.com/kloxo-mr-bugs-and-requests/dns-templates/msg58591/#msg58591
Title: Re: WWW A Record
Post by: MRatWork on 2017-07-11, 16:17:20
Nothing wrong with dns settings. Try 'sh /script/restart-dns' and then check again with intodns.com.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-11, 16:26:16
I did that already and just did it again but no luck. I've even ran 'sh /script/fixdns; sh /script/restart-dns' and no luck.

I ping it and got unknown host
Title: Re: WWW A Record
Post by: MRatWork on 2017-07-11, 17:30:20
Will be fixed in next update.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-11, 17:50:57
I am not sure if this is related. I ran the 'Cache Tester' in WP Super Cache and got this error.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-11, 18:27:02
This also could be related too. I get errors with one of my other WordPress plugin BPS.
ERROR: wp_remote_get() function is blocked or unable to get the URL path

Is this related? This is the only domain that giving these issues. The other domains with the exact setup have no issue.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-11, 19:36:19
Yes, I can confirmed that the last 2 issues:

'Cache Tester' in WP Super Cache and got this error.
and
ERROR: wp_remote_get() function is blocked or unable to get the URL path

are related to this.

I changed my WordPress to non-www then no more errors. When changed it back the errors showed up again.

So I will have to wait for the fixed update.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-12, 07:01:54
Is there something I can do manually for now to have a quick fixed while waiting for next update?
Title: Re: WWW A Record
Post by: MRatWork on 2017-07-12, 07:06:48
Change value of 'cname record' for 'www' to '__base__'.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-12, 07:13:09
Do you mean?

Hostname from www to __base__ and Value to __base__

or

Hostname www and Value __base__ (This is what I already have but not working.)
Title: Re: WWW A Record
Post by: MRatWork on 2017-07-12, 07:16:32
hostname=www, value=__base__.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-12, 07:23:02
I do have that all along but it still not working.
Title: Re: WWW A Record
Post by: MRatWork on 2017-07-12, 07:29:00
Set above setting in 'dns settings' (also better in 'dns template').
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-12, 07:37:59
I have set it in both the DNS setting and the DNS template.
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-12, 07:43:06
I cannot ping www version of the domain from the server. Is it possible that it is being blocked somehow?
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-12, 08:57:05
I just chat with my domain registrar and they look it up for me and the WWW A Record is resolved and working fine. I checked with http://www.dnsstuff.com/tools and it seem working fine too.

But it's not working or resolved on the server itself. I don't know if this give you more clue to what might have happened and how to fixed.
Title: Re: WWW A Record
Post by: MRatWork on 2017-07-12, 13:02:17
Delete 'CNAME record' for 'www'. And then add 'A record' for 'www' where hostname=www and value=IP (as the same as IP for __base__).
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-12, 13:57:57
I didn't the cn www and then added 'A record' hostname=www and value=ip. Then sh /script/restart-all and still the same.

Code: [Select]
<<>> DiG 9.9.9-P6 <<>> www.domain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 3775
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.domain.com.             IN      A

;; ANSWER SECTION:
www.domain.com.      68163   IN      CNAME   domain.com.domain.com.

;; AUTHORITY SECTION:
domain.com.          3205    IN      SOA     ns1.domain.com. admin.domain.com. 2017071232 3600 1800 604800 3600


I deleted it cn www and deleted the A Record www that was just created and still the same when 'dig www.domain.com'.

Code: [Select]
<<>> DiG 9.9.9-P6 <<>> www.domain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 3775
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.domain.com.             IN      A

;; ANSWER SECTION:
www.domain.com.      68163   IN      CNAME   domain.com.domain.com.

;; AUTHORITY SECTION:
domain.com.          3205    IN      SOA     ns1.domain.com. admin.domain.com. 2017071232 3600 1800 604800 3600


Did it cache somewhere or the file didn't change?
Title: Re: WWW A Record
Post by: MRatWork on 2017-07-12, 14:14:25
Try delete browser cache and run 'ipconfig /flushdns' in windows os (for your pc).
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-12, 14:41:31
I used PuTTY to ssh into my VPS. I 'dig www.domain.com' from it. So I am assuming it's server not my computer. Anyway I did as you said. Cleared browser and then 'ipconfig /flushdns'.

I am back PuTTY and 'dig www.domain.com' with the same errors.

Code: [Select]
[root@server ~]# dig www.domain.com

; <<>> DiG 9.9.9-P6 <<>> www.domain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54758
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.domain.com.             IN      A

;; ANSWER SECTION:
www.domain.com.      51865   IN      CNAME   domain.com.domain.com.

;; AUTHORITY SECTION:
domain.com.          1143    IN      SOA     ns1.domain.com. admin.domain.com. 2017071245 3600 1800 604800 3600
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-13, 03:53:32
OK, I think it's an issue with the main machine. My VPS seem fine as check with other dns lookup. The main machine need to flush dns?
Title: Re: WWW A Record
Post by: LotsOfQ on 2017-07-14, 11:12:13
Update: My host have an actual dns server that follow the rules. I have to wait for 7 days. It is now pick up the new www a record. It's all work fine now.

Big thank you for all your help.