Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pure Radios using Frontier Silicon Chip lookup pure.internetradiofrontier.com #5

Open
gavinwill opened this issue Dec 21, 2024 · 0 comments

Comments

@gavinwill
Copy link

gavinwill commented Dec 21, 2024

Hi

I have an old Pure Evoke F3 which uses the silicon frontier chip. Initially when setting up Radio-DNS and Radio-API it would not work. On looking into this further the Pure radios first lookup another domain

TCPDUMP of DNS Requests on Radio-DNS.
In this tcpdump 192.168.160.8 is my Pure Radio and pf is my router (and upstream DNS server)

11:39:12.777426 IP 192.168.160.8.50176 > radio-dns.53: 2+ A? pure.internetradiofrontier.com. (48)
11:39:12.778702 IP radio-dns.59011 > pf.53: 2+ A? pure.internetradiofrontier.com. (48)
11:39:13.767302 IP 192.168.160.8.50176 > radio-dns.53: 2+ A? pure.internetradiofrontier.com. (48)
11:39:13.768619 IP radio-dns.59391 > pf.53: 2+ A? pure.internetradiofrontier.com. (48)
11:39:13.774373 IP pf.53 > radio-dns.59011: 2 2/0/0 CNAME shim-pri.wifiradiofrontier.com., A 192.248.188.143 (105)
11:39:13.775158 IP radio-dns.53 > 192.168.160.8.50176: 2 2/0/0 CNAME shim-pri.wifiradiofrontier.com., A 192.248.188.143 (105)
11:39:16.214951 IP pf.53 > radio-dns.59391: 2 2/0/0 CNAME shim-pri.wifiradiofrontier.com., A 192.248.188.143 (105)
11:39:16.215921 IP radio-dns.53 > 192.168.160.8.50176: 2 2/0/0 CNAME shim-pri.wifiradiofrontier.com., A 192.248.188.143 (105)

I can redirect DNS queries on my router and redirected pure.internetradiofrontier.com to point to my radio-api container 192.168.200.31

dig pure.internetradiofrontier.com @pf +short 
192.168.200.31

At this point restarted Pure radio and radio-api just worked.

Not sure of the usage from Pure radio users but feel that adding another domain into

_DOMAIN = "wifiradiofrontier.com."
would support this quite easily and mean i dont need to run an additional redirect on my router whilst also catching the whole domain

Happy to add a PR if needed.

Adjusting hama.py to this works for me

	_DOMAIN = "wifiradiofrontier.com."
	_PUREDOMAIN = "internetradiofrontier.com"
	_TIME_DOMAIN = "time.wifiradiofrontier.com."
	_UPDATE_DOMAIN = "update.wifiradiofrontier.com."

	def __init__(self):
		self.do_lookup = Config["DO_LOOKUP"]

	def match_domain(self, question:DNSQuestion) -> bool:
		if isinstance(question, DNSQuestion):
			if question.qname.matchSuffix(self._DOMAIN) or question.qname.matchSuffix(self._PUREDOMAIN):
				if question.qtype == QTYPE.A:
					return True

		return False

Many Thanks
Gavin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant