Community discussions

MikroTik App
 
lenox89
newbie
Topic Author
Posts: 27
Joined: Tue Jul 27, 2021 10:07 am

Remove Static DNS entries

Tue Oct 31, 2023 5:20 pm

Hello,
I am trying to remove static dns entries for ad blocking via script. I want to remove only entries with the IP address 240.0.0.1 . What am I doing wrong?
/ip dns static remove [/ip dns static find address=240.0.0.1]
Bildschirmfoto vom 2023-10-31 16-11-48.png
Thank you
You do not have the required permissions to view the files attached to this post.
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1071
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Remove Static DNS entries

Tue Oct 31, 2023 5:54 pm

Try with quotes...
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12014
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Remove Static DNS entries

Tue Oct 31, 2023 9:11 pm

/ip dns static remove [find where address="240.0.0.1"]
 
lenox89
newbie
Topic Author
Posts: 27
Joined: Tue Jul 27, 2021 10:07 am

Re: Remove Static DNS entries

Sun Nov 05, 2023 9:06 pm

/ip dns static remove [find where address="240.0.0.1"]
Thank you very much, this command does the job quite well.

Who is online

Users browsing this forum: No registered users and 5 guests