I recently installed dnsmasq in two of my machines. The service works all right but the trouble is that when consulted they return only their loopback ip.
@Machina ~]$ nslookup continua continua
Server: continua
Address: 192.168.1.2#53
Name: continua.ianinus
Address: 127.0.1.1
Name: continua.ianinus
Address: a:a:a:a:a:a:a:a
I think that it just returns what it has on its hosts file:
127.0.0.1 localhost
127.0.1.1 Continua.ianinus Continua
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
I could add its actual ip to the file but that would be useless as it's configured to be dynamic.
How do I make my computer to return its outer address (192.168.1.2) instead of loopback (127.0.0.1)?