Manual DNS entry - guidance needed

I’m trying to set up YCast [1] and I need to redirect all traffic going to vtuner.com to a local machine (192.168.1.31). From the YCast manual: “You need to create a manual entry in your DNS server (read ‘Router’ for most home users). vtuner.com (more specifically *.vtuner.com ) should point to the machine YCast is running on.”
How can I do it on Turris Omnia [2]? I guess it’s in LuCi->Network->DHCP and DNS, but then I’m lost. Should I create a “Additional servers file” (see Advanced Settings)? If so, where I should put the file to make it permanent?

I have ssh access to the router.

[1] https://github.com/milaq/YCast
[2] OpenWrt omnia 15.05 r47055 / LuCI fd63d5cc7dfc69c640b741dceb80555141a80670 branch (git-19.318.61483-fd63d5c)

See here (Section Adding static address records): Turris Documentation

So in your case add „192.168.1.31 vtuner.com“… BUT this only redirects vtuner.com, not its subdomains. If you know which subdomains you need to redirect you can add them manually, too. Maybe someone else knows how to redirect a domain in kresd including its subdomains, maybe using a custom kresd config file…

EDIT:

This LuCI Section configures dnsmasq, which is standard dns resolver in vanilla OpenWRT but not in Turris OS, which uses kresd. There is no LuCI Section for kresd configuration, just some configuration in Foris → DNS, everything else needs to be configured over ssh…

EDIT 2: required subdomains are listed here: YCast/README.md at master · milaq/YCast · GitHub , so my solution should be sufficient :slight_smile:

Just add „192.168.1.31 sub.vtuner.com sub2.vtuner.com vtuner.com

2 Likes

Thank you!

root@turris:~# cat /etc/config/resolver | grep -A 2 -B 6 addit
config resolver 'kresd'
    option rundir '/tmp/kresd'
    option log_stderr '0'
    option log_stdout '0'
    option forks '1'
    #by Przemo
    list hostname_config '/etc/hosts.additional'

    config resolver 'unbound'
root@turris:~# cat /etc/hosts.additional 
192.168.1.31 denon.vtuner.com vtuner.com
1 Like

Thank you! I got it working! :smiley:

2 Likes