4

dnsmasq is capable of assigning multiple static ips to one host when using the hosts file:

1.2.3.4 bla.com
4.5.6.7 bla.com

nslookup:

Name:   example.com
Address: 1.2.3.4
Name:   example.com
Address: 4.5.6.7

However, wildcards in hosts are not possible. dnsmasq's own config file format allows them though:

address=/example.com/1.2.3.4
address=/example.com/5.6.7.8

The problem here is: a lookup will always return 5.6.7.8 only. 1.2.3.4 is getting overwritten

Is there a approach combining these 2 attempts? It seems weird that dnsmasq is capable of assigning multiple ips to one host when using hosts format, but not when using their own config file format.

1 Answer 1

3

According to this discussion, there is no way to do this in dnsmasq without substantial code changes, unfortunately.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .