Hi!

I successfully set up DynDNS by creating a script in /etc/ppp/ip-up.d/S01dyndns like described in the Wiki
and by updating wget. See http://wiki.openwrt.org/DDNSHowTo and https://dev.openwrt.org/ticket/2039

Let's say the domain name is blablabla.dyndns.org.

I have a web server on local IP 192.168.0.10. So, I forward ports 80 and 443 to this address.

So far so good.

Now, in order to the clients on the lan to get the name blablabla.dyndns.org resolved directly to 192.168.0.10 and not to the WAN address, I  placed this line in /etc/hosts :

192.168.0.10 blablabla blablabla.dyndns.org

The problem is now that the nslookup command used in the dyndns script also returns the local address instead of the registered address...

Is there a way to tell dnsmasq to reslove a name only from clients requests and not from the localhost? Or more simply to call nslookup with specific nameservers; I noticed the ISP given nameservers are in /tmp/resolv.conf.auto?

Any Idea?

PS: I'm using Kamikaze 7.09 on a wrt54g V2.2

(Last edited by elvicomte on 22 Nov 2007, 01:35)