On 2013-08-31 21:59, James Knott wrote:
Carlos E. R. wrote:
dnsmasq will do just fine.. it is used with routers that have waaaay
less RAM (64 MB or so) Mmm.
+++·········· Lightweight, Easy-to-Configure DNS Forwarder and DHCP Server ··········++-
It is a forwarder, not enough. It would have to accept a local definition for names. Ie, act as a real but small DNS.
I use dnsmasq here and it works fine for both IPv4 & IPv6 addresses. You just have to add local hosts into the /etc/hosts file and then restart dnsmasq. If you're using IPv6 and IPv4, you'll want to have the IPv6 address listed first.
Interestingly, it was already installed. You mean this thing reads the hosts file and that's it? Wow, it works... AmonLanc:~ # host telcontar telcontar.valinor has address 192.168.1.14 Host telcontar.valinor not found: 5(REFUSED) Host telcontar.valinor not found: 5(REFUSED) AmonLanc:~ # huh? AmonLanc:~ # host -v telcontar Trying "telcontar.valinor" ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26366 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;telcontar.valinor. IN A ;; ANSWER SECTION: telcontar.valinor. 0 IN A 192.168.1.14 Received 51 bytes from 192.168.1.15#53 in 1 ms Trying "telcontar.valinor" Host telcontar.valinor not found: 5(REFUSED) Received 35 bytes from 192.168.1.15#53 in 0 ms Trying "telcontar.valinor" Host telcontar.valinor not found: 5(REFUSED) Received 35 bytes from 192.168.1.15#53 in 0 ms AmonLanc:~ # Ah, port 53 is not open on that machine. Not important. Ok, lets try email... interesting failure: 2013-08-31T22:37:10.248374+02:00 AmonLanc postfix/smtp[23220]: 06E38486E0: to=<cer@telcontar.valinor>, relay=none, delay=0.39, delays=0.34/0.05/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=telcontar.valinor type=MX: Host not found, try again) So I have to find out how to configure dnsmasq to give an answer for 'MX'. There is another problem - internet name solving fails: p2phelper@AmonLanc:~> host google.es Host google.es.valinor not found: 5(REFUSED) p2phelper@AmonLanc:~> p2phelper@AmonLanc:~> host -v google.es Trying "google.es" Received 27 bytes from " in 0 ms Trying "google.es.valinor" Host google.es.valinor not found: 5(REFUSED) Received 35 bytes from 192.168.1.15#53 in 0 ms p2phelper@AmonLanc:~> Why is it asking for "google.es.valinor"? Why is it asking "192.168.1.15#53"? It should ask the router. But I do not see how to tell it to ask the router, I do not see a forwarder section in "/etc/dnsmasq.conf". It works if I disable dnsmasq. (reading) -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar)