Skip to content

Comments out multiple times in resolv.conf #7

@matthewvalimaki

Description

@matthewvalimaki

When using go-dnsmasq --default-resolver --append-search-domains --hostsfile=/etc/hosts -n 127.0.0.1:8600 as a service and restarting it seems to cause additive commenting in /etc/resolv.conf:

# # #nameserver 8.8.8.8
# # # # # # nameserver 8.8.4.4

All I need to do is to restart and # is added. Reason why the lines look different is because I manually modified the file to enable the 1st nameserver.

I recommend adding a check before # is added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions