LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2006, 05:54 AM   #1
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93
Blog Entries: 1

Rep: Reputation: 15
domain name


I want to forward the request to http:\\ftp.unitedknow.edu to ftp:\\unitedknow.edu. can it be done using configs (DNS data) of named server....
 
Old 03-11-2006, 02:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, that makes no sense... you can't just jump protocol like that. either it's http or it's ftp... make your mind up... How you you feel if mid conversation the person you were speaking to started talking latin and expected you to understand?

additionally, forwarding http is outside of DNS. DNS can tell you the ip address of a certain machine, and could be told to report that both servers have the same address, but it has nothign whatsoever to do with http or ftp.

and that's a rubbish title... please be more descriptive next time.
 
Old 03-11-2006, 02:58 PM   #3
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
Em, no. heres why:

the xxxx:\\ part specifies a protocol, not a computer.

in http:\\ftp.unitedknow.edu you tell the computer to contact a computer called ftp in the domain unitedknow.edu using the hypertext transfer protocol (meaning port 80, usually).

Chaning it to the proposed would mean that you have a computer called unitedknow and you own the domain edu... which you propably dont... using ftp (port 21 or 25 for control lines, I not sure which, and a high port for the data transfer). So acid is right, this makes no sense what so ever...

What you can do is create an alias to another computer (say download.unitedknow.edu) using the CNAME syntax in your bind config file (actually, the file pointed to for this domain by named.conf). namely so:

ftp IN A 192.168.2.12 #just an example address
download IN CNAME ftp

or you can symply run a ftp server on ftp.unitedknow.edu, which means that you simply substitute the http for ftp in the protocol identifier of the URL... ftp:\\ftp.unitedknow.edu

Last edited by ichrispa; 03-11-2006 at 03:01 PM.
 
Old 03-11-2006, 03:00 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I don't think a http server can talk to a ftp server and hand over a request. What you're asking is for the web server (for example Apache) to hand over a request to the ftp server (for example vsftpd) and for it to come back to your browser transparently.

A proxy server (for example Squid) can handle ftp and http requests, but won't change a request protocol from http to ftp. It also can't be done using a name server.

If you're only trying to stop users going to the http site, can you email them a link to the ftp site that they can add to their bookmarks?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCPD is updating BIND with <host>.<domain>.<domain>. diabelek Linux - Networking 15 10-11-2007 05:58 AM
what would make ever virtual domain name resolve to one domain name on my system kuplo Linux - Newbie 1 11-14-2005 06:57 PM
Joined Domain, can't login as domain user mikeyt_333 Linux - Networking 12 08-26-2005 08:25 AM
Cant get entry in bind to work with domain.com instead of www.domain.com pxes351 Linux - Networking 12 05-09-2005 06:20 AM
Joining a machine from another domain to my linux samba domain acummins Linux - Networking 0 09-13-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration