You could try pinging the DNS recursive server address in case their resolver IPs are different depending on access method (fibre vs 4G etc).
Try pinging something like whoami.akamai.net
or dig TXT o-o.myaddr.l.google.com +short
or if you want to grab your own IP by making a direct query to Google's DNS servers
dig TXT o-o.myaddr.l.google.com @ns1.google.com +short
Obviously still dependent on connectivity to Google/Akamai/CDN infrastructure... but then again if you are having trouble reaching these providers do you really have full Internet access... e.g. https://www.geekzone.co.nz/forums.asp?forumid=40&topicid=315747




