For a batch file I am writing I need a command Line utility which converts an IP address into a hostname. Superscan does this for me but with a GUI. I've tried NBSTAT but this relies on NetBios and I've also tried hostname from sysinternals but thisalso fails.
Thanks
Peter
- Follow via:
- RSS
- Email Alert
Question
0
Votes
Answers (6)
0
Votes
CommandLine IP to hostname
This is a rough approach, but:
PING
will also try to resolve the address into the DNS name. The specific format will be something like:
PING ()
so perhaps your script can try yo parse out the name?
Like I said, rough...
PING
will also try to resolve the address into the DNS name. The specific format will be something like:
PING ()
so perhaps your script can try yo parse out the name?
Like I said, rough...
10th Apr 2001
Replies
Sorry should have mentioned that it's for an internal network with no DNS or netbios, just the computer browser service. If superscan can perform this lookup I figure a commandLine utility can.
Peter
Peter
pete_may@...
10th Apr 2001
Sorry to those people suggesting DNS based answers but it's for an internal network with no DNS server or netbios only computer browser. I don't know what method superscan uses for it's lookup function but I need that in a command line.
Thanks Peter
Thanks Peter
pete_may@...
10th Apr 2001
0
Votes
CommandLine IP to hostname
ping -a IP address
Mike
Mike
10th Apr 2001
Replies
Poster rated this answer
pete_may@...
10th Apr 2001
Poster rated this answer
pete_may@...
10th Apr 2001
0
Votes
CommandLine IP to hostname
ping -a IP address
Mike
Mike
10th Apr 2001
Replies
Poster rated this answer
pete_may@...
10th Apr 2001
Poster rated this answer
pete_may@...
10th Apr 2001
0
Votes
CommandLine IP to hostname
Try "nslookup "
If there is a dns server you want to specify use "nslookup "
In either case you'll have to extract the name from the response.
If there is a dns server you want to specify use "nslookup "
In either case you'll have to extract the name from the response.
10th Apr 2001
Replies
The question was auto-closed by TechRepublic
pete_may@...
7th Apr 2002
0
Votes
CommandLine IP to hostname
Look at these links:
"...converts the IP address to hostname..."
http://www.pix.net/staff/djm/sw/fastresolve/man/convert-ip-db.html
"convert IP address to hostname"
http://www.webattack.com/get/bbdns.shtml
http://www.sysinternals.com/ntw2k/source/misc.shtml
http://www.cs.rutgers.edu/~watrous/dns.html
(REMOVE SPACES from pasted URLs.)
Good luck,
Maxwell
"...converts the IP address to hostname..."
http://www.pix.net/staff/djm/sw/fastresolve/man/convert-ip-db.html
"convert IP address to hostname"
http://www.webattack.com/get/bbdns.shtml
http://www.sysinternals.com/ntw2k/source/misc.shtml
http://www.cs.rutgers.edu/~watrous/dns.html
(REMOVE SPACES from pasted URLs.)
Good luck,
Maxwell
7th Jan 2002
Replies
The question was auto-closed by TechRepublic
pete_may@...
7th Apr 2002
0
Votes
CommandLine IP to hostname
This question was auto closed due to inactivity
7th Apr 2002









































