RE: DNS'ing an IP_Address
- Posted by fernando at RXP.COM Feb 11, 2001
- 381 views
------=_NextPart_000_0005_01C09473.727E3EC0 charset="iso-8859-1" I wonder if there is a way to use a “ping” command like in dos. I know that in dos batch files I can do the following at the command prompt: ping cnn.com –n 1 > c:\result.txt The “-n” part just means to ping it once. Then I just parse the “result.txt” file for the IP address. If there is nothing equivalent to that in EU then maybe make a batch file and have the EU program execute it and parse the results. Maybe I’m stupid and you should just ignore me. Fernando Pinging cnn is useless since they protect themselves from denial of service attacks but it still returns the ip address. -----Original Message----- From: Chris Bensler [mailto:bensler at mailops.com] Sent: Sunday, February 11, 2001 4:24 PM To: EUforum at topica.com Subject: RE: DNS'ing an IP_Address I'm writing this Chat server/client for my own benifit.. Don't mean to be selfish, but it's a learning curve.. Can't learn if I don't try.. If it's good enough, I'll prolly release it, if only for a demo of how to use euLibnet.. I do like mIRC, and I DO use it, in fact I had learned a BIT of mIRC script last year,even wrote some of my own.. Stopped learning it though, after I realized that there isn't much market for it.. But I still want to code my own. Prolly will be modelled after mIRC considering it's the best there is.. Kat wrote: > If it's not dynamic, then why not put the ip# into an ini or config > file, so if the file exists, > the user isn't prompted for it? > I'm hoping I'll be able to connect it to IRC servers, the user would choose which one.. <SNIP> > Ok, still, look at the functions in WebShepard. Technically, when you > type in a > www.whatever.com into WebShepard, you do not connect to that, you > connect to the > IP# after WebShepard DNS's it. Will do, this is what I was asking for.. TY > Why not use an existing chat client? While Eu is nice, and i applaud > your efforts, and > i'd like to see a mirc-like client written in Eu, the fact is that mirc > already exists, and if > you place an ircd on the eu.net, mirc will connect *now*, with no code > written at all. > I am by no means, trying to surpass or even remotely come close to accomplishing what mirc does.. sure would be nice though! :) > You don't connect to dalnet.com, altho if they put a ircd on that name, > you could,,, but > for dalnet you'd connect to the generic Dalnet: "/server irc.dal.net > 7000", or whatever > specific server you'd like, such as "twisted.dal.net". That's what I meant.. :) Chris ------=_NextPart_000_0005_01C09473.727E3EC0 charset="iso-8859-1" <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta name=3D"Microsoft Theme 2.00" content=3D"test.htm 011"> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <meta name=3DProgId content=3DWord.Document> <meta name=3DGenerator content=3D"Microsoft Word 9"> <meta name=3DOriginator content=3D"Microsoft Word 9"> <link rel=3DFile-List href=3D"cid:filelist.xml at 01C09473.71F97E60"> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> </w:WordDocument> </xml><![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:16792199 0 0 0 65791 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {margin-right:0in; mso-margin-top-alt:auto; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} span.EmailStyle15 {mso-style-type:personal-compose; color:black;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple = style=3D'tab-interval:.5in'> <div class=3DSection1> <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>I wonder if = there is a way to use a “ping” command like in dos. I know that in dos = batch files I can do the following at the command prompt:<o:p></o:p></span></font></span></p> <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>ping cnn.com = –n 1 > c:\result.txt<o:p></o:p></span></font></span></p> <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>The = “-n” part just means to ping it once.<o:p></o:p></span></font></span></p> <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Then I just = parse the “result.txt” file for the IP address. If there is nothing equivalent to that in EU = then maybe make a batch file and have the EU program execute it and parse the = results.<o:p></o:p></span></font></span></p> <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Maybe = I’m stupid and you should just ignore me. <o:p></o:p></span></font></span></p> <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span = <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Pinging cnn is = useless since they protect themselves from denial of service attacks but it = still returns the ip address.<o:p></o:p></span></font></span></p> <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblack face=3DTahoma><span = Message-----<br> <b><span style=3D'font-weight:bold'>From:</span></b> Chris Bensler [mailto:bensler at mailops.com]<br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Sunday, February = 11, 2001 4:24 PM<br> <b><span style=3D'font-weight:bold'>To:</span></b> = EUforum at topica.com<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: DNS'ing an = IP_Address</span></font><font color=3Dblack><span = /p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span = style=3D'font-size:12.0pt;color:black'><![if = color=3Dblack><span = /p> <p style=3D'margin-bottom:12.0pt;margin-left:.5in'><font size=3D2 = color=3Dblack face=3D"Times New Roman"><span = style=3D'font-size:10.0pt;color:black'>I'm writing this Chat server/client for my own benifit..<br> Don't mean to be selfish, but it's a learning curve..<br> Can't learn if I don't try..<br> If it's good enough, I'll prolly release it, if only for a demo of = how<br> to use euLibnet..<br> <br> I do like mIRC, and I DO use it, in fact I had learned a BIT of mIRC<br> script last year,even wrote some of my own..<br> Stopped learning it though, after I realized that there isn't much<br> market for it..<br> But I still want to code my own. Prolly will be modelled after mIRC<br> considering it's the best there is..<br> <br> <br> Kat wrote:<br> > If it's not dynamic, then why not put the ip# into an ini or = config<br> > file, so if the file exists,<br> > the user isn't prompted for it?<br> ><br> <br> I'm hoping I'll be able to connect it to IRC servers, the user would<br> choose which one..<br> <br> <SNIP><br> <br> > Ok, still, look at the functions in WebShepard. Technically, when = you<br> > type in a<br> > www.whatever.com into WebShepard, you do not connect to that, = you<br> > connect to the<br> > IP# after WebShepard DNS's it.<br> <br> Will do, this is what I was asking for.. TY<br> <br> > Why not use an existing chat client? While Eu is nice, and i = applaud<br> > your efforts, and<br> > i'd like to see a mirc-like client written in Eu, the fact is that = mirc<br> > already exists, and if<br> > you place an ircd on the eu.net, mirc will connect *now*, with no = code<br> > written at all.<br> ><br> <br> I am by no means, trying to surpass or even remotely come close to<br> accomplishing what mirc does.. sure would be nice though! :)<br> <br> > You don't connect to dalnet.com, altho if they put a ircd on that = name,<br> > you could,,, but<br> > for dalnet you'd connect to the generic Dalnet: "/server = irc.dal.net<br> > 7000", or whatever<br> > specific server you'd like, such as = "twisted.dal.net".<br> <br> That's what I meant.. :)<br> <br> Chris<br> <br> color=3Dblack><span = /p> <p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D3 = color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><![if = </div> </html> ------=_NextPart_000_0005_01C09473.727E3EC0--