Re: [DNG] dnsmasq: junk found in command line

2018-07-09 Thread hal
Irrwahn wrote on 07/09/2018 07:58 AM:
> DNSMASQ_OPTS="$DNSMASQ_OPTS `mawk -- '{ printf " 
> --trust-anchor=.,%d,%d,%d,%s", $5, $6, $7, $8 }' $ROOT_DS`"


A purge/install did no better so the line above indeed fixed it.

  # dnsmasq --version
  Dnsmasq version 2.72  Copyright (c) 2000-2014 Simon Kelley

Thank you so much
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] dnsmasq: junk found in command line

2018-07-09 Thread Irrwahn
hal wrote on 09.07.2018 13:08:
> Hi,
> I am having a problem starting dnsmasq after latest update to my devuan VM.
> The error is when trying to start the init script:
> 
>dnsmasq: junk found in command line
> 
> I think I might be on old Devuan version[1] because /etc/issue says "1". Maybe
> this is the problem but I see a directory added/updated on Jun 25 
> /usr/share/dns/ with
> a few files in it. The init script uses sed to get some options from the 
> files there
> and then tries starting dnsmasq with fail message above.
> 
> If I debug init script[3], I get weird options indeed. Any ideas how to fix 
> this?
> For now I have dnsmasq started by command line with simple options "-d -C 
> configfile"
> Thank you
> 
[cut]

Hi hal,

I vaguely recall having had a similar issue on some Debian system some 
time in the past. A quick web search dug up this link containing a 
solution that looks familiar to me:

https://unix.stackexchange.com/questions/332168/how-to-get-dnsmasq-to-work

TL,DR: To solve the issue, purge and then reinstall dnsmasq, or, should 
that fail, in /etc/init.d/dnsmasq change the line setting the dnsmasq 
options to:

DNSMASQ_OPTS="$DNSMASQ_OPTS `mawk -- '{ printf " --trust-anchor=.,%d,%d,%d,%s", 
$5, $6, $7, $8 }' $ROOT_DS`"

Root cause presumably is the field delimiters in /usr/share/dns/root.ds 
having changed from spaces to TABs, tripping up the old parser.

HTH, regards
Urban

-- 
Sapere aude!



signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] dnsmasq: junk found in command line

2018-07-09 Thread hal
Hi,
I am having a problem starting dnsmasq after latest update to my devuan VM.
The error is when trying to start the init script:

   dnsmasq: junk found in command line

I think I might be on old Devuan version[1] because /etc/issue says "1". Maybe
this is the problem but I see a directory added/updated on Jun 25 
/usr/share/dns/ with
a few files in it. The init script uses sed to get some options from the files 
there
and then tries starting dnsmasq with fail message above.

If I debug init script[3], I get weird options indeed. Any ideas how to fix 
this?
For now I have dnsmasq started by command line with simple options "-d -C 
configfile"
Thank you


[1]
# cat /etc/issu
Devuan GNU/Linux 1 \n \l

[2]
# cat /etc/apt/sources.list
# deb http://us.mirror.devuan.org/merged/ jessie main

deb http://us.mirror.devuan.org/merged/ jessie main
deb-src http://us.mirror.devuan.org/merged/ jessie main

# jessie-security, previously known as 'volatile'
deb http://us.mirror.devuan.org/merged/ jessie-security main
deb-src http://us.mirror.devuan.org/merged/ jessie-security main

# 2018-06-24 - root (tmb384) - added repo, but nothing shows up with apt
# deb http://security.debian.org/ jessie/updates main
# deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://us.mirror.devuan.org/merged/ jessie-updates main
deb-src http://us.mirror.devuan.org/merged/ jessie-updates main

# Devuan repositories
deb http://packages.devuan.org/merged jessie main
deb-src http://packages.devuan.org/merged jessie main

[3]
# bash -x /etc/init.d/dnsmasq start
...
+ start-stop-daemon --start --quiet --pidfile /var/run/dnsmasq/dnsmasq.pid 
--exec /usr/sbin/dnsmasq --test
+ start-stop-daemon --start --quiet --pidfile /var/run/dnsmasq/dnsmasq.pid 
--exec /usr/sbin/dnsmasq -- -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -7 
/etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service . 172800 IN
DS 19036,8,2,49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5 . 
172800 IN DS 
20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
...
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng