Advertisement

Two unrelated problems: DNS and FTP

Started by August 01, 2003 10:16 PM
2 comments, last by Evil Bill 21 years, 6 months ago
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.1
There are currently 1 users online.
OUTPUT: 220-Welcome to the Throbbing Meatloaf Software FTP server, steve
220-Current user load: 1/16
220-Supply username and password to access user directory, or Anonymous for
220 anonymous FTP.
INPUT : USER anonymous
OUTPUT: 331 Please enter E-Mail address as password
INPUT : PASS mozilla@example.com
OUTPUT: 230 Password OK, Logged in.
INPUT : SYST
OUTPUT: 215 UNIX Type: L8
INPUT : PWD
OUTPUT: 257 "/"
INPUT : TYPE I
OUTPUT: 200 Ok, mode set to binary
INPUT : PASV
OUTPUT: 227 Entering Passive Mode (127,0,0,1,4,26)
INPUT : SIZE /
OUTPUT: 500 Unknown Command
INPUT : /
OUTPUT: 550 Unknown command
INPUT : MDTM /
OUTPUT: 500 Unknown Command
INPUT : RETR /
OUTPUT: 550 Invalid file.
INPUT : PASV
OUTPUT: 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
Member of the Unban Mindwipe Society (UMWS)
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.
Member of the Unban Mindwipe Society (UMWS)
Advertisement
> 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/DhcpNameServer

You 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
Member of the Unban Mindwipe Society (UMWS)

This topic is closed to new replies.

Advertisement