Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative port #106

Open
sergeevabc opened this issue Dec 25, 2023 · 12 comments
Open

Alternative port #106

sergeevabc opened this issue Dec 25, 2023 · 12 comments

Comments

@sergeevabc
Copy link

sergeevabc commented Dec 25, 2023

Dear @mr-karan, my ISP blocks 53 port for queries meant for third-party DNS resolvers, so one has to use alternative ports (e.g. 91.239.100.100:5353), but doggo.exe doesn't seem to have this functionality at the moment. Consider adding optional port param, or even accepting address:port as is. At present, it throws an error as follows

$ doggo.exe 16ao.mathon.fr @91.239.100.100:5353
time="..." level=error msg="error loading nameservers" error="error parsing nameserver: 91.239.100.100:5353"
@sergeevabc
Copy link
Author

Err… Hello?

@mr-karan
Copy link
Owner

mr-karan commented Jan 8, 2024

It already supports it. doggo 16ao.mathon.fr @udp://91.239.100.100:5353

@mr-karan mr-karan closed this as completed Jan 8, 2024
@sergeevabc
Copy link
Author

sergeevabc commented Jan 12, 2024

@mr-karan, but the following command does not work as expected:

$ doggo github.com -n 77.88.8.8:1253
NAME            TYPE    CLASS   TTL     ADDRESS         NAMESERVER
github.com.     A       IN      1648s   140.82.121.4    127.0.0.1:53

Local 127.0.0.1 resolver is used instead of 77.88.8.8:1253.

Even if the port is omitted…

$ doggo github.com -n 77.88.8.8
NAME            TYPE    CLASS   TTL     ADDRESS         NAMESERVER
github.com.     A       IN      1545s   140.82.121.4    127.0.0.1:53

@mr-karan
Copy link
Owner

doggo github.com @udp://77.88.8.8:1253
NAME       	TYPE	CLASS	TTL	ADDRESS     	NAMESERVER     
github.com.	A   	IN   	32s	140.82.121.3	77.88.8.8:1253

@sergeevabc
Copy link
Author

@mr-karan, I'm aware of the syntax you mention, but your app, according to its manual, offers -n switch and that one does not work as expected.

$ doggo

VERSION:
  v0.5.7 (c72c2ef 2023-09-13T10:07:23Z) - unknown

EXAMPLES:

  doggo -q mrkaran.dev -t MX -n 1.1.1.1         Using named arguments.

Query Options:

  -n, --nameserver=ADDR       Address of a specific nameserver to send queries to (9.9.9.9, 8.8.8.8 etc).

@mr-karan
Copy link
Owner

mr-karan commented Jan 12, 2024

The -n flag defaults to :53 port and can't be overridden, same as documented. To override you need to use @ with the full format.

Will add support for custom port in -n sometime in future, but not a priority now.

@sergeevabc
Copy link
Author

sergeevabc commented Jan 12, 2024

@mr-karan, oh.

But -n in my case defaults not only to port 53, but to a local resolver as well.

$ doggo github.com -n 77.88.8.8
NAME            TYPE    CLASS   TTL     ADDRESS         NAMESERVER
github.com.     A       IN      1545s   140.82.121.4    127.0.0.1:53

whereas it is expected as follows

$ doggo github.com -n 77.88.8.8
NAME            TYPE    CLASS   TTL     ADDRESS         NAMESERVER
github.com.     A       IN      1545s   140.82.121.4    77.88.8.8:53

@mr-karan
Copy link
Owner

Will check this.

@mr-karan mr-karan reopened this Jan 13, 2024
@sergeevabc
Copy link
Author

Karan, when you decide to add this feature, please compile Doggo via Go 1.20, because these traitors removed Windows 7 support from Go 1.21.

@mr-karan
Copy link
Owner

That won't be possible, it won't make sense to compile for an older version.

@sergeevabc
Copy link
Author

sergeevabc commented Jan 24, 2024

It is possible, Karan.

A couple of examples when developers used Go 1.20
to compile binaries keeping in mind Windows 7 users:

And it makes sense, Karan, because there are people like me who use and will continue to use Windows 7. It is a polished OS that got all the functions your app need. This determines whether it is time to upgrade or not, not the words of some American company. After all, a hammer hammers nails regardless of whether there is a company that produced it or what that company says, because it is a good hammer.

@DaRacci
Copy link

DaRacci commented Jun 6, 2024

Dude just switch to Linux at this point, you're on an old unsupported operating system which is also no longer receiving security updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants