What's new

add local DNS entries on my Asus RT-AC68U

  • 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!

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!
 
What does a nslookup query show? I have added the local address for my ddns entry for internal resolution of services running using the same approach as you.
 
What does a nslookup query show? I have added the local address for my ddns entry for internal resolution of services running using the same approach as you.


hi!
thanks for answer.
Did you manage with your configuration?

this is my nslookup:

yo@RT-AC68U:/tmp/home/root# nslookup host.domain.com
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost.localdomain

Name: host.domain.com
Address 1: 192.168.0.21 host.domain.com
 
Do you get the correct internal address when doing an nslookup on your other devices? If yes the router and dns are setup correctly. I assume pinging the fqdn of host.domain.com works ok?

I access my internal mail server using my ddns fqdn internally using the dns method you are trying and this works too via 3G I.e. My ddns resolves internally to my lan address and externally to my public IP address.
 
Last edited:
I'm not sure I understand what it is that you are expecting to see.

You are doing a lookup on "host.domain.com" but that domain isn't one of the ones that you have changed in dnsmasq. :confused:
 
I assume you are leaving the real IP addresses and domains for privacy? Are you seeing the internal IP addresses required when doing an nslookup/ping from all internal devices you want to use to get your internally hosted systems?
 
I do a lookup on my domain name "host.domain.com", and I get this result:

Name: host.domain.com
Address 1: 192.168.0.21 host.domain.com

In fact I figured out that the problem could be because of my double NAT situation.
I have my Orange fibre box, that can't be bridged, and after this I use my Asus RT-AC68U.

When I browse my host.domain.com with Android (no host modification possible) I get my Orange box admin interface instead of my home hosted domain, in spite my wifi is only provided by ASUS...
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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