Koozali.org: home of the SME Server

Help with Editing the host file

addodge

Help with Editing the host file
« on: February 22, 2006, 03:12:25 AM »
Hi All,
I am up-keeping 2 sme7 pre3 systems right now.
On one of them I need to manually add the computer names with the corresponding ip in the host file.  A particular symantec tool needs reverse dns lookup working correctly.  Right now when a client gets a ip rather than taking the computer name on the local pc, it gives it a pc-00101 for ip *.*.*.101  If i ping -a *.*.*.101 it returns pc-00101.domain.local and i would like it to return computername.domain.local
Normally i would assume that in order to do this i would have to edit the host file and add each name and ip, but i noticed that there is a nice warning that says do not edit this file and that all changes will be lost.  How am i supposed to go about doing this?
Thanks for your help.
Andy

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Re: Help with Editing the host file
« Reply #1 on: February 22, 2006, 03:22:17 AM »
Quote from: "addodge"

Normally i would assume that in order to do this i would have to edit the host file and add each name and ip, but i noticed that there is a nice warning that says do not edit this file and that all changes will be lost.  How am i supposed to go about doing this?

Enter it on the Hostnames and Address panel, and you should get the desired result. If not, please raise a bug.
............

addodge

Help with Editing the host file
« Reply #2 on: February 22, 2006, 04:01:07 AM »
Thanks I had seen that in the server-manager, but had never even played around with it.  I do have one other question though.  When i connect with vpn I can ping 192.168.1.118 but i can not ping "preneed" which is the name of the computer.  I can ping "preneed.domain.local" just fine.  It also resolves jus tfine when i ping -a 192.168.1.118 and comes back with preneed.domain.local
Is there a way that i can make is so that when connected to vpn i can ping preneed or simply access preneed with \\preneed?

woyzeck

Help with Editing the host file
« Reply #3 on: February 22, 2006, 05:53:23 AM »
Should probably start a new thread for this but....

If you want to use computer names when you use vpn, you need to configure your vpn client to use the wins server on the network.  At least when you are connecting with windows client. If you have your sme box as your domain controller, you would enter your sme box's ip address as your wins server in your vpn client.  This will allow you to browse the network.

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
WINS Server for VPN connections
« Reply #4 on: February 23, 2006, 09:10:03 AM »
Quote from: "woyzeck"
Should probably start a new thread for this but....

Yes - new threads for new topics, please.
Quote from: "woyzeck"

If you want to use computer names when you use vpn, you need to configure your vpn client to use the wins server on the network.  At least when you are connecting with windows client. If you have your sme box as your domain controller, you would enter your sme box's ip address as your wins server in your vpn client.  This will allow you to browse the network.

This should happen automagically if you PPTP in to the SME Server and it is set as Domain Master. If it is not the Domain Master, or you have a diferent WINS server to consult, you can "config setprop smb WINSServer a.b.c.d" and the PPTP clients should be told to use that. See /usr/lib/perl5/site_perl/esmith/ConfigDB.pm in the wins_server() routine.
............

woyzeck

Help with Editing the host file
« Reply #5 on: February 25, 2006, 01:26:39 AM »
Quote
This should happen automagically if you PPTP in to the SME Server and it is set as Domain Master


Hmmm...  Sorry, I guess that makes sense.  I have never used SME for DHCP, only as a file server, but that did sound like the problem that the person was having.  I usually have a separate firewall that handles the vpn & dhcp where it is necessary to enter the ip address of the sme server as the winserver either in the firewall for dhcp or the vpn client config.

Woyzeck