ameshkov / dnslookup

Simple command line utility to make DNS lookups to the specified server
MIT License
816 stars 72 forks source link

Support @ to identify server in argument #73

Open sharego opened 2 months ago

sharego commented 2 months ago

Current, dnslookup uses fixed position for different arguments, first is domain, second is server, it likes nslookup command. However, sometime we forget this constraint.

The dig command use @ to set server, no position required, the we can use like this dnslookup @server domain [<providerName> <serverPk>] or dnslookup domain @server [<providerName> <serverPk>], or dnslookup domain server [<providerName> <serverPk>]

ameshkov commented 2 months ago

I would generally prefer dig-like syntax, but it's a much bigger rework than just adding support for @.

sharego commented 2 months ago

Ok, Thanks