SO, I'm not sure when it stopped working, but when I ping domain.com from a client on the LAN, it SHOULD return 192.168.1.20, not the public WAN IP right?
SO, I'm not sure when it stopped working, but when I ping domain.com from a client on the LAN, it SHOULD return 192.168.1.20, not the public WAN IP right?
THX
Works fine here:
address=/redbutton.de/127.0.0.1
root@r6400:~# ping redbutton.de
PING redbutton.de (127.0.0.1): 56 data bytes
I don't get it because I changed nothing and then all of the sudden, I noticed I couldn't access my hostname when my gateway went down
These are ALL the inputs from
I don't get it because I changed nothing and then all of the sudden, I noticed I couldn't access my hostname when my gateway went down
These are ALL the inputs from
An extract from man-pages of dnsmasq:
Code:
-A, --address=/<domain>/[domain/][<ipaddr>]
...Note that /etc/hosts and DHCP leases override this for individual names. ...
Only a guess but maybe try different IP or hostname for test to eliminate DHCP conflicts?
Doesn't this set Google as dns server for your client and not your router. Your router may resolve correctly, but does not help if the router is never asked.
I don't get it because I changed nothing and then all of the sudden, I noticed I couldn't access my hostname when my gateway went down
These are ALL the inputs from
Maybe you tested with different clients or client settings, with your config dnsmasq will assign google dns to those clients, that use dhcp, if you use a client with static ip where you set the routers ip as the dns server it will use dnsmasq and correctly resolve the specified IP. _________________ KONG PB's: http://www.desipro.de/ddwrt/
KONG Info: http://tips.desipro.de/
Posted: Tue Jun 27, 2017 19:13 Post subject: Re: DNSMasq entry not working on R7000
<Kong> wrote:
Maybe you tested with different clients or client settings, with your config dnsmasq will assign google dns to those clients, that use dhcp, if you use a client with static ip where you set the routers ip as the dns server it will use dnsmasq and correctly resolve the specified IP.
Kong / and others:
You were right, I removed "addn-hosts=/jffs/etc/hosts.vree " and it started working for a while....
I figured out that IPv6 was also getting in the way. I don't have static routes set up for that hostname...so it wasn't resolving as the box has both an IPv4 and IPv6 address.
So my final question is...how do I set a static IPv6 to the same box?
also in this directive: "address=/mydomain.com/192.168.1.20 " Can I put the hostname instead of the IP so that if/when it has a IPv6 IP, then it will still resolve?
Joined: 13 Aug 2013 Posts: 6870 Location: Romerike, Norway
Posted: Tue Jun 27, 2017 19:24 Post subject:
As you don't have private addresses in IPv6, you don't need a local dns. The issue can also be that a dns server accessed by IPv6 does return the IPv4 record.
As you don't have private addresses in IPv6, you don't need a local dns. The issue can also be that a dns server accessed by IPv6 does return the IPv4 record.
I think that is my issue as well -
Right now, in Dnsmasq I have
address=/mydomain.com/192.168.1.20
And it's working fine as long as I don't have IPv6 enabled.
But when I enable IPv6 and try to PING mydomain.com, and the PC I'm using has IPv6 enabled, it's going to time-out correct?
How do I attatched mydomain.com to a specific host that is using IPv4 AND IPv6?
Then I added the following to Services -> DNSMasq Options:
quiet-dhcp
quiet-dhcp6
quiet-ra
enable-ra
dhcp-range=::10,::200,constructor:br0,ra-names,slaac,64,24h
So when I did that I'm now not getting an IPv6 WAN IP on the router at all.
The clients on the lan are showing IPV6 addresses something like this:
fe80:ecfe:6b60f835:d07e%13
And in the syslog, I'm getting this error:
"daemon.warn dnsmasq-dhcp[21942]: no address range available for DHCPv6 request via br0"