What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

new to linux

stiffbeta

Occasional Visitor
Hopefully this is the correct place to ask as I have just created a dnsmasq.conf.add and saved and restarted but I am seeing in the logs "dnsmasq: illegal repeated keyword at line 19 of /etc/dnsmasq.conf" and it fails to start. How do I actually view this file? I am using telenet and then typing vi /etc/dnsmasq and I get an empty screen with a lot of "~".
Thanks.
 
dnsmasq doesn't allow providing the same keyword twice (that includes keywords provided through the command line).

To view the content of the generated file:

Code:
more /etc/dnsmasq.conf
 
now that I was able to view my dnsmasq file and I see where the repeat is, would anyone be able to let me know if my dnsmasq.conf.add is redundant or if I need to pare it down. I have read as many post on creating this. It is as follows from the dnsmasq.conf:
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-range=lan,192.168.1.1,192.168.1.253,255.255.255.0,86400s
dhcp-option=lan,3,192.168.1.254
dhcp-option=lan,252,"\n"
dhcp-authoritative
conf-file=/etc/dnssec-trust-anchors
dnssec
pid-file=/var/run/dnsmasq.pid --->this is where my dnsmasq.conf.add starts. Do I really need anything other than my scope below?
user=nobody
bind dynamic
interface=br0
interface=br1
interface=br2
interface=pppl*
no-dhcp-interface=pppl*
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
no-dhcp-interface=br0
interface=br1---->can just these lines from here down be added?
dhcp-range=br1,192.168.10.100,192.168.10.125,255.255.255.0,86400s
dhcp-option=br1,3,192.168.10.254
dhcp-authoritative
interface=br2
dhcp-range=br2,192.168.100.80,192.168.100.90,255.255.255.128,86400s
dhcp-option=br2,3,192.168.100.126
 
Last edited:
Remove any redundant line, such as dhcp-authoritative.
 
wanted to say thanks for this site. it looks like I got it working. I'm new to all this and admittedly a very very slow learner; hell I'm not sure I fully understand all I'm reading lol. This site is AWESOME with the way everyone helps and don't make someone feel stupid:)
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top