Your browser does not seem to support CSS. If images appear below, please disregard them.
toggle
February
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29
Sponsored Links
Latest Postings
Topic Options
Rate This Topic
#3529 - 02/01/03 02:04 PM Question for people who work with DNS
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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
Top
Sponsored Links
#3530 - 02/01/03 06:53 PM Re: Question for people who work with DNS
Joined: Aug 2002
Posts: 68
Scalli0n Offline
Junior Member
Scalli0n Offline
Junior Member

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)

Top
#3531 - 02/02/03 02:58 AM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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 http://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 http://www.yahoo.com (-v all answers, -V all fields)
http://www.yahoo.com CNAME IN 1368 http://www.yahoo.akadns.net
http://www.yahoo.akadns.net A IN 49 64.58.76.228
http://www.yahoo.akadns.net A IN 49 64.58.76.177
http://www.yahoo.akadns.net A IN 49 64.58.76.223
http://www.yahoo.akadns.net A IN 49 64.58.76.230
http://www.yahoo.akadns.net A IN 49 64.58.76.226
http://www.yahoo.akadns.net A IN 49 64.58.76.227
http://www.yahoo.akadns.net A IN 49 64.58.76.179
http://www.yahoo.akadns.net A IN 49 64.58.76.231
http://www.yahoo.akadns.net A IN 49 64.58.76.229
http://www.yahoo.akadns.net A IN 49 64.58.76.176
http://www.yahoo.akadns.net A IN 49 64.58.76.178
http://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 http://www.yahoo.com


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#3532 - 02/03/03 01:01 AM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 185
Mornse Offline
Member
Mornse Offline
Member

Joined: Mar 2002
Posts: 185
Vancouver
Allow it to output to a text file, oh, i guess you could just do like

C:\>dns http://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
Top
#3533 - 02/03/03 02:17 AM Re: Question for people who work with DNS
Joined: Feb 2002
Posts: 7,194
Gremelin Offline
Community Owner
Gremelin Offline

Community Owner

Joined: Feb 2002
Posts: 7,194
Portland, OR; USA
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 :/.


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Top
#3534 - 02/03/03 02:48 AM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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
Top
#3535 - 02/03/03 03:15 PM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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!

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 http://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.


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#3536 - 02/06/03 10:09 AM Re: Question for people who work with DNS
Joined: Aug 2002
Posts: 68
Scalli0n Offline
Junior Member
Scalli0n Offline
Junior Member

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.

Top
#3537 - 02/16/03 12:05 AM Re: Question for people who work with DNS
Joined: Jun 2002
Posts: 168
Paragon Offline
Member
Paragon 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. :-/

Top
#3538 - 02/18/03 02:27 PM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 256
ninjaneo Offline
UGN Security Staff
ninjaneo Offline
UGN Security Staff

Joined: Mar 2002
Posts: 256
CA, USA
./dns http://www.bob.com
Resolvoed http://www.bob.com to 64.55.188.20

or elite things like

./dns *.bob.com

Top
#3539 - 02/18/03 08:22 PM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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
Top
#3540 - 02/18/03 08:31 PM Re: Question for people who work with DNS
Joined: Feb 2002
Posts: 7,194
Gremelin Offline
Community Owner
Gremelin Offline

Community Owner

Joined: Feb 2002
Posts: 7,194
Portland, OR; USA
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 ass).


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Top
#3541 - 02/19/03 12:16 AM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
There is no way within the DNS protocol to enumerate all the hosts a domain possesses.


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#3542 - 02/19/03 02:08 AM Re: Question for people who work with DNS
Joined: Feb 2002
Posts: 7,194
Gremelin Offline
Community Owner
Gremelin Offline

Community Owner

Joined: Feb 2002
Posts: 7,194
Portland, OR; USA
I know, hence why i said it'd be difficult lol, i didn't want to be entirely negative about it ...


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Top
#3543 - 04/01/03 07:56 AM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 256
ninjaneo Offline
UGN Security Staff
ninjaneo Offline
UGN Security Staff

Joined: Mar 2002
Posts: 256
CA, USA
aye SR.. but using either whois/nameserver servers you could get the list...

Top
#3544 - 04/01/03 04:02 PM Re: Question for people who work with DNS
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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 shit 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
Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,194
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums46
Topics43,856
Posts79,030
Members2,157
Most Online1,567
Apr 25th, 2010
Top Posters(All Time)
UGN Security 37,019
Gremelin 7,194
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, boa
2157 Registered Users
Who's Online Now
0 registered members (), 1 guest and 0 spiders.
Latest News