Re: DNS Name Server with one IP address

From: Ben Measures (saint_abroadremove_at_removehotmail.com)
Date: 01/21/04


Date: Wed, 21 Jan 2004 22:49:37 +0000

Ivan wrote:
> Hi all,
>
> Scenario:-
> Linsys Router
> External IP (xxx.xx.xx.xx)
> Internal IP (192.168.1.1)
>
> Router DMZ on and points to Linux box (192.168.1.10)
>
> Linux Box (192.168.1.10)
>
> Now I have a domain name www.mydomain.com registered with a registrar
> (Currently uses their dummy name servers need to supply my own)
>
> 1) I cannot ask my ISP for this service or the registrar due to $$
> 2) I would like to use run my own name server for flexibility (i will
> find a secondary nameserver)
> 3) I have tried free name server providers (but the refresh times are
> too long >24hr)
>
> How do I set up so when a user points to www.mydomain.com so it
> resolves to my Static IP address (xx.xx.xx.xx)?
> My primary dns/www/mail server will all be on one machine
> (192.168.1.10), is this configuration possible for an individual with
> one IP address? If so how?
> Please brief me on the DNS named and zone files as to what IP address
> they should contain (local 192.168.1.10 or external (xx.xx.xx.xx)).
>
> All suggestions welcome however wish your answer can be detailed as I
> am now worn out....
>
> p.s. I have gone through a lot of postings but not come across with my
> setup above.(I could eliminate the router in between and configure
> Linux as the router)

There are three possibilities:
1. You don't need a DNS server.
2. You do need a DNS server.
3. You don't want a DNS server but a DNS cache.

1. You don't need a DNS server.
If you registered your domain name with www.mydomain.com then it will be
on their DNS servers. The domain name would be pointing to a
holding/dummy web server, not a dummy nameserver. Putting your domain
name into your browser wouldn't bring up anything otherwise.

2. You do need a DNS server.
Make sure you read "1. You don't need a DNS server" a couple of times.
If you're convinced that you still need to supply your own DNS server,
read this.

So you want a DNS server on your network, resolving your domain name to
an ip address for anybody on the Internet?

Setting up a public DNS server is complicated. Seeing that you don't
know whether you can have dns/www/mail on one computer makes me think
that you might be in over your head.

If you're stubbornly determined, heres the HOWTO:
http://langfeldt.net/DNS-HOWTO/BIND-8/

3. You don't want a DNS server but a DNS cache.
If what you really want is a DNS cache for your local network, then have
a look at chapter 3:
http://langfeldt.net/DNS-HOWTO/BIND-8/DNS-HOWTO-3.html

-- 
Ben M.
----------------
What are Software Patents for?
To protect the small enterprise from bigger companies.
What do Software Patents do?
In its current form, they protect only companies with
big legal departments as they:
a.) Patent everything no matter how general
b.) Sue everybody. Even if the patent can be argued
	invalid, small companies can ill-afford	the
	typical $500k cost of a law-suit (not to mention
	years of harassment).
Don't let them take away your right to program
whatever you like. Make a stand on Software Patents
before its too late.
Read about the ongoing battle at http://swpat.ffii.org/
----------------


Relevant Pages

  • Re: Strange PC networking problem
    ... and make configuration changes. ... "Finally, I could use her computer to log in to the router, and make ... It has to get it from DHCP, ... The next choice is between "Obtain DNS server address automatically" or "Use the following DNS server addresses:", with fields for preferred DNS server and alternate DNS server. ...
    (comp.sys.mac.advocacy)
  • Re: Strange PC networking problem
    ... and make configuration changes. ... It's no wonder you Mac advocates despise Windows. ... connect to the router indicates that he is having issues getting ... "Obtain DNS server address automatically" or "Use the following DNS ...
    (comp.sys.mac.advocacy)
  • Re: Urgent - please help
    ... Ethernet adapter Local Area Connection: ... above, are we still looking at a misdirected DNS server, or is it ... that a client connecting to the router is directed back to the DC for DNS ... All workstations use DHCP. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Urgent - please help
    ... on the DC and at some point during the process of configuring the router, ... Ethernet adapter Local Area Connection: ... above, are we still looking at a misdirected DNS server, or is it ... All workstations use DHCP. ...
    (microsoft.public.windows.server.active_directory)
  • Re: DNS resolution failures
    ... override the DNS server with your own addresses. ... "Keith S." ... I did switch the network ports on the router between the 2 computers, but the problem followed the computers, not the router plug. ... I have been beginning to wonder about the PCI slot the network card is plugged into, but since I can always ping an ip number, but can not resolve a URL, my thoughts have been more software. ...
    (alt.sys.pc-clone.dell)