Luci>Interfaces>LAN>DHCP Server>Advanced persistance

For a short time, I was running Adguard Home externally. To force clients to use it for DNS, I added a command to the above entry in Luci (see screenshot). When I went back to using Adguard home, it was time to remove it.

I have deleted this entry (using the 'x' on the left side), saved this page and saved and applied the parent page. When I go back to check immediately after applying, it looks like it should.

After about an hour, if I go back to check, the entry reappears. At first, I thought it was me and I forgot to save and apply, but that wasn't the case. This entry keeps reappearing.

How can I make this entry disappear once and for all?

Check your dhcp config by running cat /etc/config/dhcp
Maybe you forgot to save and apply?

Please restart the dhcp server with /etc/init.d/dnsmasq restart or via luci at system -> Startup.

If that didn't help may i know the contents of /etc/resolv.conf and if exits: /etc/dnsmasq.conf ?

I don't think so, but I just consciously did it (again) a moment ago. Stay tuned.

I ran the command you suggested and got the following:

I just ran the command. Here are the contents of the files you asked about:

resolv.conf:
search lan
nameserver 127.0.0.1
nameserver ::1

dnsmasq.conf:

Change the following lines if you want dnsmasq to serve SRV

records.

You may add multiple srv-host lines.

The fields are ,,,,

A SRV record sending LDAP for the example.com domain to

ldapserver.example.com port 289

#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389

Two SRV records for LDAP, each with different priorities

#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2

A SRV record indicating that there is no LDAP server for the domain

example.com

#srv-host=_ldap._tcp.example.com

The following line shows how to make dnsmasq serve an arbitrary PTR

record. This is useful for DNS-SD.

The fields are ,

#ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"

Change the following lines to enable dnsmasq to serve TXT records.

These are used for things like SPF and zeroconf.

The fields are ,,...

#Example SPF.
#txt-record=example.com,"v=spf1 a -all"

#Example zeroconf
#txt-record=_http._tcp.example.com,name=value,paper=A4

Provide an alias for a "local" DNS name. Note that this only works

for targets which are names from DHCP or /etc/hosts. Give host

"bert" another name, bertrand

The fields are ,

#cname=bertand,bert
server=/ts.net/100.100.100.100

I'll check this again in a while.

The resolv.conf is fine, for the dnsmasq.conf i have a little problems to read.

If you could please use:

```
//your code
```

Then its nicely marked up :slight_smile: , is there also a /etc/dnsmasq.d available?

I am not sure what you want to do with the dnsmasq.conf file. It is mostly commented lines (beginning with '#'). The only other line is:

server=/ts.net/100.100.100.100

There is no /etc/dnsmasq.d file.

1 Like

It could be they added a init type of file there which overwrites the default dhcp config, i just wanted to make sure :wink: