Also permitted is a -S flag which gives a domain but no IP address; this tells dnsmasq that a domain is local
and it may answer queries from /etc/hosts or DHCP but should never forward queries on that domain to any
upstream servers. local is a synonym for server to make configuration files clearer in this case.
So I think “home.lan” and “/home.lan/” are both correct settings, but it still getting forwarded somewhere.
Hmm seems to be working kind of… I can now ping using the names on the network with .lan attached… however, none of the browsers open web gui if I point it to omnia.lan ( my router ) which can be pinged just fine:
C:\Users\Vlado>ping omnia.lan
Pinging omnia.lan [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Also If I try connect samba share using the name of the router it will not accept my password, if I change it to IP it accept it just fine… something is missing :-/
Also ssh from the same machine that pinged it ok will not work it will not recognize it
Looks like the DNS resolving is working for everything but omnia it self… I made anoter lxc with ssh open and used ssh server.lan and no issue… thinning directed at omnia.lan is not working though… not ssh, not samba not browser… its frustrating
Well, since the name omnia.lan returns the loopback address, it cannot work over the network. Go to the place where you defined that name and change the address to 192.168.1.1.
Daaaaamn I’m a moron, you are right ! /etc/hosts was the issue I had for localhost added also Omnia and that was 127.0.0.1, I have added line with: 192.168.1.1 omnia.lan omnia, and BAM ! all is right with world, thanks !
The default configuration does not allow me to connect to 127.0.0.1:port or localhost:port. What can I do to make it work and why this is not working ouf of the box?
I tried with just the custom file first, but that did not seam to work, then i changed the order and after that it worked, but did not verify it extensively. So cannot say for sure
In this configuration of using dnsmasq for local domain and knot for everything else, is there a way to enable something like dnsmasq’s option to expand hosts? For example, if I do a lookup on a host with no suffix, it should add my local domain to it, like server becomes server.localdomain?
I tried adding a custom rule to forward requests using pattern matching where there is no dot in the qname but couldn’t get the syntax quite right. I suspect there’s a way to use a lua if statement to easily do it but I am not familiar enough with it to figure it out.
So does that mean we have to move the include_custom_config up in /etc/init.d/kresd or is that superfluous?
I can confirm that using the custom config file (having moved that include) the reverse DNS for dynimac DHCP hostnames indeed works (no update of kresd yet though. But I join you in suspecting it will persist an upgrade).
I updated the first post with new config instructions. These shouldn’t be overwritten by package updates now. Thanks to @eman for figuring out the lua needed to do this.