How to get my Deno nameserver accessible to the internet?

This is how it's setup:
const socket = Deno.listenDatagram({
hostname: "127.0.0.1",
port: 53,
transport: "udp"
});
const socket = Deno.listenDatagram({
hostname: "127.0.0.1",
port: 53,
transport: "udp"
});
I have ufw enabling and allowing access to all the ports. Not sure what else I'm missing.
11 Replies
Doctor πŸ€–
Doctor πŸ€–β€’3y ago
How are you trying to access it?
netop://ウィビ
@dr_light dig @server-ip domain.name A I just now changed the hostname from "localhost" to the actual IP of my server and I'm seeing responses. Is it not possible to just have localhost work?
Doctor πŸ€–
Doctor πŸ€–β€’3y ago
You can have localhost if you have a proxy in between. But I assumed the port might be the issue.
netop://ウィビ
Dah well, I'll figure out the proxy later.
Doctor πŸ€–
Doctor πŸ€–β€’3y ago
Nginx is a great proxy.
netop://ウィビ
I don't want to have to setup nginx just to use localhost in Deno There's gotta be a simpler way
Doctor πŸ€–
Doctor πŸ€–β€’3y ago
Nginx is very simple and if you want to https then add certbot and boom. Set and forget. Anyway. Is 53 the default port for whatever protocol you’re using? If http then 80 is the default. Try domain.com:53
netop://ウィビ
Well my project is a nameserver so port 53 is required
Doctor πŸ€–
Doctor πŸ€–β€’3y ago
That’s fine. You can use whatever port you want, but if it’s not the default port for the protocol you can’t omit it from the url.
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
netop://ウィビ
Sweet, that works. Thanks!

Did you find this page helpful?