Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNSMASQ does not start since last 1 week #19

Open
harneetsinghquark opened this issue Jul 2, 2018 · 2 comments
Open

DNSMASQ does not start since last 1 week #19

harneetsinghquark opened this issue Jul 2, 2018 · 2 comments

Comments

@harneetsinghquark
Copy link

The package dns-root-data has been updated in repository and the new root.ds file has tabs instead of spaces as in version u1.

The below condition now fails because the sed editor is looking for spaces and does not find them resulting in non standard startup options, hence resulting in error "Junk found on command line"

ROOT_DS="/usr/share/dns/root.ds"

if [ -f $ROOT_DS ]; then
DNSMASQ_OPTS="$DNSMASQ_OPTS sed -e s/". IN DS "/--trust-anchor=.,/ -e s/" "/,/g $ROOT_DS | tr '\n' ' '"
fi

the sed editor options need to change and one of the working set is this.

DNSMASQ_OPTS="$DNSMASQ_OPTS sed -e s/".\t[0-9]*\tIN\tDS\t"/--trust-anchor=.,/ -e s/" "/,/g $ROOT_DS | tr '\n' ' '"

We can have another regex pattern which takes care of any white space, i am not good at regex hence someone will need to fix this.

@harneetsinghquark
Copy link
Author

other option could be to remove the latest version of dns-root-data and reinstall the old version, and then start dnsmasq service

@harneetsinghquark
Copy link
Author

@auser @jackscott @iggy @sroegner @westurner anyone looking into this please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant