   Two unrelated problems: DNS and FTP
  Question 1.Is there any easy way to determine your DNS server? Preferably programmatically.Question 2.Mozilla doesn''t seem to like my FTP server much. Heres a bit of log:   New connection on Sat Aug 02 03:59:39 2003 from 127.0.0.1There are currently 1 users online.OUTPUT: 220-Welcome to the Throbbing Meatloaf Software FTP server, steve220-Current user load: 1/16220-Supply username and password to access user directory, or Anonymous for220 anonymous FTP.INPUT : USER anonymousOUTPUT: 331 Please enter E-Mail address as passwordINPUT : PASS mozilla@example.comOUTPUT: 230 Password OK, Logged in.INPUT : SYSTOUTPUT: 215 UNIX Type: L8INPUT : PWDOUTPUT: 257 "/"INPUT : TYPE IOUTPUT: 200 Ok, mode set to binaryINPUT : PASVOUTPUT: 227 Entering Passive Mode (127,0,0,1,4,26)INPUT : SIZE /OUTPUT: 500 Unknown CommandINPUT : /OUTPUT: 550 Unknown commandINPUT : MDTM /OUTPUT: 500 Unknown CommandINPUT : RETR /OUTPUT: 550 Invalid file.INPUT : PASVOUTPUT: 227 Entering Passive Mode (127,0,0,1,4,26)Client disconnected.The problem is that according to the stuff i''ve read, "RETR /" isn''t a valid command, since "/" isn''t a file. I assume its wanting a directory listing, but then whats wrong with "LIST"? Am i supposed to check the filename and see if its wanting a directory listing?After mozilla disconnects, it sits there with the icon animating (busy), and does nothing. FTP for mozilla then stops working (it just sits there with the icon going) for any site, and remains that way until i close all mozilla windows and restart it.I suppose thats what i get for using a web browser as an FTP client...Anyone know whats wrong here, or what i''m supposed to do?Cheers,Steve   This post brought to you with the power of TA    
  Update:I changed my server so that "RETR /" is treated the same as "LIST", and Mozilla errors on the line "150 Incomming directory listing on data connection..." (pops up a dialog box with that in it). It then does the same as before (buggers up).Again, a bit of log: INPUT : RETR /OUTPUT: 150 Incomming directory listing on data connection...OUTPUT: 226 Transfer complete.INPUT : PASVOUTPUT: 227 Entering Passive Mode (127,0,0,1,4,26)Client disconnected.I think mozilla hates me. ;  > Is there any easy way to determine your DNS server?> Preferably programmatically.On Win2K, it''s located in {HKEY_LOCAL_MACHINE}/System/CurrentControlSet/Services/Tcpip/Parameters/DhcpNameServerYou can use the value there or find the value on a per-adapter card basis by looking in the ''Interface'' sub-key.-cb ;  Excellent, thanks 