I'm running dnsmasq
,
address=/chat.freenode.net/130.239.18.172
address=/chat.freenode.net/140.211.167.105
But seems dnsmasq
only recognize the last record, what should I do?
Create a file, say /etc/hosts.chat.freenode.net
, that has the same format as /etc/hosts
file and list all IP addresses with name in this file:
130.239.18.172 chat.freenode.net
140.211.167.105 chat.freenode.net
Then add to the dnsmasq.conf
the following line:
addn-hosts=/etc/hosts.chat.freenode.net
Or put these two lines into /etc/hosts
if dnsmasq
is set to read in the /etc/hosts
.
Then restart dnsmasq
Enjoy.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments