DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 22nd, 2003, 04:20 PM
brivox brivox is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 brivox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Defining port in A record

I am trying to configure a windows 2000 server machine running a dns server to route requests to URL to xxx.xxx.xxx.xxx:8001 but when I open MMC and go to add an A record there is no place to put the port in. there are 4 slots to put in the ip address you want to go to, but no place to specify a port for this address. I also tried adding a CNAME and doing it that way but it wont let me put it in there either. I know its possible to assign an ip and port to a domain name as many name provider services have web interfaces that allow you to do it. Does anyone know how to do this using windows DNS Server? thanks in advance. -Brion

Reply With Quote
  #2  
Old July 23rd, 2003, 10:18 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
You need to configure and start a service listening to that port on that IP... Ports have nothing to do with the DNS.

Reply With Quote
  #3  
Old July 23rd, 2003, 10:31 AM
brivox brivox is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 brivox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have a webserver listening on port 8001 and mydomain.com pointing to the IP address of that machine. Right now in order to access that server I have to type in URL isn't there some way using DNS to say that URL should not just go to a specific IP, but an IP and a port so that URL will go to my webserver on port 8001 without having to put the port manually in with the domain name? If not could you tell me how people are running multiple webservers on different ports of the same machine with seperate domain names resolving, as this is my final goal. For instance I want to be able to have a server running on 8001 and 8002 each with seperate domain names and not have to have people type in the port name. URL would go to the server on port 8001 and URL would go to the server on port 8002. Thanks again for the help, I just can't seem to figure this one out. -Brion

Reply With Quote
  #4  
Old July 23rd, 2003, 12:36 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,430 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 41 m 55 sec
Reputation Power: 784
>> isn't there some way using DNS to say that www.mydomain.com should not just go to a specific IP, but an IP and a port
No. The purpose of DNS is to resolve www.mydomain.com to a specific IP address. DNS doesn't know about or care about whether you need to connect to http, ftp, e-mail, https, quake, ssh or any other port on that address.

[edit]
I bet you're running off a home cable modem and your ISP has blocked incoming requests to port 80. If you want to run your own webserver from home, why don't you ask your ISP if they offer a webhost special -- most of them do, but you might need to pay a little extra for this privilege. As for hosting two domains, google for name based virtual hosting. That's how people host multiple domains on the same webserver.
[/edit]
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Last edited by Scorpions4ever : July 23rd, 2003 at 12:57 PM.

Reply With Quote
  #5  
Old July 24th, 2003, 11:55 AM
j8ear j8ear is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 3 j8ear User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
define port in your webserver

DNS does not handle ports. Although the active directory intergrated DNS that often gets run on a windows 2000 server does create well know service and other SRV class records which can define which TCP ports to use for a specific service.

Much easier would be to define the port used in the webserver itself. Every web server (IIS, apache, NES, iplanet) i have ever seen can be configured on any TCP port you want.

Reply With Quote
  #6  
Old July 26th, 2003, 06:07 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
You can write a webserver backend script or redirect to provide redirection.

Reply With Quote
  #7  
Old September 16th, 2003, 11:41 AM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
Windows 2000 DNS does not support this

Windows 2000 DNS does not support this. Nor does 2003 DNS, but if you use Linux's Bind you can specify port with IP and it works fine E.G. 127.0.0.1:81. You may not have a linux box, but there are Win32 versions of bind available. I dont know if the Win32 versions of Bind support this but I would bet they do. Hope this helps

Sam Land
http://www.dyndnsservices.com

Reply With Quote
  #8  
Old September 16th, 2003, 01:09 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,430 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 41 m 55 sec
Reputation Power: 784
Re: Windows 2000 DNS does not support this

-- My bad --- flame removed

To the original poster -- You can use SilentRage's suggestion if you like -- some companies offer a web redirection service. The way it works is, you point your domain name (www.yourdomain.com) to their webserver and when a user goes to www.yourdomain.com, they actually go to their website. Then, those guys either
(a) Redirect the user to your webserver's IP address with a high port such as http://12.34.56.78:8081/
(b) Serve up a frame and put a link to your webserver in one of the frames (http://12.34.56.78:/8081/)

Most of them use option (b) and serve up ads in the other frames (which you may not like). Also, if your home IP address changes, you'll need to update the information on their servers. One more disadvantage is that search engine spiders may not follow the redirect to your site, so your content may not get crawled.

Last edited by Scorpions4ever : September 17th, 2003 at 03:12 PM.

Reply With Quote
  #9  
Old September 16th, 2003, 01:13 PM
dwellersoul dwellersoul is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: SoCal
Posts: 9 dwellersoul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 7 sec
Reputation Power: 0
Umm.... are you sure that you are reading your documentation correctly? In all the years that DNS has existed it not once has provided port mapping. Err.. ending flame since I noticed Scorp has gotten to you already.

Also that seems to be a good solution for it all.

Reply With Quote
  #10  
Old September 16th, 2003, 01:20 PM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
The BIND comment works please try yourself. Windows DNS supports this with SRV records the only hangup beeing no current browsers ftp clients etc. support SRV lookups.

Reply With Quote
  #11  
Old September 16th, 2003, 01:25 PM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
I have personally done this with BIND 8. Whether it is documented or not is anouther matter, maybe it should be considred a bug but it does work. The below DNS config file will redirect a browser to port 81.

$TTL 38400
website.com. IN SOA jack sam.website.com. (
10822
3600
3600
38400
38400 )

website.com. IN NS jack
website.com. IN A 24.116.98.21:81
ftp.website.com. IN A 24.116.98.21:21
www.website.com. IN A 24.116.98.21:81
straight.website.com. IN A 24.116.98.21

Last edited by DynDNS : September 16th, 2003 at 01:35 PM.

Reply With Quote
  #12  
Old September 16th, 2003, 01:58 PM
DynDNS DynDNS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 50 DynDNS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 6
Re: Re: Windows 2000 DNS does not support this

Quote:
Originally posted by Scorpions4ever
[flame]
WTF? Since when does name resolution have *anything* to do with ports? Your statement about BIND is totally BOGUS. No DNS server on earth (Microsoft DNS, Bind, djbdns, maradns or any other DNS) supports the concept of ports. DNS is only meant to resolve hostnames to IP addresses (or the other way around). it DOESN'T CARE if you intend to FTP, HTTP, SSH, ping or whatever to the IP address.

Dude, you shouldn't go about advertising that you run a dynamic dns service. It is perfectly clear from your statements that you don't know the first thing about DNS. Instead of spending your time posting totally bogus statements, you might as well open a book about DNS and actually study the contents.
[/flame]

To the original poster -- You can use SilentRage's suggestion if you like -- some companies offer a web redirection service. The way it works is, you point your domain name (www.yourdomain.com) to their webserver and when a user goes to www.yourdomain.com, they actually go to their website. Then, those guys either
(a) Redirect the user to your webserver's IP address with a high port such as http://12.34.56.78:8081/
(b) Serve up a frame and put a link to your webserver in one of the frames (http://12.34.56.78:/8081/)

Most of them use option (b) and serve up ads in the other frames (which you may not like). Also, if your home IP address changes, you'll need to update the information on their servers. One more disadvantage is that search engine spiders may not follow the redirect to your site, so your content may not get crawled.


First Off I do not run a DNS Service Second why would I recomend BIND if I were advertising my software.

The statement above does work. maybe you should try yourself before bashing someone who is just trying to help. Oh yeah no server in the world supports this. well if a DNS server supports SRV records it does go figure.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Defining port in A record


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |