Continuing the discussion from Ignoring domain CONFIG_DOMAIN for DHCP host name HOSTNAME:
In version 6, where in pihole.toml should this line be inserted?
(A similar question was asked here by @christian-0s, but never got an answer.)
Continuing the discussion from Ignoring domain CONFIG_DOMAIN for DHCP host name HOSTNAME:
In version 6, where in pihole.toml should this line be inserted?
(A similar question was asked here by @christian-0s, but never got an answer.)
They go between the square brackets here:
# Additional lines to inject into the generated dnsmasq configuration.
# Warning: This is an advanced setting and should only be used with care. Incorrectly
# formatted or duplicated lines as well as lines conflicting with the automatic
# configuration of Pi-hole can break the embedded dnsmasq and will stop DNS resolution
# from working.
# Use this option with extra care.
#
# Possible values are:
# array of valid dnsmasq config line options
dnsmasq_lines = []
Each line should be surrounded by double quotes, and lines need to be separated by a comma eg:
dnsmasq_lines = [
"domain=CONSULTING-AG.local,192.168.2.123",
"domain=ANOTHERR.local,192.168.2.124"
] ### CHANGED, default = []
Alternatively they can be added in the web ui, in settings -> expert -> all settings -> miscellaneous -> dnsmasq.lines. If added here they don't need the additional formatting.
Thank you for this. I prefer using the UI to possibly mucking up the .toml file.
@robgill, and one more clarification question: the IP address in this line should be the device's IP address, as in the laptop that is causing this error to appear?
Yep, the ip of the device that you want the domain pointed to.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.