help understanding hostname cofig

2003-01-29 Thread Aaron
Hello,

I need a little help understanding how I should configure the hostname in
our application. I am trying to install snort from a how-to on the snort
website. It uses mysql,acid,apache and snort with the OS being freebsd 4.6.

It looks very straight forward to follow, but another tech and I cannot seem
to understand what we are doing wrong. We don't have a DNS server on
site.The plan is to put the snort box between the internet firewall and the
LAN. The firewall is also the dhcp server. So exactly what do we want to put
for a qualified domain name??  The plan is to put the snort box between the
internet firewall and the LAN. The firewall is also the dhcp server.
Problem is that the OS says it cannot resolve the hostname. Similar problems
come later with mysql.

I have looked at several lists and books on the subject but not turning up a
lot of information related to my problem.
I know this can't be that hard. We would appreciate any guidance.

Thank you,
Aaron


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: help understanding hostname cofig

2003-01-29 Thread Toomas Aas
Hi!

 We don't have a DNS server on site.The plan is to put the snort box
 between the internet firewall and the LAN. The firewall is also the
 dhcp server. So exactly what do we want to put for a qualified domain
 name??  The plan is to put the snort box between the internet
 firewall and the LAN. The firewall is also the dhcp server.

I assume you are using RFC1918 (private) IP addresses on your LAN 
behind the firewall. In that case the hostname is purely up to you to 
invent. From the root shell, enter the following command:

hostname snortbox.our.net

Add a line like this to /etc/hosts:

10.0.0.1snortbox.our.net snortbox

(assuming 10.0.0.1 is the IP address of your snort box)

Add a line like this to /etc/rc.conf:

hostname=snortbox.our.net

If you want to be able to access the snort box by name from other hosts 
on your network, then you need to also modify /etc/hosts on these other 
hosts accordingly. 

You probably don't want to let your DHCP server to assign a dynamic IP 
address to your snort box.
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* Why is the third hand on a watch called a second hand?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message