Hi Ed,
Ed Greshko wrote:
Does anyone know of a way to get ncat to listen on port 53 when using systemd-resolved?
[root@meimei ~]# ncat -l -4 -p 53 Ncat: bind to 0.0.0.0:53: Address already in use. QUITTING.
You can't bind to the port if it's already in use. But if you're okay with using a local IP, you can bind to 127.0.0.2 (or anything > .1, if resolved or other dns server are listening on localhost).
$ sudo ncat -l -4 127.0.0.2 53
I didn't use the -p option there, as it's for the source port. Using the -p option doesn't do what I presume you want, which is to have ncat listening on port 53 so you can connect to it for testing.
(no rants, please)
Where's the fun in that? ;)