Is there any way to set my own hostname (i.e. myqnapcloud domain name), and utilize this as internal name server?
What I would like to do is..
1. Set DNSMASQ with my own myqnapcloud.com domain name and local server address (i.e. 192.168.0.2 localhost xxxx.myqnapcloud.com)
In the /etc/dnsmasq.conf, there are "addn-hosts", but it seems disabled. and there are no /etc/banner_add_hosts.
So, probably, following setting need to be enabled. Should I use autorun.sh? or is there any command to do this? (like, setcfg dnsmasq ...?)
Code: Select all
no-hosts expand-hosts addn-hosts=/etc/banner_add_hosts local=/xxxx.myqnapcloud.com/ domain=xxxx.myqnapcloud.com domain-needed bogus-priv
resolv-file=/etc/resolv.dnsmasq is already set and /etc/resolv.dnsmasq is exist with real DNS setting. so it should be okay.
2. Set DNS server for all clients to the address of the QNAP unit. It may be DCHP server setting or network setting at each clients.
Then, if built-in DNSMASQ works fine, I should be able to use the same myqnapcloud.com address to access My QNAP unit from outside or inside.
Anybody has tried this yet? I would like to know how exactly to do this.