Yun rev2 resolver file

hi everybody
I am not pretty sure if this is the right place to post it, since it involves Yun rev2, configuration, ....
Anyway :
The problem is to obtain the correct

/etc/resolv.conf

On Yun rev1 I managed to have it editing

/etc/init.d/dnsmasq

where a line with the definition of

DNS_SERVERS="""

can be found. The same working with the Luci configuration interface.
This is the result

root@Yun0:~# cat /etc/resolv.conf
# Interface lan
nameserver 192.168.1.1
nameserver 192.168.1.1
search homenet.telecomitalia.it

and

root@Yun0:/etc/config# cat dhcp

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option expandhosts '1'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'
        list interface 'lo,wlan0'
        option domain 'homenet.telecomitalia.it'
        list server '192.168.1.1,lo'

With Yun rev2 the etc/init.d/dnsmasq file does not have the SERVER list definition and working only with Luci i/f what I find at the end is

root@YunA:~# cat /etc/resolv.conf
search homenet.telecomitalia.it
nameserver 127.0.0.1

(no local DNS/ROUTER is present)

and

root@YunA:~# cat /etc/config/dhcp

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option expandhosts '1'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'
        option nonwildcard '1'
        option domain 'homenet.telecomitalia.it'
        list interface 'lo,wlan0'
        option localservice '1'
        list server '192.168.1.1,lo'

Summarizing, in rev1 all the devices can be addressed with names while this is not possible in rev2, even if the configuration files look the same

thanks for help

I guess rev2 starts a dnsmasq which is a DNS proxy.

What exactly is your problem? Does your DHCP server return a wrong DNS IP?

the problem is that since the definition of my router/dns is missing in /etc/resolv.conf I am not able to address the devices by name.
I can still reach them by IP address, but I prefer to avoid it

the problem is that since the definition of my router/dns is missing in /etc/resolv.conf I am not able to address the devices by name.

If dnsmasq is running (have you checked that, I don't own a Yun rev2), the value in /etc/resolv.conf has to be 127.0.0.1. If you're not able to resolve host names it might have other reasons. I have a similar embedded Linux box running which also has dnsmasq enabled. There I have to manually set the DNS server in the /etc/dnsmasq.conf file (server x.x.x.x) to enable dns resolution.