Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
OP Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
What is the most convenient way can you think of for using a commandline dns lookup utility? Like what parameters would you find most convenient? What output would you find the most readable/useable? You see, I'm making one and am collecting ideas.


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Aug 2002
Posts: 68
S
Junior Member
Offline
Junior Member
S
Joined: Aug 2002
Posts: 68
I'd like a DNS client to provide me with the lookup results for an IP or a hostname, then give me the nameservers that assigned that result (if it's not a .com|org|net sorta name (i.e. upper level)

Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
OP Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
well, it'll be able to display anything, but what I'm collecting is ideas on how to issue the commandline. Also, in how it formats the return data.

Ex: (current setup)

C:\>dns www.yahoo.com
64.58.76.228
64.58.76.177
64.58.76.223
64.58.76.230
64.58.76.226
64.58.76.227
64.58.76.179
64.58.76.231
64.58.76.229
64.58.76.176
64.58.76.178
64.58.76.222

C:\>dns -vV www.yahoo.com (-v all answers, -V all fields)
www.yahoo.com CNAME IN 1368 www.yahoo.akadns.net
www.yahoo.akadns.net A IN 49 64.58.76.228
www.yahoo.akadns.net A IN 49 64.58.76.177
www.yahoo.akadns.net A IN 49 64.58.76.223
www.yahoo.akadns.net A IN 49 64.58.76.230
www.yahoo.akadns.net A IN 49 64.58.76.226
www.yahoo.akadns.net A IN 49 64.58.76.227
www.yahoo.akadns.net A IN 49 64.58.76.179
www.yahoo.akadns.net A IN 49 64.58.76.231
www.yahoo.akadns.net A IN 49 64.58.76.229
www.yahoo.akadns.net A IN 49 64.58.76.176
www.yahoo.akadns.net A IN 49 64.58.76.178
www.yahoo.akadns.net A IN 49 64.58.76.222

C:\>dns -tPTR 64.58.74.222
w1.dcx.yahoo.com

(it used the default dns server as specified in the ini file, you may of course specify one)

dns -s A.ROOT-SERVER.NET www.yahoo.com


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Mar 2002
Posts: 185
M
Member
Offline
Member
M
Joined: Mar 2002
Posts: 185
Allow it to output to a text file, oh, i guess you could just do like

C:\>dns www.yahoo.com >> output.txt

Right? Would that work? If not, make it possible to output to a text file.


Cha want some w***up?

http://www.dopeskill.com
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
I know that its a totally differant thing completely, but it'd be kind of handy if you could:

C:\>dns -t UnderGroundNews.com

and get an output of the traceroute file for say 30 hops :x... But thats taking advantage of a dns utility since traceroute and ping are two entirely differant tools smirk.


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
OP Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
no actually traceroute and ping are almost completely the same (same protocol ICMP). dns however is of course a completely different protocol, and no I won't have that feature because of that.

yes mornse, you can output the data from the query to file. Which is why I'll have options to include not only answer records, but authoritative records and additional records to recieve the full report like my current DNS lookup gives.


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
OP Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
lol, well, nevermind. I decided I don't need suggestions (although they're still welcome). I finally sat down and decided to do some planning for the command-line rather than coding as I go. The command-line system I've developed fits all my ideals:

Powerful - rediculously powerful
typer friendly - pre-configure commandline profiles (reduces typing)
readable/intuitive commandline options

It'll be a downright joy to use! laugh

Imagine typing this into the commandline anytime:

C:\>dns !yahoo

And getting all the IP addresses associated with yahoo.com . Or how bout this:

C:\>dns !IP www.undergroundnews.com

!IP would have contained all the options you desire for your basic IP lookup needs.

gosh DANG I love being a genious. laugh


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Aug 2002
Posts: 68
S
Junior Member
Offline
Junior Member
S
Joined: Aug 2002
Posts: 68
Mornse - just a tip - any program outputs via "command > textfile.txt" to textfile; it's usually a feature of the OS you're using.

And no, that was *not* a flame.

Joined: Jun 2002
Posts: 168
Member
Offline
Member
Joined: Jun 2002
Posts: 168
Well, not any...
Try the route command on windows. It won't let you pipe or redirect the output. It's a real pain actually, 'cause the help is more than one screen full. :-/

Joined: Mar 2002
Posts: 256
Likes: 1
UGN Security Staff
Offline
UGN Security Staff
Joined: Mar 2002
Posts: 256
Likes: 1
./dns www.bob.com
Resolvoed www.bob.com to 64.55.188.20

or elite things like

./dns *.bob.com

Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
OP Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
Well, I had already completed the program, but this is what it currently looks like with default settings. Is this good enough? (keep in mind that some domains have multiple IP addresses)

Code
C:\Documents and Settings\SR\Desktop>dns www.bob.com
Recursively querying A.GTLD-SERVERS.NET (192.5.6.30)
Recursively querying ns2.adgrafix.com (140.239.36.2)
.
** Answer Records     **********************************************************
www.bob.com              A     64.55.188.20
.
.
C:\Documents and Settings\SR\Desktop>dns bob.com
Recursively querying A.GTLD-SERVERS.NET (192.5.6.30)
Recursively querying ns2.adgrafix.com (140.239.36.2)
.
** Answer Records     **********************************************************
.
bob.com                  A     64.55.188.20
.
.
C:\Documents and Settings\SR\Desktop>
(for some reason I had to insert periods in the blank lines cause UBB wouldn't show the blank lines)


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
I think neo wants to have *.bob.com for:

joe.bob.com
mom.bob.com
jack.bob.com

he basically wants it so that it'll dns all of the various hostnames, which i think would be sort of difficult (never use impossible, always someone who will go the long mile to kick your [censored]).


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
OP Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
There is no way within the DNS protocol to enumerate all the hosts a domain possesses.


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
I know, hence why i said it'd be difficult lol, i didn't want to be entirely negative about it wink ...


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Joined: Mar 2002
Posts: 256
Likes: 1
UGN Security Staff
Offline
UGN Security Staff
Joined: Mar 2002
Posts: 256
Likes: 1
aye SR.. but using either whois/nameserver servers you could get the list...

Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
OP Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
damnit neo, I already said how you could get the list. Why'd you have to bring up the topic where I made a statement I've already said wasn't true?

Go spam your [censored] on the newer topic:
http://www.UnderGroundNews.com/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=1;t=000327

Closed.


Domain Registration, Hosting, Management
http://www.dollardns.net

Link Copied to Clipboard
Member Spotlight
Phatal
Phatal
Houston, TX
Posts: 298
Joined: April 2004
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Cyrez 1
Girlie 1
unreal 1
Crime 1
Powered by UBB.threads™ PHP Forum Software 7.7.5