What's new

Updating dnsmasq.conf.add does nothing

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

PickleTickle

New Around Here
All I want is to be able to redirect certain URLs on all devices connected to my router to a local ip address (e.g. router.local in the browser should send me to 192.168.0.1)

I have updated the to contain a single line
> cat /jffs/configs/dnsmasq.conf.add address=/test.com/192.168.0.80 > service restart_dnsmasq Done. > cat /etc/dnsmasq.conf ... address=/test.com/192.168.0.80 >dnsmasq -q >dnsmasq --test dnsmasq: syntax check OK.

but when I go to test.com on any device connected to the router, it just times out. Going to 192.168.0.80 navigates to my unraid server as expected.

I followed this multiple times to make sure it was correct (after resetting all changes on the router) https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-domains-with-dnsmasq

Firmware:3004.388.4_0-gnuton1
Router: RT-AX82U

Any ideas?
 
All I want is to be able to redirect certain URLs on all devices connected to my router to a local ip address (e.g. router.local in the browser should send me to 192.168.0.1)

I have updated the to contain a single line
> cat /jffs/configs/dnsmasq.conf.add address=/test.com/192.168.0.80 > service restart_dnsmasq Done. > cat /etc/dnsmasq.conf ... address=/test.com/192.168.0.80 >dnsmasq -q >dnsmasq --test dnsmasq: syntax check OK.

but when I go to test.com on any device connected to the router, it just times out. Going to 192.168.0.80 navigates to my unraid server as expected.

I followed this multiple times to make sure it was correct (after resetting all changes on the router) https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-domains-with-dnsmasq

Firmware:3004.388.4_0-gnuton1
Router: RT-AX82U

Any ideas?
Have you followed sections 2) «Adjust router configuration» and 3) «Adjust DHCP Server Options» of Merlin's instructions?
 
I've not played around with dnsmasq but did "cat /etc/dnsmasq.conf" on my router and it appears "," is the delimiter. The only places I saw (right off) "/" was to locations within the router's filesystem. Though the syntax check passes for you I have to ask whether you're setting that value correctly.

Another question that comes to mind is, instead of "translating", why not just use the /actual/ location in your requests, instead?
 
figured it out - pihole revived itself and was acting as the dhcp server instead of the router.

Unplugged it and ipconfig /renew seems to have solved it
 
guys anyone have a copy of dnsmasq.conf with BBC Player ITV Hub, Channel5 and channel4 domains to whitelist? channel 5 and channel 4 seem to stay blocked then i use them
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top