LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 01-02-2010, 02:17 PM   #1
sparc86
Member
 
Registered: Jul 2006
Location: Joinville, Southern Brazil
Distribution: Debian, CentOS
Posts: 296

Rep: Reputation: 31
About hostname configuration on BIND.


Hello LQ community.

I have read a lot of documentation but it is still hard to find a proper answer to my doubts.

About the hostnames in a domain, how is it associate to a determinated port?

like:
Quote:
sparc86.net. IN A XXX.XXX.XXX.XXX
www.sparc86.net. IN A XXX.XXX.XXX.XXX
ftp.sparc86.net. IN A XXX.XXX.XXX.XXX
m.sparc86.net. IN A XXX.XXX.XXX.XXX
localhost.sparc86.net. IN A XXX.XXX.XXX.XXX
webmail.sparc86.net. IN A XXX.XXX.XXX.XXX
admin.sparc86.net. IN A XXX.XXX.XXX.XXX
mail.sparc86.net. IN A XXX.XXX.XXX.XXX
sparc86.net. IN MX 5 mail.sparc86.net.
For example, when I type on the browser webmail.sparc86.net and then I get redirected to the port of 20000 of this same domain. Fine, but how does it work that it knows it should be redirected to the port 20000? From where is this information (the association webmail-port 20000) taken? The apache will manage this, right? But what about other services like ftp?

Another example, If I wrote my own software listening, let's say on the port 40000 and I want to have a domain like "mystuff.sparc86.net" how would I let it be redirected to the port 40000 ?

I hope I am being clear on my question.

Thanks in advance!
 
Old 01-02-2010, 04:47 PM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
You don't

It's simple. You don't. The DNS system does not handle ports (except maybe SRV records which are not supported with web browsing). If you need to redirect a browser to an other port, you need to run a webserver on port 80 and configure it for permanent redirection. The same goes for almost any protocol.
 
1 members found this post helpful.
  


Reply

Tags
bind


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postfix Hostname / domain name configuration problem. farrukhndm Linux - Server 6 10-30-2010 08:05 PM
Squid Configuration (Visible Hostname) villajohn Linux - Software 7 02-25-2009 01:20 PM
DNS bind cant resolve IP and hostname dwarf007 Linux - Software 1 01-14-2006 09:42 AM
Suse 9.3 - Hostname Proper Configuration? macgyver007 Linux - Newbie 0 04-18-2005 08:15 PM
Hostname Configuration strimp099 Linux - Networking 1 12-28-2004 03:48 AM


All times are GMT -5. The time now is 12:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration