Notices
924/931/944/951/968 Forum Porsche 924, 924S, 931, 944, 944S, 944S2, 951, and 968 discussion, how-to guides, and technical help. (1976-1995)
Sponsored by:
Sponsored by:

Computer Nerd Question: DNS

Thread Tools
 
Search this Thread
 
Old 08-01-2002, 12:27 PM
  #1  
Brian Wilson
Addict
Rennlist Member

Thread Starter
 
Brian Wilson's Avatar
 
Join Date: Oct 2001
Location: Kingston, TN
Posts: 1,166
Received 2 Likes on 1 Post
Post Computer Nerd Question: DNS

What kind of entry do you use to make DNS point toward a specific port?

If anyone knows, thanks, and you are a huger nerd than I am.
Old 08-01-2002, 12:58 PM
  #2  
Toolmaster
Addict
Lifetime Rennlist
Member
 
Toolmaster's Avatar
 
Join Date: Nov 2001
Location: Amherst, NH
Posts: 761
Likes: 0
Received 0 Likes on 0 Posts
Post

ECpunk -

Well, technically speaking, it'd be a SRV record.

Bind 8.2.3+ and Microsoft DNS support SRV records.

In earlier versions of BIND, and also Microsoft DNS, there was no support for this.

The record contains the specific port a service is advertised on.

If this isn't what you're looking for, let me know and I can try to help.

What exactly are you trying to do?

HTH!
Old 08-01-2002, 01:04 PM
  #3  
TomH
Pro
 
TomH's Avatar
 
Join Date: May 2001
Location: Annapolis, MD
Posts: 552
Likes: 0
Received 0 Likes on 0 Posts
Post

Don't know why you would do this either, but can't you enter you DNS entries in the TCP properties with the IP address followed by the specific port, aka 192.168.121.1:8080
Old 08-01-2002, 01:07 PM
  #4  
Toolmaster
Addict
Lifetime Rennlist
Member
 
Toolmaster's Avatar
 
Join Date: Nov 2001
Location: Amherst, NH
Posts: 761
Likes: 0
Received 0 Likes on 0 Posts
Post

Tom -

You can point a browser, or other "tcp/ip" type communication utility using your format of x.y.z.a ort# .

But I have a feeling he's trying to do something else, like redirect a webpage to a different port on the DNS side. (Which really can't be done that easily.)
Old 08-01-2002, 01:17 PM
  #5  
TomH
Pro
 
TomH's Avatar
 
Join Date: May 2001
Location: Annapolis, MD
Posts: 552
Likes: 0
Received 0 Likes on 0 Posts
Post

Toolmaster, I think that can be done realtively easily. Most firewalls use NAT to translate public to private addresses. So when a user comes in on standard port 80, the firewall can translate/redirect that request to another IP and port designation on the inside.

Also many of today's web servers can perform redirection, but it would require one web server listening on port 80 to redirect the request to a second web server handling the other port (8080).

ecpunk, what are you really trying to do?
Old 08-01-2002, 01:32 PM
  #6  
Toolmaster
Addict
Lifetime Rennlist
Member
 
Toolmaster's Avatar
 
Join Date: Nov 2001
Location: Amherst, NH
Posts: 761
Likes: 0
Received 0 Likes on 0 Posts
Post

Tom -

You're right - firewalls, routers, and web servers all can do this... But to get DNS itself to do it makes it a lot harder.

Jay
Old 08-01-2002, 06:19 PM
  #7  
mideastmafia
Three Wheelin'
 
mideastmafia's Avatar
 
Join Date: Mar 2002
Location: San Diego, Ca
Posts: 1,250
Likes: 0
Received 0 Likes on 0 Posts
Post

ECPUNK..

if you are doing it as an IP block segment, you can specify it as x.x.x.x:80

assuming that the x's are your IP and the 80 is your port.

example: 24.94.18.231:80

PORT 80


SHAUN
Old 08-01-2002, 06:32 PM
  #8  
Sasha
Instructor
 
Sasha's Avatar
 
Join Date: Mar 2002
Location: Inland Empire, CA
Posts: 198
Likes: 0
Received 0 Likes on 0 Posts
Post

ECPunk,

DNS - Domain Name Server (Service) is designed to convert a host IP (Internet Protocol) address in form of xxx.xxx.xxx.xxx into a computer name such as <a href="http://www.yahoo.com" target="_blank">www.yahoo.com</a> and vice versa. On many OS (Operating Systems) it is implemented as a database (mostly a text file /etc/hosts) and a server running on a particular port. When you connect to it, you ask for a name and it looks it up and converts it into IP address. The way it converts it, is it looks into its own local file /etc/hosts for unix-like OS, or c:\windows\hosts or c:\windows\networks on Win9x machines. If an entry is present, it returns an IP address for that host name, otherwise it connects to the next known DNS server (also configured in local OS), and so on until the name is resolved.

DNS does not have anything to do with ports. Ports are network services. For example echo service is on port 7, telnet is on port 23, SSH is on port 22, HTTP is on port 80. Port is a number between 0 - 65535, that low level network software interprets as a file decriptior. On unix like machines you can look up available services in /etc/services file. Win9x machines don't provide any services at all.

If you describe a goal you are trying to achieve I may be able to come up with instructions on how to do it.


Sasha
Senior Software Engineer
Old 08-02-2002, 03:52 AM
  #9  
Brian Wilson
Addict
Rennlist Member

Thread Starter
 
Brian Wilson's Avatar
 
Join Date: Oct 2001
Location: Kingston, TN
Posts: 1,166
Received 2 Likes on 1 Post
Post

Thank you for all the answers, but not mine.


I usually use DNS for a direct name to address translation. I've never had a class and don't fool with it much more than adding new host's and things of that nature. The AF would probably get mad if I brought the base down because I was "trying to figure it out!!!"

Straight up here it is:

I want to be able to type an address in my browser and bring up Cisco Works, which uses port 17!!. I don't want to have to keep typing the name of the <a href="http://server:" target="_blank">http://server:</a> port like I have to now. I also can't expect the idiots that I work with to remember port numbers.

Not a complicated question...

ha ha, just figured out that you can't type server : port or it looks like this server ort
Old 08-02-2002, 04:38 AM
  #10  
Brian Wilson
Addict
Rennlist Member

Thread Starter
 
Brian Wilson's Avatar
 
Join Date: Oct 2001
Location: Kingston, TN
Posts: 1,166
Received 2 Likes on 1 Post
Post

BTW Sasha - There are 65536 ports, and if you want to be real crazy, then twice as many as that(TCP and UDP). The well known ports are from 0 through 1023. The registered ports are from 1024 through 49151, and bringing up the rear are the private ports, which are from 49152 through 65535.
Hey, thanks for the refresher anyway!
and doom is on port 666.
Old 08-02-2002, 09:38 AM
  #11  
Toolmaster
Addict
Lifetime Rennlist
Member
 
Toolmaster's Avatar
 
Join Date: Nov 2001
Location: Amherst, NH
Posts: 761
Likes: 0
Received 0 Likes on 0 Posts
Post

If it's only on a couple systems, use a hosts file with the x.y.z.a ort set for the name you specify.

If it's more than a couple systems, use a redirect. Setup a web server and create a base page on port 80 (HTTP) that redirects (or you can just use the web server's port redirection of course) to send them to 17.

What OS you using? I could give exact configs if you tell me that...

Thanks!
Old 08-02-2002, 09:58 AM
  #12  
Brian Wilson
Addict
Rennlist Member

Thread Starter
 
Brian Wilson's Avatar
 
Join Date: Oct 2001
Location: Kingston, TN
Posts: 1,166
Received 2 Likes on 1 Post
Post

Good idea... but a problem.

With the AF, you can't just set stuff up like that. It has to be a certain way.

It will just be one system, though. I'm not to up on redirects and things. I'm an infrastructure guy and don't get too much into webpages. We run win2k of course. Doesn't everyone???
Old 08-02-2002, 10:16 AM
  #13  
Jonathan Martini
Instructor
 
Jonathan Martini's Avatar
 
Join Date: Apr 2002
Location: Atlanta, GA
Posts: 221
Likes: 0
Received 0 Likes on 0 Posts
Post

If its just on one system, why not set up a web page that just has a link to the server ort.

You can just set it up as a redirecting web page, without the usual 5-10 second timeout.

It doesn't even have to be on a server if by 'one system' you mean literally one machine.

Sometimes the simplest answer will work.

Cheers.
Old 08-02-2002, 10:56 AM
  #14  
Jason-85944
Pro
 
Jason-85944's Avatar
 
Join Date: Feb 2002
Location: Lebanon, OH
Posts: 736
Likes: 0
Received 1 Like on 1 Post
Post

Why can't you use the hosts file? It is in the Winnt\system32\drivers\etc folder...

a sample entry would be as follows:

192.1.1.120 <a href="http://www.blahblahblah.com:8080" target="_blank">www.blahblahblah.com:8080</a>

Always HTH!

Jason Chance, MCSE,CNA,A+
Old 08-02-2002, 12:40 PM
  #15  
Jonathan Martini
Instructor
 
Jonathan Martini's Avatar
 
Join Date: Apr 2002
Location: Atlanta, GA
Posts: 221
Likes: 0
Received 0 Likes on 0 Posts
Post

Just realized that a : followed by a 'p' is a Graemlin. <img src="graemlins/roflmao.gif" border="0" alt="[hiha]" />


Quick Reply: Computer Nerd Question: DNS



All times are GMT -3. The time now is 02:10 AM.