Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th April 2006, 06:52 PM
AsymptoticCoder Offline
Registered User
 
Join Date: Apr 2005
Location: Los Angeles, CA
Posts: 24
Question Confused about DNS and Domain with a Dynamic IP

I have a domain name, say mydomain.com, and would like to use it with my home network.

Since I have a Dynamic IP, I am using DynDNS' Custom DNS package. But this only forwards the top-level domain to my dynamic IP. I cannot specify anything further.

I would like to be able to access the computers on my network (which are behind a router/firewall) using an internal DNS name that I must setup.

For example, if I type in www.mydomain.com, the request will be forwarded to port 80 of my Linux server (Apache). If I type in xyz.mydomain.com, the request will be forwarded to the server xyz in my LAN.

I am confused about how I can do this. Any suggestions or advice? How can I set this up?
Reply With Quote
  #2  
Old 9th April 2006, 08:14 PM
pparks1's Avatar
pparks1 Offline
Registered User
 
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317
You need to run your own DNS server on your internal network and set your clients up to use this DNS server to handle resolution for xyz.mydomain.com.

I pulled the following info from my Fedora Directory Service howto.
This assumes your linux box is 192.168.1.100.

You will also have to have bind installed. Check if installed with rpm -q bind. If not installed, yum install bind.

1.logon as root to perform the following steps
2.edit /etc/named.conf add the following inside of the OPTIONS section
forwarders {192.168.1.x;}; (replace the IPADDR with your normal DNS server, likely a router)
NOTE: this allows you to get access to the Internet
3.service named start
4.chkconfig named on
5.download webmin from www.webmin.com
6.install webmin with rpm -ivh webmin*.rpm
7.connect to http://192.168.1.100:10000 from a webbrowser
8.logon with your root user account and password
9.click on Servers, click on Bind DNS Server
10.click on Create Master Zone
11.choose Zone Type of Forward, Domain Name of xyz.mydomain.com, records file of Automatic, master server as linuxserver.mydomain.com, choose to Add NS record for master server, fill out the Email address and click on Create.
12.Click on the Address Link (big A), under name, put in linuxserver, for the Address use 192.168.1.100 and click on Create.
13.Click on return to zone list, scroll down to bottom of pages and click on Apply changes.
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself

My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
Reply With Quote
  #3  
Old 9th April 2006, 09:24 PM
bubazoo Offline
Registered User
 
Join Date: Jul 2004
Posts: 92
along these same lines,

I have a webserver at:

www.domain.com hosted by easyDNS

however, I setup virtual hosting in httpd.conf to point

www.domain.com/~username requests to
username.domain.com

using this bit of code

Code:
<VirtualHost *>

ServerName www.tcoburn.us
ServerAlias tcoburn.us *.tcoburn.us

RewriteEngine On
# Skip www.domain.com
RewriteCond %{HTTP_HOST} !^(www\.)
RewriteCond %{HTTP_HOST} ^([^.]+)\.tcoburn\.us
RewriteRule ^(.*)$  /home/%1/www$1

</VirtualHost>
all fine and dandy, except, at easyDNS, they don't support wildcard records,
*.domain.com CNAME records I mean,

is there a way around this? without having to specify a CNAME record for each user on my server?
Reply With Quote
  #4  
Old 11th April 2006, 05:52 PM
AsymptoticCoder Offline
Registered User
 
Join Date: Apr 2005
Location: Los Angeles, CA
Posts: 24
Thanks! I will have to give this a try. Unfortunately the rpm command given for webmin isn't working on my FC3. I'll download it, extract etc. and try it out.
Reply With Quote
  #5  
Old 11th April 2006, 06:04 PM
cruiseoveride's Avatar
cruiseoveride Offline
Registered User
 
Join Date: Mar 2005
Location: Canada
Posts: 644
wats this avahi daemon used for, can i disable it, it takes soo long to start up
__________________
Registered Linux User no. 335484 :cool:
An RHCE guy, and wannabe RHCA :cool:
--------------------------------------------------------
Get Counted at http://counter.li.org/
---------------------------------------------------------------------------------------------------------------------------------------------------------
AMD X3 710, ASUS M4N78-Pro, Visiontek ATi HD4870, Corsair 2GB Dual Channel Kit, 6x500Gb Western Digital Disks LVM2+RAID5
Reply With Quote
  #6  
Old 12th April 2006, 05:32 AM
Zotter's Avatar
Zotter Offline
Registered User
 
Join Date: May 2004
Location: Central Wyoming
Posts: 637
You could just setup port redirection in your router as well.

All port 80 traffic goes to 192.168.0.5
All port 22 traffic goes to 192.168.0.4

etc...

Then setup CNAMEs to suite, but have them all point to your A name. So, www.mydomain.com points to mydomain.com that points to your public IP of 10.2.5.3 - which is owned by your router. HTTP request comes into the WAN port of your router, port 80 - router then forwards that to 192.168.0.5 port 80 - your web server on the LAN. Reply traffic is passed back through the router's NAT function - everyone is happy.

I do this with DI-604, 624s all the time (change the default NTP server from the built in to pool.ntp.org !!!)
__________________
If it ain't broken - you're not really trying....
Registered Linux user #227845
Reply With Quote
  #7  
Old 17th April 2006, 04:22 AM
AsymptoticCoder Offline
Registered User
 
Join Date: Apr 2005
Location: Los Angeles, CA
Posts: 24
Zotter: thanks for that suggestion. But if I wanted to route requests to ftp.domain.com to say 192.168.0.2:21 and requests to home.domain.com to say 192.168.0.3:1111, would that work? What would I have to do to get that to work?

pparks: It sounds like your suggestion may do what I am looking for. I will have to look into it and become more familiar with the DNS lingo.
Reply With Quote
Reply

Tags
confused, dns, domain, dynamic

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Seeking advice on domain registration with dynamic IP satimis Linux Chat 7 30th October 2007 03:32 PM
dynamic ip and second level domain flascius Servers & Networking 3 15th April 2007 06:47 PM
Confusion about Running a DNS and a Domain with Dynamic IP AsymptoticCoder Guides & Solutions (No Questions) 2 10th April 2006 01:39 AM
creating custom linux distro:confused: :confused: :confused: noobiedora Using Fedora 2 27th February 2005 03:25 PM


Current GMT-time: 12:04 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat