Io corro dnsmasq,
address=/chat.freenode.net/130.239.18.172
address=/chat.freenode.net/140.211.167.105
Ma sembra dnsmasqriconoscere solo l'ultimo disco, cosa dovrei fare?
Io corro dnsmasq,
address=/chat.freenode.net/130.239.18.172
address=/chat.freenode.net/140.211.167.105
Ma sembra dnsmasqriconoscere solo l'ultimo disco, cosa dovrei fare?
Risposte:
Crea un file say /etc/hosts.chat.freenode.netcon lo stesso formato del /etc/hostsfile ed elenca tutti gli indirizzi IP con nome in questo file:
130.239.18.172 chat.freenode.net
140.211.167.105 chat.freenode.net
Quindi aggiungere alla dnsmasq.confseguente riga:
addn-hosts=/etc/hosts.chat.freenode.net
Oppure inserisci queste due righe in /etc/hostsse dnsmasqè impostato per leggere nel file /etc/hosts.
Quindi riavviare dnsmasq
Godere.
/etc/hostssia che la macchina locale risolverà sempre la prima invece di ottenere una distribuzione round robin da dnsmasq.
dnsmasqda leggere/etc/hosts