newbee questions....

Kevin Darcy kcd at
Tue Oct 29 03:32:40 UTC 2002

thefluiddruid wrote:

> Hi,
>  I am setting up a nameserver for the first time and I am having some
> problems.
> The nameserver is , and the domain I am trying to
> set up is .
> I am using a linksys router to connect with the internet at ip address
> .
> First of all on my host file should I set the ip address to
> or  192.168.***.***. (the lan address for the
> server)
> also which of these IP addresses should I use in my zone files??

You should definitely not publish a 192.168.*.* address on the Internet (that's
a "private" address range, see RFC 1918 for details). What you publish to the
Internet via DNS *must* be the WAN address of your Linksys, and then you need
to configure the Linksys to forward the appropriate port(s) (most likely 80 and
possibly also 443) to your internal server.

For the webserver box itself, you could use either (assuming the web
server is configured to listen to loopback) or the LAN address in your
/etc/hosts, but you'd also have to configure /etc/nsswitch.conf (or the
equivalent) to search /etc/hosts ahead of DNS. Otherwise any client program
will find the WAN address first and try to use it.

If you have any LAN client boxes, or plan to have any in the future, you also
might want to look into "split DNS", where your nameserver serves up different
addresses to internal clients than it does to external clients (note that
implementing split DNS would obviate the /etc/hosts ugliness on your server
boxes too). Searching for that phrase in the archives of this mailing list
should get you plenty of hits; seems like this question gets asked and answered
multiple times a week (mostly answers to Linksys owners' questions, I think

- Kevin

More information about the bind-users mailing list