x789 / xonox

An alternative service for legacy NOXON(tm) devices
GNU Affero General Public License v3.0
6 stars 2 forks source link

how to config local DNS? #19

Open kaykouo opened 1 month ago

kaykouo commented 1 month ago

how to config the local DNS to make the NOXON iRadio 300 recognize the legacy.noxonserver.eu etc?

we can change the local DNS for the windows or linux system, but the NOXON will not know unless we setup a local DNS server? can we directly config it in the docerfile to make the DNS server automatic starting?

Configure Your Environment
The NOXON(tm) devices locate their services via DNS. To allow them to find the alternative service, you need to configure your local DNS so that the following names point to the host that runs xonox.

legacy.noxonserver.eu
gate1.noxonserver.eu
x789 commented 1 month ago

Hi @kaykouo, you need to set up a local DNS server and configure your iRadio to use it. If you do not currently have a local DNS server, you can consider using Pi-Hole for this. You do not need to make that DNS server available to xonox or the system that hosts xonox.

kaykouo commented 1 month ago

Hi @kaykouo, you need to set up a local DNS server and configure your iRadio to use it. If you do not currently have a local DNS server, you can consider using Pi-Hole for this. You do not need to make that DNS server available to xonox or the system that hosts xonox.

Hi x789, thanks for your reply, I quickly setup a Pi-Hole service using docker:

services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
      - "8080:80/tcp"
    environment:
      - WEBPASSWORD= #'set a secure password here or it will be random'
      - FTLCONF_LOCAL_IPV4=172.31.93.37
    volumes:
      - './etc-pihole:/etc/pihole'
      - './etc-dnsmasq.d:/etc/dnsmasq.d'
    cap_add:
      - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
    restart: unless-stopped

however it still doesn't work, after I started xonox and call curl --location --request GET 'http://legacy.noxonserver.eu/station', it returns the station list. Then I setup Primary DNS=172.31.93.37 in the iRadio, But my iRadio300 still won't open any station