I have two routers at home:
one the gateway from the ISP configure as IP 192.168.2.254
another with openwrt IP 192.168.2.253
The openwrt router is connecte throught the lan interface to the ISP gateway (no through WAN).
The gateway from the ISP does not let me configure DNS.
I need some dns entries in order to provide local access IPs to some hostnames in my TLD that are inside my home.
The DHCP is configure with the openwrt router (192.168.2.253) as the DNS server (and 192.168.2.254 as the sencodary dns server).
I would like the gateway from my ISP to continue providing the DHCP service (in order to continue having service and internet access when the other router is down).
But if I deactivate DHCP server in the router with openwrt (192.168.2.253) I won't get DNS
Is there anyway to deactivate DHCP service in openwrt but still resolve DNS queries (does from hostnames introduced manually)?
I this is not possible, I will stablish the openwrt router as the DHCP server (as I have it now).
The problem is that although I have stablished 192.168.2.254 as the gateway address in the configuration of the lan interface, leases to the hosts are given with 192.168.2.253 as the gateway.
It work, but it has two problems:
1.- all hosts in network will send its outgoing packages to 192.168.2.253 and the openwrt from there to 192.168.2.254, which is one more hop than neccesary, as the ISP gateway is the unique with direct access to internet.
2.- If the openwrt router is down no one has access to internet, as they try to send packets throw it.
But the net is still up and working throw the gateway, as it is functional.
Any way to make DHCP sends another IP address as the gateway and not its own IP address?