Community discussions

MikroTik App
 
beezly
just joined
Topic Author
Posts: 6
Joined: Mon Jan 30, 2023 10:01 pm

Creating static DNS A records with v7.7

Mon Jan 30, 2023 10:14 pm

I've noticed that /ip/dns/static/add takes an address-list option. I've tried using it but it doesn't seem to work. If I create a record:

/ip/dns/static/add name="spaghetti.lan" address-list=k8s-v4-ingress

The address-list looks like this:

/ip firewall address-list
add address=192.168.7.11 list=k8s-v4-ingress
add address=192.168.7.12 list=k8s-v4-ingress
add address=192.168.7.13 list=k8s-v4-ingress
add address=192.168.7.14 list=k8s-v4-ingress

If I print the static entry it shows up as:

9 name="spaghetti.lan" type=(unknown) ttl=1d address-list="k8s-ingress"

If I try to set a type of "A" I get an error;

failure: bad A data: IPv4 address expected

And a dns lookup for spaghetti.lan fails with an NXDOMAIN response.

Am I trying to use the wrong thing? Does anyone have an example of an static dns entry pointing to an address-list? I know I could use multiple static DNS entries, but it would be nice to point to an address-list.
Last edited by beezly on Tue Jan 31, 2023 10:11 am, edited 1 time in total.
 
accarda
Member Candidate
Member Candidate
Posts: 208
Joined: Fri Apr 05, 2019 4:06 pm
Location: Italy

Re: Creating static DNS A records with v7.7

Tue Jan 31, 2023 7:35 am

From your example you are pointing to the wrong list.
Your list is k8s-v4-ingress, but you are pointing to another value k8s-ingress in the DNS entry.
 
beezly
just joined
Topic Author
Posts: 6
Joined: Mon Jan 30, 2023 10:01 pm

Re: Creating static DNS A records with v7.7

Tue Jan 31, 2023 10:12 am

From your example you are pointing to the wrong list.
Your list is k8s-v4-ingress, but you are pointing to another value k8s-ingress in the DNS entry.
Thanks for pointing that out - I've corrected the typo in my example. However, the result is still the same.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: Creating static DNS A records with v7.7

Tue Jan 31, 2023 11:26 am

You are right, it does not seem to work, neither with 7.8beta2.
Probably broken during the extensive DNS changes in 7.7 that also caused the memory leak?
 
beezly
just joined
Topic Author
Posts: 6
Joined: Mon Jan 30, 2023 10:01 pm

Re: Creating static DNS A records with v7.7

Wed Feb 01, 2023 11:15 pm

You are right, it does not seem to work, neither with 7.8beta2.
Probably broken during the extensive DNS changes in 7.7 that also caused the memory leak?
So you think it should work as I expect, but it's a bug in 7.7 onwards?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: Creating static DNS A records with v7.7

Thu Feb 02, 2023 11:00 am

Unfortunately, "/ip dns static" is almost completely undocumented in the new help system, and the old version (in the wiki) did not yet have it, so we don't know if and how it should work...
 
deltaplaned
just joined
Posts: 4
Joined: Tue Jan 11, 2022 10:17 pm

Re: Creating static DNS A records with v7.7

Tue Feb 07, 2023 11:44 pm

I see in my 7.7 that DNS static has new feature address list, but I dont understand from where this list ill be populated?
in my config there are more than 7 lists, but they don't want to appear in DNS static.

I want to use this type of list to block some sites.
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Creating static DNS A records with v7.7

Thu Feb 09, 2023 2:00 am

That's not what it's for. It doesn't get addresses from list, it adds addresses to list. For more details see: viewtopic.php?p=952360#p952360
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: Creating static DNS A records with v7.7

Thu Feb 09, 2023 10:51 am

The root problem is that the feature is not documented. People claim "it does not work", but it is not specified how it should work, so for all we know it may be doing what it is supposed to do (which could be doing nothing).
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Creating static DNS A records with v7.7

Fri Feb 10, 2023 1:39 am

Perhaps it's a puzzle for fans, to let them discover new features in some more exciting way than just reading the docs. Or it's some cunning plan how to discover what people want, by watching what they try to do with it, without asking them directly. Or just whoever is in charge of documentation is lagging behind. :)

Who is online

Users browsing this forum: Ahrefs [Bot], GoogleOther [Bot] and 90 guests