"C. Lamb" <[EMAIL PROTECTED]> writes:
> Hi..
>
> In /etc/ppp/options.cua3, I have:
>
> 209.172.9.130:209.172.9.152
> (209.172.9.130=IP of my Linux box that I ve transformed as a ppp
> server):(209.172.9.152 is the Dns entry for my dial up Line).
> Starting to get it...
> I understood that as I have no Dns setted on my system , I could pick
> whatever IP I want and assign it to my dial up line (PPP server and
> mgetty-1.1.9)
You seem to be confusing DNS delegations and IP
assignments.
Who assigned these IP addresses to you? If they are
not assigned (by some ISP, to you) then you should choose
addresses from those listed in Private Network Addresses
RFC (1597, later know as 1918).
(When I do a 'dig -x' on 209.172.9.152 I get some
"telco01.wacom.com. --- which bears no resemblance to
your e-mail address at microtec.net)
In other words you should use one of these:
192.168.0.* through 192.168.254.*
172.16.*.* through 172.31.*.*
or: 10.*.*.*
> I) But, how to set the Dns entry for my dial up line (209.172.9.152)
> ???What is the file where to set it and what to put in that file??
Read the DNS/named HOWTO. DNS is set of protocols that
implements a distributed database of name to number mappings.
Thus, you systems "resolver libraries" make a "query" of
the services (as listed in /etc/nsswitch.conf) to take any
domain/host name you provide and get back an IP address.
This query may involve a search through your /etc/hosts
and/or /etc/networks files, it may involve RPC with
your NIS (YP) servers, and it usually involves UDP
with the servers listed in /etc/resolv.conf.
Note: You don't "set the DNS entry for your dial up line"
--- you set add a "record" for an IP address and name
in your "zone" If you're network is not connected to the
Internet (or is isolated from it via a firewall/proxy
system) then you can create a set of DNS zones with a
bogus root (toplevel or ".") domain. Otherwise you
must have a domain or subdomain delegated to you.
Once you have a domain (like starshine.org) or a
subdomain (like andromeda.starshine.org) you can
create all sorts of name to IP address mappings therein.
I could create a microtec.starshin.org subdomain, and
populate it with records that point to your addresses.
It would be rude, and the reverse DNS (which maps your
IP addresses to DNS names) would be inconsistent. But
it's possible.
> II) Is that correct to go in /etc/hosts and and add following entry:
>
> 209.172.9.152 ttyS1
No, this assigns a host name of "ttyS1" to
that IP address.
Here you seem to be confusing name/IP mapping with
devices. ttyS1 is a device on your system. The /etc/hosts
file maps hostnames to IP addresses. It has *nothing* to
do with device names.
> III) Should I giev to the users that are calling into my machine, that IP
> assigned to my dial up line. If it's the case, How should they set that IP
> in their settings?? (Say, they have Linux boxes and win 95 also..).
> Thanks so much
> ============
If, ultimately, you are trying to allow a dial-in user
on your system to reach past you to get to the Internet
--- you need to get the routing done properly. Your ISP
has to give you a block of IP addresses (a subnet, or even
a whole block, class C or whatever) and put an appropriate
entry in their routing tables; or you have to use masquerading.
Routing has nothing to do with naming/DNS. Routing is all
done by IP addresses and netmasks --- it's done by the numbers.
You'll have to provide a clearer picture of what you're
trying to accomplish, and what your configuration really
is:
What IP addresse(s) are provided to you by your ISP?
Are these static (always the same) or dynamic
(changing every time you connect to your ISP)?
Who controls your DNS? What domain or subdomain is
delegated to you (if any)?
--
Jim Dennis (800) 938-4078 [EMAIL PROTECTED]
Proprietor, Starshine Technical Services: http://www.starshine.org