SunQuest
           DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
IBM developerWorks
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:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old September 1st, 2003, 03:49 AM
Pugster Pugster is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 17 Pugster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question IRC server help!?

Hello fellas

i got one specific question-i am not very sure does it has to do somethin with DNS or not-but i will ask it

So i am going to setup an irc server at home and i am wondering what do i need to do in order to be accessed by the name of irc.myexamplesite.com (instead of the IP address)- i thought of something it might sound stupid or whatever, so i thought of setting up an subodomain called IRC on my domain name myexamplesite.com and saying in my nameserver or DNS server(i forgot which one was it whoops) that irc.myexamplesite.com points to an IP address-so the IP address is where my DNS server is-so the dns server will redirect it or link( i dont know what term exactly to use) it to the IP that contains the IRC server-thats what i am thinking-

Is it the same way as the http servers work or what?
and aslo if it can access the irc server by just typing mydomain.com in the irc client and connect to it? I AM CONFUSED

so i am kind in a dead end now- IF you got any suggestions -solutions whatever-please be kind and post them

Thanks for your time ) Take care

Reply With Quote
  #2  
Old September 1st, 2003, 08:02 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
You need to create an A record in DNS (call it irc.yourdomain.com or whatever you want) pointing to the IP address of the IRC server. Contact the administrators of the authorative nameservers for your domain to do this.
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old September 1st, 2003, 08:44 PM
Pugster Pugster is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 17 Pugster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Okey i added that additional record to my zone file of my DNS server(bind) -was that all i have to do? If it was what is next- i mean if i wanna set my apache server or irc whatever-to response on the subdomain what do i have to do-lets say the apache server-how can i tell to the subdomain that there is an http server behind that domain name?
here is a copy of my zone file


Code:
$TTL 3600
$ORIGIN paranoiccreations.com.

@	IN	SOA	ns1 administrator (
			2003050203	; Serial
			3600	; Refresh after 3 hours
			3600	; retry after 1 hour
			604800	; expire after 1 week
			86400 )	; Minimum TTL of one day

		A	24.85.168.215 
		NS	ns1
		NS	ns2
		MX	10 mail

localhost	A	127.0.0.1
ns1		A	24.85.168.215 
ns2		A	24.85.168.215 
www		A	24.85.168.215 
irc.paranoiccreations.com. A 24.85.168.215 
mail		A	24.85.168.215


ADDED LATELY

So the domain name works for the irc server-no metter what subdomain or maindomain-i did wanted to make it just to be for the subdomain to access the irc server-but i assume that didnt happen cuz there is http server too on the same Ip.
Also how can i make a subdomain to point to a specific folder in my computer-other than the maindomain folder from the apache server.


Thanks again

Last edited by Pugster : September 1st, 2003 at 11:17 PM.

Reply With Quote
  #4  
Old September 2nd, 2003, 07:50 AM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
Okey i added that additional record to my zone file of my DNS server(bind) -was that all i have to do?

Yes - and signal BIND to reload its configuration as well.
Quote:
was that all i have to do? If it was what is next- i mean if i wanna set my apache server or irc whatever-to response on the subdomain what do i have to do-lets say the apache server-how can i tell to the subdomain that there is an http server behind that domain name?

Please don't write sentances like this. Use full-stops or question marks rather than hyphens to separate distinct ideas or questions.
Quote:
was that all i have to do?

As far as DNS configuration goes, yes.
Quote:
If it was what is next- i mean if i wanna set my apache server or irc whatever-to response on the subdomain what do i have to do

A subdomain simply points to an IP address, and provides an easy-to-remember name. For an IRC server (which I don't know anything about) I assume this will suffice: just set your IRC client to connect to the DNS name instead of the IP address.

HTTP servers are a slightly different case as they examine the DNS name that was used to reach them, and can use this information to do name-based virtual hosting.
Quote:
how can i tell to the subdomain that there is an http server behind that domain name?

You don't - as explained before, the subdomain simply points to an IP address. If there is an HTTP server listening on that IP address, it may use the subdomain as part of a virtual hosting mechanism.
Quote:
i did wanted to make it just to be for the subdomain to access the irc server-but i assume that didnt happen cuz there is http server too on the same Ip.

Then the HTTP server will respond as well. There's nothing you can do about this, except for configure the HTTP server to give an error message or a message specific to that subdomain.
Quote:
Also how can i make a subdomain to point to a specific folder in my computer-other than the maindomain folder from the apache server.

See the Apache Virtual Hosting documentation.

Reply With Quote
  #5  
Old September 2nd, 2003, 03:03 PM
Pugster Pugster is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 17 Pugster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmm thanks a lot Alexgreg

My irc server works well-but the only problem is that-it can be accessed by both of the domains- the main domain and the subdomain, any ideas how can i restrict it in order to be access it only by teh subdomain? (deleting the other records and leaving just the subdomain record in the zone file would help?)

Thats it thanks again-and sorry about my messy typing in the above msgs

Bye bye (look at my white teeth)

Reply With Quote
  #6  
Old September 2nd, 2003, 03:11 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
any ideas how can i restrict it in order to be access it only by teh subdomain?

Either delete the main DNS record (but then you won't be able to access HTTP or any other service via that name), or use another IP address to run your IRC server on, and change the irc subdomain to that.

Reply With Quote
  #7  
Old September 2nd, 2003, 03:27 PM
Pugster Pugster is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 17 Pugster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Roger that ) I already thought of that-but i was unsure
So thanks for the support again

take care

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > IRC server help!?


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 | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway