Yun and DNS

Hi,
Just got a yun and am attempting to connect to local network .php file for database logging. It's successfully connecting to my wireless network and getting an IP address. According to the config page it's also using the correct DNS servers. But I am unable to connect to the web server using the name, only by address. So using SSH, when I attempt to ping a local address I am receiving a bad address error message. I can ping external sites though. If I enter the name servers in resolv.conf the everything works fine. But if I restart the yun the resolv.conf entries I just entered are gone and the sketch stops working.

How can I get the entries to save? Or how can I guarantee that the DNS on the config will actually work?

(This is a repost from the Networking forum)

Thanks in advance.

opkg update
opkg install nano
nano /etc/init.d/dnsmasq
...
DNS_SERVERS=""
...
...
DNS_SERVERS="8.8.8.8 8.8.4.4"
...
reboot
cat /etc/resolv.conf
search lan
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 127.0.0.1

This looks like I would be hardcoding the DNS.
Currently, the Yun has no problem accessing external sites. It seems when it receives the address from DHCP it is not properly recognizing the DNS being given from the DHCP server.

If I enter the name servers in resolv.conf the everything works fine. But if I restart the yun the resolv.conf entries I just entered are gone and the sketch stops working.

How can I get the entries to save? Or how can I guarantee that the DNS on the config will actually work?

Is this your question? I tried to make the sketch keep working.

It seems when it receives the address from DHCP it is not properly recognizing the DNS being given from the DHCP server.

You might get better luck post this at busybox or openwrt developer forum. ( repost again 8) )