Welcome Guest ( Log In | Register )

Bump Topic Topic Closed RSS Feed

Outline · [ Standard ] · Linear+

Unifi Official TM UniFi High Speed Broadband Thread V41, READ 1ST PAGE FOR RELEVANT WIFI INFO

views
     
SUSnonamer
post Nov 27 2023, 08:45 AM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
QUOTE(kwss @ Nov 27 2023, 04:08 AM)
You are misdiagnosing the issue. It has nothing to do with DNS or IPv6.

lowyat.net:
CODE

$ dig +short lowyat.net a lowyat.net aaaa @1.1.1.1
104.26.7.73
172.67.74.89
104.26.6.73
2606:4700:20::ac43:4a59
2606:4700:20::681a:749
2606:4700:20::681a:649

$ dig +short lowyat.net a lowyat.net aaaa @8.8.8.8
172.67.74.89
104.26.7.73
104.26.6.73
2606:4700:20::681a:649
2606:4700:20::681a:749
2606:4700:20::ac43:4a59


lazada.com.my:
CODE

$ dig +short lazada.com.my a lazada.com.my aaaa @1.1.1.1
47.246.167.7
47.246.165.39
47.246.165.72
47.246.165.182
47.246.165.115
47.246.167.210
47.246.167.252
47.246.167.254

$ dig +short lazada.com.my a lazada.com.my aaaa @8.8.8.8
47.246.167.7
47.246.165.39
47.246.165.72
47.246.165.182
47.246.165.115
47.246.167.210
47.246.167.252
47.246.167.254


As you can clearly see, both Cloudflare DNS and Google DNS return the same result. So changing what DNS server you use doesn't affect the result one bit.

For lowyat.net, all IPv4 go to HK directly. all IPv6 go to SG directly.
lowyat.net uses Cloudflare DNS as their authoritative DNS and also CDN.
Simply using IPv6 cut latency in half!
Trying a few other Cloudflare fronted domain, not all of them have this problem, which I suspect is how Cloudflare distribute traffic between HK and SG datacenter.

For lazada.com.my, all IPv4 go to HK > SG. No IPv6 support.
lazada.com.my uses Alibaba Cloud as their authoritative DNS.

To further diagnose this issue, TM need to provide public access to their BGP Looking Glass. Alternatively anyone who has peering with TM BGP + full internet routing table should be able to diagnose it properly.

pbebank.com:
CODE

$ dig +short pbebank.com a pbebank.com aaaa @1.1.1.1
203.115.208.218

$ dig +short pbebank.com a pbebank.com aaaa @8.8.8.8
43.241.40.218

$ dig +short www.pbebank.com a www.pbebank.com aaaa @1.1.1.1
203.115.208.218

$ dig +short www.pbebank.com a www.pbebank.com aaaa @8.8.8.8
203.115.208.218

$ dig +short www2.pbebank.com a www2.pbebank.com aaaa @1.1.1.1
43.241.40.253

$ dig +short www2.pbebank.com a www2.pbebank.com aaaa @8.8.8.8
43.241.40.253


Here we can see the apex domain return a different IP address: 203.115.208.218 (Cloudflare), 43.241.40.218 (Google)

43.241.40.218 and 43.241.40.253 (AS6453 TATA COMMUNICATIONS (AMERICA) INC) go to Singapore and come back to Kuala Lumpur.
203.115.208.218 (AS10204 Arcnet NTT MSC ISP) route directly via MyIX.

Let's flush the DNS resolver cache:
Google: https://dns.google/cache
Cloudflare: https://1.1.1.1/purge-cache/

CODE

$ dig +short pbebank.com a pbebank.com aaaa @8.8.8.8
43.241.40.218

$ dig +short pbebank.com a pbebank.com aaaa @1.1.1.1
58.26.83.218


You can see Cloudflare DNS now gets a new IP address while Google DNS gets the same IP address.
58.26.83.218 (AS4788 TM TECHNOLOGY SERVICES SDN. BHD.) is super fast since it is inside TM network and I am using TM.

Let's flush the cache for a second time:
CODE

$ dig +short pbebank.com a pbebank.com aaaa @8.8.8.8
43.241.40.218

$ dig +short pbebank.com a pbebank.com aaaa @1.1.1.1
203.115.208.218


Notice we are back to square one? This must be pbebank.com authoritative DNS problem.
CODE

$ dig +short ns pbebank.com
ns1.a1.impervasecuredns.net.
ns1.a0.impervasecuredns.net.
ns1.a2.impervasecuredns.net.


It might be Imperva problem, or more likely Public Bank configure Geo IP resolver incorrectly.
EDIT:
CODE

$ wget -O - -4 https://cloudflare.com/cdn-cgi/trace
--2023-11-27 04:42:50--  https://cloudflare.com/cdn-cgi/trace
Resolving cloudflare.com (cloudflare.com)... 104.16.132.229, 104.16.133.229
Connecting to cloudflare.com (cloudflare.com)|104.16.132.229|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘STDOUT’

-                            [<=>                                ]       0  --.-KB/s               fl=632f34
h=cloudflare.com
ip=115.134.178.XXX
ts=1701031371.005
visit_scheme=https
uag=Wget/1.21.3
colo=SIN
sliver=010-tier1
http=http/1.1
loc=MY
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off
rbi=off
kex=X25519

$ wget -O - -6 https://cloudflare.com/cdn-cgi/trace
--2023-11-27 04:42:57--  https://cloudflare.com/cdn-cgi/trace
Resolving cloudflare.com (cloudflare.com)... 2606:4700::6810:84e5, 2606:4700::6810:85e5
Connecting to cloudflare.com (cloudflare.com)|2606:4700::6810:84e5|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘STDOUT’

-                            [<=>                                ]       0  --.-KB/s               fl=497f454
h=cloudflare.com
ip=2001:e68:5427:A:B:C:D:E
ts=1701031377.522
visit_scheme=https
uag=Wget/1.21.3
colo=SIN
sliver=010-tier1
http=http/1.1
loc=MY
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off
rbi=off
kex=X25519


Looks like Cloudflare is working properly over both IPv4 and IPv6. colo=SIN, loc=MY
A quick look into their community forum shows that this is an intended behavior for customer using Free and Pro plan. Fork out the money for Business or Enterprise plan and the problem will disappear.
Maybe lowyat.net should just pay more.
*
it might be load balancing mechanism using dns...if the application can handle it then what is the problem?
SUSnonamer
post Nov 27 2023, 10:56 AM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
QUOTE(kwss @ Nov 27 2023, 09:49 AM)
You mean pbebank? One prefix is so much faster than the other.
I am sure many people don't mind as long as it works.
*
what means by prefix? if they have 2 datacenter the slower server will be the one remotely accessing the shared database

SUSnonamer
post Nov 28 2023, 08:33 AM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
QUOTE(BenYeeHua @ Nov 26 2023, 05:17 PM)
I guess some ISP is special?
Unsure, can be their tech setup it wrongly? hmm.gif
Based on this thread, UniFi
https://forum.lowyat.net/topic/5073652/+100

I think If you feel slow down, then try disable IPv6 la, but the issues is mostly caused by the throttling of UniFi on SG, like the rerouting of HK to SG CloudFlare now.... doh.gif  doh.gif
---
For your info, I performed testing on www.lazada.com.my with IPv4 and IPv6 of Google DNS and CloudFlare DNS.
Here is the result.

2606:4700:4700::1111, MY
2606:4700:4700::1001, MY
1.1.1.1, SG Akamai for IPv4/IPv6
1.0.0.1, SG Akamai for IPv4/IPv6

2001:4860:4860::8888, MY
2001:4860:4860::8844, MY
8.8.8.8, MY for both
8.8.4.4, MY for both

This is why I prefer Google DNS, lol.

For the extra, both IPv6 DNS got reaching issues for Public Bank's DNS server, lol.
https://www2.pbebank.com/

Yes, there is 10s timeout for public bank.(old is 30s)
This might be caused by the caching time TTL is 30s, but strange that if I check via Android network tools, it is fine.... hmm.gif
---
More testing on PBe, it works well also on DNS over HTTPS, both IPv4/IPv6, so... hmm.gif
Seem like only happen on DNS over UDP for IPv6 la.
*
i do not understand what the problem is with pbebank but i think u should not be using both ipv6 and ipv4 dns...should be using one type only...so far using ipv6 dns only i not encounter any problem do not know what is the point in using ipv4
SUSnonamer
post Nov 28 2023, 08:39 AM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
QUOTE(Oltromen Ripot @ Nov 28 2023, 08:37 AM)
some servers are ipv4-only.
some servers are ipv6-only.
some servers are hybrid.

you'll need both.
*
nope im using cloudflare ipv6 dns only at the router and no problem at all
SUSnonamer
post Nov 28 2023, 10:12 AM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
QUOTE(Oltromen Ripot @ Nov 28 2023, 09:31 AM)
DNS by right should be able to resolve either IPv4 (A records) and IPv6 (AAAA records).

What i wrote is, your destination servers that a DNS is pointing towards can either be IPv4-only, IPv6-only, or hybrid.
While there is translation layer available - without which IPv4 and IPv6 will not be able to interconnect to each other -, that is not the point i am trying to deliver.

On my part, I do not enable IPv6 at all on all the servers I am taking care of. Strictly IPv4-only.
I don't want the pain of having to administer and decipher the long long IPv6 addresses whenever there is hosting trouble.
The world should have just elongated the IPv4 addresses and otherwise stick to how IPv4 works instead of introducing a whole new worm called IPv6.
Don't have to stunble upon new firewall quirks, don't have to use translator, don't have to come out with mathwiz calculations, ....
*
um...what u are doing is just trying to twist away after getting caught of not even knowing the basics...think people are that dumb to not see it
SUSnonamer
post Nov 28 2023, 10:19 AM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
QUOTE(BenYeeHua @ Nov 28 2023, 10:09 AM)
Aiya, he prefer pro, me prefer real-life experience.
In the end, it is his lose, because I still switch my DNS based on network condition.

Google DNS give MY server lag?
go one.one.one.one! SG directly!

IP failed?
Seek new IP address using global server ping!(for those not using Anycast IP for CDN la)

I always being to that, lol. tongue.gif
As I used to TM bad routing, no choice la. laugh.gif

Unless I gonna burn money buying VPN as solution, that is another case la.
Yes, as fallback.
I think you never stay at location that have IPv6 broken, and fallback to IPv4 only?
It is a fallback la. icon_rolleyes.gif

Even it don't happen anymore, I was doing it because it happen before TM change equipment during midnight.
Also found out interesting bug on Google Play app, which taken 30s to fallback IPv4, lol. laugh.gif
Fun fact, until today, most China website still using IPv4.

So yes, even China internal network is a mess when coming to IPv6. doh.gif
*
unifi ipv6 network ever got "broken"? even if it does it take only few seconds to configure the ipv4 dns instead of your dns requests getting permanently roundrobin or whatever to a ipv4 entry

This post has been edited by nonamer: Nov 28 2023, 10:20 AM
SUSnonamer
post Nov 28 2023, 04:07 PM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
QUOTE(BenYeeHua @ Nov 28 2023, 03:38 PM)
Finish liao, just bug.

Here is your last popcorn for router bug.
Riger1
Riger2
Riger3

---

SHORTEST: Enable Secure DNS at all cost, it is safe and fast.

A bit long: Enable Secure DNS and change your TM DNS on your router, as many IoT device not supporting Security DNS.
Longer:
1. NETIS router's DNS relay drop DNS result that's "status: SERVFAIL", when it shouldn't
2. TM DNS respond every DNS request as status: NOERROR, when it shouldn't
3. PBE forget to list AAAA as EMPTY/NULL on their DNSSEC, when it is allowed, it is still not recommended.
As it may open attack for IPv6 customer, unsure on this part got more vulnerability to combo as an attack or not, lol

Combine 3 together, it works based on bug, but not based on safety.
---
So, just do whatever you need to be done la.
1. Secure DNS at all cost
2. Don't use DNS relay on your old router, setup your DHCP and DHCPv6 or SLAAC DNS,  bypass it and connect directly to internet's GOOGLE or 1.1.1.1 DNS SERVER by client.

Unless it is latest router with DNS relay that supported DoT, then use it!

Done.
*
how about if the netis router disable ipv6 and use ipv4 only? looks like just a matter of the ipv6 code just not robust enough
SUSnonamer
post Nov 28 2023, 04:46 PM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
QUOTE(BenYeeHua @ Nov 28 2023, 04:38 PM)
It is not IPv6 code, it is DNS relay code.

For example, you might have TuneTalk, instead of sending the SMS delivery report to you, TuneTalk choose to drop it.
But if you testing sms on TuneTalk shortcode, you will receiving it.

It is like I disabled "Call Forward Unanswered/No Answer" on my TuneTalk to prevent extra charge on other telcos that calling me(yes, TuneTalk's voicebox also bite money, lol), old TuneTalk honor it, but now it is enforced redirect to voicebox or "The person you call is not available, pls try again"...
-----
So, your browser expect to receive A Record and AAAA record, but A received, only AAAA error message not received.
Because your router's DNS relay seeing AAAA as a Error message, dropped it instead of telling your browser, while it should not do that.

If there is any application works based on DNS's error message, including A record for IPv4, they will facing the same issues.

For example, I gonna dig this issues, I ran "dig a dnssec-failed.org".
CODE
dig a dnssec-failed.org

; <<>> DiG 9.16.37 <<>> a dnssec-failed.org
;; global options: +cmd
;; connection timed out; no servers could be reached

The application tell you, it is your DNS server or connection failed, timeout, which is wrong, right?

It should be
CODE
dig a dnssec-failed.org @1.1.1.1

; <<>> DiG 9.16.37 <<>> a dnssec-failed.org @1.1.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 44301
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; EDE: 9 (DNSKEY Missing): (no SEP matching the DS found for dnssec-failed.org.)
;; QUESTION SECTION:
;dnssec-failed.org.             IN      A

;; Query time: 10 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Tue Nov 28 16:31:27 Malay Peninsula Standard Time 2023
;; MSG SIZE  rcvd: 103

And hei, now, this application know it is DNS error on server side, with the EDE: 9 (DNSKEY Missing)!!!

So it happen to A and AAAA record.
----
Disable IPv6 will solve it?
Nope, it will workaround it, it is like closing your eyes, pretending there is no error.
And how about when it happen to A record?
Still ignore it?

Anyways,
Will it works?
Yes it works.

Is it safe?
Nope, no one need something that modify your result as MITM!!!!
Lucky it just drop it, not modify it.... sweat.gif
*
other routers like u said wont have the same issue...

is it during troubleshooting u used dig @at until never realize ur own operating system not returning dns?

Topic ClosedOptions
 

Change to:
| Lo-Fi Version
0.2336sec    0.29    7 queries    GZIP Disabled
Time is now: 30th November 2025 - 01:44 PM