capitainabloc
New Around Here
Hi everybody!
I own a server with some website locally homed.
On Windows, Ubuntu, no problem, I just modify the host file as follow:
192.168.0.2 domain1.com
192.168.0.2 name1.domain1.com
192.168.0.3 domain2.com
but on portable devices (android, apple) this modification is not possible (and I don't want to root).
So, as I own a nice RT-AC68U, with the latest Asuswrt-Merlin firmware 380.57, I tried to make some manipulation to have these local DNS entries working for all my connected devices:
- I ssh'ed in the router
- I "vi /jffs/configs/dnsmasq.conf.add"
then
- I added lines
"address=/domain1.com/192.168.0.2"
"address=/name1.domain1.com/192.168.0.2"
"address=/domain2.com/192.168.0.3"
- I rebooted
Unfortunately, I still cant access to my domains and sub-domains using this method.
So I also tries by creating this:
"vi /jffs/scripts/wan-start"
and
"#!/bin/sh
DNSMASQ_CONF=/jffs/configs/dnsmasq.conf.add
echo "address=/domain1.com/192.168.0.2" > $DNSMASQ_CONF
echo "address=/name1.domain1.com/192.168.0.2" >> $DNSMASQ_CONF
echo "address=/domain2.com/192.168.0.3" >> $DNSMASQ_CONF
service restart_dnsmasq"
I also rebooted, with no result...
Would some people have the solution?
Thanks!
I own a server with some website locally homed.
On Windows, Ubuntu, no problem, I just modify the host file as follow:
192.168.0.2 domain1.com
192.168.0.2 name1.domain1.com
192.168.0.3 domain2.com
but on portable devices (android, apple) this modification is not possible (and I don't want to root).
So, as I own a nice RT-AC68U, with the latest Asuswrt-Merlin firmware 380.57, I tried to make some manipulation to have these local DNS entries working for all my connected devices:
- I ssh'ed in the router
- I "vi /jffs/configs/dnsmasq.conf.add"
then
- I added lines
"address=/domain1.com/192.168.0.2"
"address=/name1.domain1.com/192.168.0.2"
"address=/domain2.com/192.168.0.3"
- I rebooted
Unfortunately, I still cant access to my domains and sub-domains using this method.
So I also tries by creating this:
"vi /jffs/scripts/wan-start"
and
"#!/bin/sh
DNSMASQ_CONF=/jffs/configs/dnsmasq.conf.add
echo "address=/domain1.com/192.168.0.2" > $DNSMASQ_CONF
echo "address=/name1.domain1.com/192.168.0.2" >> $DNSMASQ_CONF
echo "address=/domain2.com/192.168.0.3" >> $DNSMASQ_CONF
service restart_dnsmasq"
I also rebooted, with no result...
Would some people have the solution?
Thanks!