Re: DNS beginner question



The "open" ports are simply port-forwarded from the router to my
internal network (NAT). And I only have one public IP.
For me the more important issue is whether DNS would work with private
IP addresses.


On 7/5/06, David Stanford <dthomas53@xxxxxxxxx> wrote:


On 7/5/06, Michael S <msherman77@xxxxxxxxx > wrote:
> Hi all.
>
> I am trying to set up a DNS service. I have 2 FreeBSD machines, one's
> web and DNS (that I am setting up) and the other FTP. Both machines
> are behind a router and get local addresses (i.e. 192.168....). If
> DNS, FTP and web ports in the router are open, will I be able to set
> up the DNS in a way such that when someone from the outside types
> www.mydomain.com, he'll be taken to the machine that runs apache, and
> when he types ftp.mydomain.com he'll be taken to the machine which
> runs ftp?
> By the way simply typing ftp://mydomain.com and http://mydomain.com
> does the trick, but I want it to work with prefixes too.
>
> Hopefully my question isn't too confusing.
>
> Thanks in advance.
> Michael
>

Hi Michael,

You'll have to clarify "open" regarding the WEB, DNS, and FTP ports on the
router. Are they simply port-forwarded to the internal servers (meaning
based on service ports) or do you have one-to-one NAT mapping a public IP to
an internal for each server? If it's the latter, and each machine has its
own public IP, then you can simply set DNS to point to each server
respectively:

www.mydomain.com -> publicIP1 -> privateIP1
ftp.mydomain.com -> publicIP2 -> privateIP2

The real question is whether you have a block of public IPs or just one. But
to be honest, you can probably get away with just having a single public IP
and using port forwarding as most browsers (including Firfox and IE)
recognize the "ftp" and "www" subdomains and automatically adjust to that
protocol.

i.e. ftp.somedomain.com will automatically be translated to
ftp://ftp.somedomain.com (ftp.freebsd.org ).

-David
--
[root@fbsd ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: FTP Server on SBS 2003
    ... When I access the ftp site ... In the properties the ftp is set to "all assigned ports" should this ... > You connect the SBS to a third party Router and forward port 21 to the SBS ... The network administrator of the server network can consult the ...
    (microsoft.public.windows.server.sbs)
  • Re: IIS FTP Server setup behind a router firewall?
    ... I don't think I have all of the necessary ports ... Strictly speaking, if a FTP _server_ is behind a NAT router, then only ...
    (microsoft.public.windowsxp.general)
  • RE: Cannot set up 3rd-party ftp server on VISTA
    ... Tryport forwarding ports 20/tcp and 21/tcp. ... handling the ftp control port correctly. ... Check if your router has a "special ... If this were my network I'd put the ADSL modem in bridge mode and set the ...
    (microsoft.public.windows.vista.networking_sharing)
  • Re: Cannot connect to my ftp site
    ... And if your router doesn't automatically handle FTP protocols, ... router doesn't understand the FTP protocol (as it won't forwards the ports ... the FTP server is opening for the client to connect to). ...
    (microsoft.public.windowsxp.network_web)
  • Re: DNS beginner question
    ... obviously the domain server for domain.com points correctly to my ... Can my second BSD machine be the secondary DNS? ... When you say set it up correctly on the router, ... You'll have to clarify "open" regarding the WEB, DNS, and FTP ports on the ...
    (freebsd-questions)

Quantcast