[rešeno] Dnsmasq na Debianu

Na Debian GNU/Linux 7 sem namestil Dnsmasq. Konfiguracija je naslednja:

V /etc/dnsmasq.conf sem dodal:

resolv-file=/etc/dnsmasq.d/resolv.conf
addn-hosts=/etc/dnsmasq.d/hosts.conf

cat /etc/dnsmasq.d/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

cat /etc/dnsmasq.d/hosts.conf
192.168.88.200 server1
192.168.88.201 server2

Ko zadevo zaženem, se zgodi tole:

service dnsmasq start
[....] Starting DNS forwarder and DHCP server: dnsmasq
dnsmasq: bad option at line 1 of /etc/dnsmasq.d/resolv.conf
failed!

Kakšna ideja kaj je narobe?

Komentarji

  • dnsmasq -H /etc/dnsmasq.d/hosts.conf -r /etc/dnsmasq.d/resolv.conf
  • CrazyLemon Skrbnik
    uredil/-a 8. October, 2015
    [16:44:02] Matthai: aja, for the record... sem ugotovil kaj je bilo narobe s tistim Dnsmasquom zadnjič
    [16:44:32] Matthai: dnsmasq.d je poseben direktorij, kjer ne moreš dajati svojih configov :-/
  • R33D3M33R Član
    uredil/-a 8. October, 2015
    CrazyLemon je dejal/-a:
    [16:44:32] Matthai: dnsmasq.d je poseben direktorij, kjer ne moreš dajati svojih configov :-/
    Dopolnitev: v to mapo ne moreš dati poljubne nastavitvene datoteke, ampak samo tako, ki jo zna dnsmasq ob zagonu prebrati.
Za komentiranje se prijavite ali pa se vpišite.