Re: Disable automatic "Fallback" IP on 9.0-RC2 when a hostname cannot be resolved

2011-11-26 Thread Matthew Seaman
On 26/11/2011 19:26, Moritz Wilhelmy wrote: > Nope, it's not my DNS provider. I checked that. # dig '*.wzff.de' IN ANY ; <<>> DiG 9.6.-ESV-R5-P1 <<>> *.wzff.de IN ANY ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54277 ;; flags: qr rd ra; QUERY: 1, ANS

Re: Disable automatic "Fallback" IP on 9.0-RC2 when a hostname cannot be resolved

2011-11-26 Thread Moritz Wilhelmy
Hi Michael, On Sat, Nov 26, 2011 at 18:18:00 +0100, Michael Ross wrote: > Add e. g. ``search local'' to /etc/resolv.conf. > The behaviour is explained in man resolv.conf, "search". > > Or disable wildcard entries in your dns server config. Thanks for pointing this out. Explicitely setting search

Re: Disable automatic "Fallback" IP on 9.0-RC2 when a hostname cannot be resolved

2011-11-26 Thread Moritz Wilhelmy
Hi, Nope, it's not my DNS provider. I checked that. On the furnace.wzff.de jail: # cat /etc/resolv.conf # Generated by resolvconf nameserver 213.133.98.98 nameserver 213.133.99.99 nameserver 213.133.100.100 # host foo1 Host foo1 not found: 3(NXDOMAIN) # grep foo1 /etc/hosts # telnet foo1 25 Tryi

Re: Disable automatic "Fallback" IP on 9.0-RC2 when a hostname cannot be resolved

2011-11-26 Thread Michael Ross
Am 26.11.2011, 16:44 Uhr, schrieb Moritz Wilhelmy : Hello, my 9.0-RC2 installation on furnace.wzff.de keeps connecting to wzff.de if a hostname cannot be resolved. E.g. telnet foobar 25 connects me to the SMTP server on wzff.de, same thing for another jail that uses a subdomain of barfooze.de

Re: Disable automatic "Fallback" IP on 9.0-RC2 when a hostname cannot be resolved

2011-11-26 Thread Ryan Coleman
Change your DNS server to Google (8.8.8.8 and 8.8.4.4). It's your DNS providers' doing. On Nov 26, 2011, at 9:44 AM, Moritz Wilhelmy wrote: > Hello, > > my 9.0-RC2 installation on furnace.wzff.de keeps connecting to wzff.de > if a hostname cannot be resolved. E.g. telnet

Disable automatic "Fallback" IP on 9.0-RC2 when a hostname cannot be resolved

2011-11-26 Thread Moritz Wilhelmy
Hello, my 9.0-RC2 installation on furnace.wzff.de keeps connecting to wzff.de if a hostname cannot be resolved. E.g. telnet foobar 25 connects me to the SMTP server on wzff.de, same thing for another jail that uses a subdomain of barfooze.de and tries to connect to barfooze.de if it can't f

Re: change hostname

2011-03-27 Thread Tim Dunphy
that did it! thanks On Sun, Mar 27, 2011 at 11:00 PM, Noel wrote: > On 3/27/2011 9:18 PM, Tim Dunphy wrote: >> >> hey guys, >> >>  I setup a FreeBSD 8.2 box to server as an LDAP server. I forgot that >> I had a TLS cert with a different hostname than the on

Re: change hostname

2011-03-27 Thread Noel
On 3/27/2011 9:18 PM, Tim Dunphy wrote: hey guys, I setup a FreeBSD 8.2 box to server as an LDAP server. I forgot that I had a TLS cert with a different hostname than the one I selected. So I edited /etc/rc.conf to change the name there defaultrouter="192.168.1.1" hostn

change hostname

2011-03-27 Thread Tim Dunphy
hey guys, I setup a FreeBSD 8.2 box to server as an LDAP server. I forgot that I had a TLS cert with a different hostname than the one I selected. So I edited /etc/rc.conf to change the name there defaultrouter="192.168.1.1" hostname="LBSD2.summitnjhome.com" ## &

Re: hostname

2010-10-30 Thread Sabine Baer
On Sat, Oct 30, 2010 at 04:00:39PM -0400, Tim Dunphy wrote: > how can I set the hostname so that it persists through reboots? I have > set the hostname I want in /etc/hosts but rebooting the change does > not show up. In CentOS you have /etc/hostname which serves this > purpose but

Re: hostname

2010-10-30 Thread Chris Hill
On Sat, 30 Oct 2010, Tim Kellers wrote: On 10/30/10 4:00 PM, Tim Dunphy wrote: how can I set the hostname so that it persists through reboots? I have set the hostname I want in /etc/hosts but rebooting the change does not show up. In CentOS you have /etc/hostname which serves this purpose but

Re: hostname

2010-10-30 Thread Tim Kellers
On 10/30/10 4:00 PM, Tim Dunphy wrote: how can I set the hostname so that it persists through reboots? I have set the hostname I want in /etc/hosts but rebooting the change does not show up. In CentOS you have /etc/hostname which serves this purpose but in FreeBSD I don't know how to do

Re: hostname

2010-10-30 Thread Polytropon
On Sat, 30 Oct 2010 16:00:39 -0400, Tim Dunphy wrote: > how can I set the hostname so that it persists through reboots? I have > set the hostname I want in /etc/hosts but rebooting the change does > not show up. In CentOS you have /etc/hostname which serves this > purpose but in Fre

hostname

2010-10-30 Thread Tim Dunphy
how can I set the hostname so that it persists through reboots? I have set the hostname I want in /etc/hosts but rebooting the change does not show up. In CentOS you have /etc/hostname which serves this purpose but in FreeBSD I don't know how to do this. thanks -- Here's my RSA Publi

mount_smbfs hostname resolution

2010-10-30 Thread Dominic Fandrey
o 193.196.65.128 at port 445 Connecting to 193.196.65.128 at port 139 ... Another side effect is that I don't have to use the -I parameter any more the smbclient command gets conveniently short: smbclient -U % //ADS/DFS smb: \> Unfortunately this mount_smbfs appears not to use hostnam

Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

2010-06-17 Thread Chris
On Jun 17, 2010, at 1:56 PM, Valerian Galeru wrote: Ok, very simple put: To do this without shell scripting, but this could avoid filter future IP addresses: 1. DIG HOSTNAMEs and add ipfw block rules for those IPs 2. DIG HOSTNAMEs and add a null rule To block all *.hostname and future IP

Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

2010-06-17 Thread Valerian Galeru
: Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME) To: "'valerian...@yahoo.com'" , "'freebsd-questions@freebsd.org'" Date: Friday, June 18, 2010, 12:08 AM What about an entry in your local DNS (what your hosts use)

Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

2010-06-17 Thread Gary Gatten
ock an URL (all IPs of an A-like HOSTNAME) Ok, very simple put: To do this without shell scripting, but this could avoid filter future IP addresses: 1. DIG HOSTNAMEs and add ipfw block rules for those IPs 2. DIG HOSTNAMEs and add a null rule To block all *.hostname and future IP addresses

Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

2010-06-17 Thread Valerian Galeru
Ok, very simple put: To do this without shell scripting, but this could avoid filter future IP addresses: 1. DIG HOSTNAMEs and add ipfw block rules for those IPs 2. DIG HOSTNAMEs and add a null rule To block all *.hostname and future IP addresses of any of *.hostname, there must be written a

Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

2010-06-17 Thread Bernt Hansson
Valerian Galeru said the following on 2010-06-17 22:01: Hello, Does anyone have any ideas how to block all requests using an IPFW-based router > (FreeBSD 6.4) to and from a HOSTNAME (which has more DNS A entries) or better, from any *.HOSTNAME.COM Do a whois hostname.com taking note

Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

2010-06-17 Thread Chuck Swiger
On Jun 17, 2010, at 1:01 PM, Valerian Galeru wrote: > Does anyone have any ideas how to block all requests using an IPFW-based > router (FreeBSD 6.4) to and from a HOSTNAME (which has more DNS A entries) or > better, from any *.HOSTNAME.COM Start by blocking all traffic, add per

RE: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

2010-06-17 Thread Gary Gatten
g] On Behalf Of Valerian Galeru Sent: Thursday, June 17, 2010 3:01 PM To: freebsd-questions@freebsd.org Subject: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME) Hello, Does anyone have any ideas how to block all requests using an IPFW-based router (FreeBSD 6.4

FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)

2010-06-17 Thread Valerian Galeru
Hello, Does anyone have any ideas how to block all requests using an IPFW-based router (FreeBSD 6.4) to and from a HOSTNAME (which has more DNS A entries) or better, from any *.HOSTNAME.COM Thank you in advance ___ freebsd-questions

RE: Generating a random hostname

2010-03-18 Thread Peter Steele
I've ended up writing a service that runs after netif is complete and sets the hostname based on the MAC address and also updates /etc/hosts. It does what I need... Thanks for all the replies on this... ___ freebsd-questions@freebsd.org mailing

Re: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/03/2010 11:57:56, Peter Steele wrote: >> Thinking about this some more, a good trick would be to generate a >> hostname from the MAC address of the host, since that is guaranteed >> to be unique. > > In fact, this is wha

RE: Generating a random hostname

2010-03-18 Thread Peter Steele
>Thinking about this some more, a good trick would be to generate a hostname >from the MAC address of the host, since that is guaranteed to be unique. In fact, this is what we are currently using. Unfortunately I guess I wasn't entirely clear. I was looking for a facility that actual

Re: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/03/2010 08:32:31, Matthew Seaman wrote: > On 17/03/2010 22:06:30, Peter Steele wrote: >> Is there any facility in FreeBSD for generating a random hostname? We >> have a template with a fixed hostname that has to be changed after

Re: Generating a random hostname

2010-03-18 Thread Olivier Nicole
> Is there any facility in FreeBSD for generating a random hostname? We > have a template with a fixed hostname that has to be changed after > the template is closed. It would be useful to have a hostname I have somewhere a Perl script that can be used/adapted to generate pseudo Engl

Re: Generating a random hostname

2010-03-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/03/2010 22:06:30, Peter Steele wrote: > Is there any facility in FreeBSD for generating a random hostname? We > have a template with a fixed hostname that has to be changed after > the template is closed. It would be useful to have a

Re: Generating a random hostname

2010-03-17 Thread Peter van der Linden
ter, emailing from what was nearly hostname wpFUCKOKSFRMIQyCfNBeU___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: Generating a random hostname

2010-03-17 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Steele wrote: > Is there any facility in FreeBSD for generating a random hostname? We have a > template with a fixed hostname that has to be changed after the template is > closed. It would be useful to have a hostname generated

Re: Generating a random hostname

2010-03-17 Thread Roland Smith
On Wed, Mar 17, 2010 at 05:06:30PM -0500, Peter Steele wrote: > Is there any facility in FreeBSD for generating a random hostname? We have a > template with a fixed hostname that has to be changed after the template is > closed. It would be useful to have a hostname generated randomly. F

Re: Generating a random hostname

2010-03-17 Thread Erik Norgaard
On 17/03/10 23:06, Peter Steele wrote: Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. uuidgen may do the job for you

Re: Generating a random hostname

2010-03-17 Thread Erik Norgaard
On 17/03/10 23:06, Peter Steele wrote: Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. uuidgen? this command may be used

Generating a random hostname

2010-03-17 Thread Peter Steele
Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. ___ freebsd-questions

Re: apache22 and new hostname???

2010-01-31 Thread Gary Kline
On Sat, Jan 30, 2010 at 05:58:16PM -0500, Matt Emmerton wrote: > Gary, > > >But I do need the basics of having/serving/hosting two domains on one > >computer. > > What you are looking for are called "virtual hosts". > See the examples in /usr/local/etc/apache22/extra/httpd-vhosts.conf. > The Apa

Re: apache22 and new hostname???

2010-01-30 Thread Matt Emmerton
Gary, But I do need the basics of having/serving/hosting two domains on one computer. What you are looking for are called "virtual hosts". See the examples in /usr/local/etc/apache22/extra/httpd-vhosts.conf. The Apache documentation (mentioned in the above file) is also helpful. Regards, -- M

apache22 and new hostname???

2010-01-30 Thread Gary Kline
Guys, As some of you might know, i am trying to host a friend's website on my DNS and web server. Can anybody suggest what i have to add to my /usr/local/etc/apache22/* files and directories to get http://www.anacondabuilders.us to display since I do not

Re: Assign IP address and hostname via kernel parameter

2009-06-08 Thread Mister Olli
May 2009, at 16:20, Mister Olli wrote: > > > is there a way to configure IP address and hostname on freebsd systems > > via kernel command line parameters? [etc] > > When running diskless, the loader sets kernel variables like: > > boot.netif.gateway="192.168.198

Re: isc-dhcpd server, HOSTNAME

2009-05-12 Thread Pieter Donche
On Sun, 10 May 2009, Matthew Seaman wrote: Pieter Donche wrote: FreeBSD7 with isc-dhcp30-server. It hands out an IP address, OK, but the BASH environment variable HOSTNAME is not set. Why? (A DNS server is active on the network and can succesfully be queried from a FreeBSD bash command

Re: Assign IP address and hostname via kernel parameter

2009-05-11 Thread Mister Olli
b Bishop wrote: > Hi, > > On 6 May 2009, at 16:20, Mister Olli wrote: > > > is there a way to configure IP address and hostname on freebsd systems > > via kernel command line parameters? [etc] > > When running diskless, the loader sets kernel variables like: > >

Re: isc-dhcpd server, HOSTNAME

2009-05-10 Thread Matthew Seaman
Pieter Donche wrote: FreeBSD7 with isc-dhcp30-server. It hands out an IP address, OK, but the BASH environment variable HOSTNAME is not set. Why? (A DNS server is active on the network and can succesfully be queried from a FreeBSD bash command (nslookup or host) to see the hostname associated

Re: isc-dhcpd server, HOSTNAME

2009-05-09 Thread Pieter Donche
On Sat, 9 May 2009, Mel Flynn wrote: On Saturday 09 May 2009 15:09:45 Pieter Donche wrote: case DHCP server DHCP client HOSTNAME env. var. 1 isc-dhcp30-server FreeBSD7-i386 not set on FreeBSD-amd64 2 isc-dhcp30-server SuSE Linux 10.3 set

Re: isc-dhcpd server, HOSTNAME

2009-05-09 Thread Mel Flynn
On Saturday 09 May 2009 15:09:45 Pieter Donche wrote: > case DHCP server DHCP client HOSTNAME env. var. > > 1 isc-dhcp30-server FreeBSD7-i386 not set >on FreeBSD-amd64 > 2 isc-dhcp30-server SuSE Linux 10.3 set >on Fre

Re: isc-dhcpd server, HOSTNAME

2009-05-09 Thread Pieter Donche
On Fri, 8 May 2009, Derek Ragona wrote: At 09:42 AM 5/7/2009, Pieter Donche wrote: FreeBSD7 with isc-dhcp30-server. It hands out an IP address, OK, but the BASH environment variable HOSTNAME is not set. Why? (A DNS server is active on the network and can succesfully be

Re: isc-dhcpd server, HOSTNAME

2009-05-08 Thread Derek Ragona
At 09:42 AM 5/7/2009, Pieter Donche wrote: FreeBSD7 with isc-dhcp30-server. It hands out an IP address, OK, but the BASH environment variable HOSTNAME is not set. Why? (A DNS server is active on the network and can succesfully be queried from a FreeBSD bash command (nslookup or host) to see

Re: Xfce unable to lookup hostname

2009-05-07 Thread Polytropon
ot;do"? It simply associates the given hostname to that IP adress. This enables the system to resolve to this IP when the "literal" name is given. This resolution is one of the basic principles. Allthough the line works, it should be formed this way (or, it should be two lines):

Re: Xfce unable to lookup hostname

2009-05-07 Thread Andrew Gould
On Thu, May 7, 2009 at 7:26 PM, Daniel Underwood wrote: > I added the line > > "127.0.0.1 bsdbox bsdbox.my.domain" > > and now it works perfectly, thanks! > > Question: what does the line I added tell my computer? I.e., what does > that line "do"? > The /etc/hosts file is used to map host

Re: Xfce unable to lookup hostname

2009-05-07 Thread Daniel Underwood
I added the line "127.0.0.1 bsdbox bsdbox.my.domain" and now it works perfectly, thanks! Question: what does the line I added tell my computer? I.e., what does that line "do"? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.

isc-dhcpd server, HOSTNAME

2009-05-07 Thread Pieter Donche
FreeBSD7 with isc-dhcp30-server. It hands out an IP address, OK, but the BASH environment variable HOSTNAME is not set. Why? (A DNS server is active on the network and can succesfully be queried from a FreeBSD bash command (nslookup or host) to see the hostname associated with the IP-address

Re: Xfce unable to lookup hostname

2009-05-07 Thread Polytropon
On Thu, 7 May 2009 09:37:59 -0400, Daniel Underwood wrote: > Let me make sure I understand (part of) your advice. Since I set > hostname="bsdbox" in rc.conf, I should replace "localhost" instances > in /etc/ttys ? No, the name "localhost" should be in y

Re: Xfce unable to lookup hostname

2009-05-07 Thread Andrew Gould
gt; Right, I realize I was unclear. I just meant that two lines contained > "localhost localhost.my.domain", not that they ONLY contained that > phrase. So, yes, I'm referring to the lines starting with "::1" and > "127.0.0.1". > > Let me make su

Re: Xfce unable to lookup hostname

2009-05-07 Thread Daniel Underwood
*Correction* In previous email, "/etc/ttys" --> "/etc/hosts". ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: Xfce unable to lookup hostname

2009-05-07 Thread Daniel Underwood
st.my.domain", not that they ONLY contained that phrase. So, yes, I'm referring to the lines starting with "::1" and "127.0.0.1". Let me make sure I understand (part of) your advice. Since I set hostname="bsdbox" in rc.conf, I shou

Re: Xfce unable to lookup hostname

2009-05-07 Thread Andrew Gould
On Thu, May 7, 2009 at 8:14 AM, Daniel Underwood wrote: > Every time I log in to xfce, it throws a warning that it cannot lookup > "bsdbox" (which is my hostname as defined in rc.conf). The warning > dialog suggests altering /etc/hosts to fix the problem. In fact, it's &

Re: Xfce unable to lookup hostname

2009-05-07 Thread Polytropon
;.local", ".localdomain", ".dingenskirchens"... :-) > What should I do to resolve this issue? In a situation like this > (note: I am behind a home router), is there actually anything I can > replace "my.domain" with? It's important that /etc/hosts defines the v

Xfce unable to lookup hostname

2009-05-07 Thread Daniel Underwood
Every time I log in to xfce, it throws a warning that it cannot lookup "bsdbox" (which is my hostname as defined in rc.conf). The warning dialog suggests altering /etc/hosts to fix the problem. In fact, it's not a "problem" because my WAN connectivity is fine, but I still

Re: Assign IP address and hostname via kernel parameter

2009-05-06 Thread Bob Bishop
Hi, On 6 May 2009, at 16:20, Mister Olli wrote: is there a way to configure IP address and hostname on freebsd systems via kernel command line parameters? [etc] When running diskless, the loader sets kernel variables like: boot.netif.gateway="192.168.198.1" boot.netif.hwaddr="

Re: Assign IP address and hostname via kernel parameter

2009-05-06 Thread jt
Hi, I would take a look at sysctl this system takes care of kernel parameters. There are a few man pages that delineate what is read only. I'm sure you are aware of setting the hostname at boot time. It seemed like you were more curious about on the fly. I'm not familiar with

Assign IP address and hostname via kernel parameter

2009-05-06 Thread Mister Olli
Hi, is there a way to configure IP address and hostname on freebsd systems via kernel command line parameters? I have some freebsd systems in as xen domU's and it would be really great to be able to set the ip address & hostname within the configuration file for the domU. I'm awar

Re: Last commmand showing resolved hostname

2009-01-17 Thread Chuck Swiger
On Jan 17, 2009, at 11:20 AM, Troy wrote: I have a question. Is there a way that you can make the 'last' command display the DNS resolved name of the users that have logged into a machine rather than the IP address. Showing both name and IP address would be even better. The issue is that

Last commmand showing resolved hostname

2009-01-17 Thread Troy
I have a question. Is there a way that you can make the 'last' command display the DNS resolved name of the users that have logged into a machine rather than the IP address. Showing both name and IP address would be even better. I looked at the man page (man last) and it says "Host names may b

Re: Cannot send to mailing lists - client host rejected: cannot find your hostname

2009-01-15 Thread Olivier Nicole
> I'm having a minor problem with posting to the list. I have my own > mail server using postfix, fetchmail, and courier. I have several > domain names, and I'm using one for my mail server. > > In my logs I'm seeing 450 errors for freebsd-questions since around > the end of last year, but I

Cannot send to mailing lists - client host rejected: cannot find your hostname

2009-01-15 Thread rock_on_the_web
I'm having a minor problem with posting to the list. I have my own mail server using postfix, fetchmail, and courier. I have several domain names, and I'm using one for my mail server. In my logs I'm seeing 450 errors for freebsd-questions since around the end of last year, but I did have s

Re: Default list of exported variables in sh(1) - $HOSTNAME

2008-12-29 Thread Brian A. Seklecki
On Mon, 2008-12-29 at 12:05 -0900, Mel wrote: > > > I may be better off using getenv() in PHP directly. > > For portability yes, since it doesn't rely on EGPCS, but otherwise > they give the same results. Another option would be to pay the PHP people to add POSIX 1003.1-2001 gethostname(2). I'l

Re: Default list of exported variables in sh(1) - $HOSTNAME

2008-12-29 Thread Mel
On Monday 29 December 2008 11:12:33 Brian A. Seklecki wrote: > > > SSH_CONNECTION > > > FTP_PASSIVE_MODE > > > EDITOR > > > > I suspect linux to set them from .profile files (even /etc/profile) and > > not hardcoded in a shell or login program. The default skeletons > > Mel: > > You were right to

Re: Default list of exported variables in sh(1) - $HOSTNAME

2008-12-29 Thread Brian A. Seklecki
> > SSH_CONNECTION > > FTP_PASSIVE_MODE > > EDITOR > > I suspect linux to set them from .profile files (even /etc/profile) and not > hardcoded in a shell or login program. The default skeletons Mel: You were right to some extent. However, the problem is more complicated (or less complicated

Re: Default list of exported variables in sh(1) - $HOSTNAME

2008-12-27 Thread Mel
inux but not FreeBSD > because (I think) $HOSTNAME is exported by default. > > The PHP CLI calls $_ENV["HOSTNAME"], which under GNU/Linux returns: > > $ php -r 'print gethostbyaddr(gethostbyname($_ENV["HOSTNAME"]))' > soundwave.wscollaborativefusion

Default list of exported variables in sh(1) - $HOSTNAME

2008-12-24 Thread Brian A. Seklecki
All: I've got a fun problem ... I'm having trouble tracking down where the default list of exported variables is set for sh(1). I've got a piece of PHP code that runs on GNU/Linux but not FreeBSD because (I think) $HOSTNAME is exported by default. The PHP CLI calls $_ENV[&qu

Re: redundancy in domain or hostname ?

2008-01-28 Thread Derek Ragona
stallation of the server, the hostname "myserver.example.com" and the domain name "example.com" were entered in the appropiate Sysinstall dialog . /etc/hosts shows: ::1 localhost.example.com localhost 127.0.0.1 localhost.example.com local

Re: redundancy in domain or hostname ?

2008-01-27 Thread Josh Paetzel
Dyndns.org staff and found in accordance with the > purpose. > > During installation of the server, the hostname "myserver.example.com" and > the domain name "example.com" were entered in the appropiate Sysinstall > dialog > > . > > /etc/hosts shows: > ::1

redundancy in domain or hostname ?

2008-01-26 Thread Walter Jansen
w in-house employees and as a webserver. The domain "example.com" is registered with Dyndns.org who also run the "Custom DNS service". The DNS entries were checked with Dyndns.org staff and found in accordance with the purpose. During installation of the server, the hostname

Re: gdm-binary: Unable to connect to socket: hostname nor servname provided (SOLVED)

2007-11-21 Thread Laszlo Nagy
The problem was that gdm was compiled with IPv6 support but the kernel wasn't. This should not cause the gdm process to freeze and only exit with "kill -9" right? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.o

Re: gdm-binary: Unable to connect to socket: hostname nor servname provided

2007-11-21 Thread Laszlo Nagy
]: DEBUG: XDMCP: Start up on host cassiopeia.ronet, port 177 Nov 21 09:41:14 cassiopeia gdm-binary[86504]: ERROR: Unable to connect to socket: hostname nor servname provided, or not known aborting... Nov 21 09:41:14 cassiopeia gdm-binary[86505]: DEBUG: Attempting to parse key string: xdmcp

gdm-binary: Unable to connect to socket: hostname nor servname provided

2007-11-20 Thread Laszlo Nagy
Hi All, Do you have any idea what is the problem with my settings? gdm places this message in /var/log/messages: Nov 20 12:19:05 cassiopeia gdm-binary[1167]: ERROR: Unable to connect to socket: hostname nor servname provided, or not known aborting... The local X server starts, but gdm is

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread L Goodwin
--- Jeffrey Goldberg <[EMAIL PROTECTED]> wrote: > On Aug 30, 2007, at 6:29 PM, L Goodwin wrote: > > > Do you mean avoid giving any machines on your LAN > the > > same hostname as the (hosted) web server, mail > server > > and ftp server? I don't even

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread Jeffrey Goldberg
On Aug 30, 2007, at 6:29 PM, L Goodwin wrote: Do you mean avoid giving any machines on your LAN the same hostname as the (hosted) web server, mail server and ftp server? I don't even know what the hostname for the web server is. The mail and ftp servers are "mail..com" and &

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread L Goodwin
gt; be > > > having unique machine > > > names, but that shouldn't really be too tough. > > > >Do you mean avoid giving any machines on your LAN > the > >same hostname as the (hosted) web server, mail > server > >and ftp server? I don't even

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread Derek Ragona
does, no reason not to. The only issue may > be > > > having unique machine > > > names, but that shouldn't really be too tough. > > > >Do you mean avoid giving any machines on your LAN > the > >same hostname as the (hosted) web server, mail > server &

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread Derek Ragona
name that your hosted web site > >uses for your LAN? > > Sure does, no reason not to. The only issue may be > having unique machine > names, but that shouldn't really be too tough. Do you mean avoid giving any machines on your LAN the same hostname as the (hosted) web server, m

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread Peter Pluta
of what the community referred to it as. i > bought the domain just out of convenience many moons ago :) > >> I keep visualizing a domain as in 3-4 servers each of >> which has a hostname mail, web, etc.. > > fairly close, some times you will actually find servers that

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread L Goodwin
ses for your LAN? > > Sure does, no reason not to. The only issue may be > having unique machine > names, but that shouldn't really be too tough. Do you mean avoid giving any machines on your LAN the same hostname as the (hosted) web server, mail server and ftp server? I don

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread Derek Ragona
At 04:20 PM 8/30/2007, L Goodwin wrote: I and most of my clients who have hosted web sites have just the one domain name. Does it make sense to use the same domain name that your hosted web site uses for your LAN? Sure does, no reason not to. The only issue may be having unique machine names,

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread L Goodwin
I and most of my clients who have hosted web sites have just the one domain name. Does it make sense to use the same domain name that your hosted web site uses for your LAN? --- Derek Ragona <[EMAIL PROTECTED]> wrote: > Pick a domain you own, or buy a new one. They is > why there are so many > d

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-30 Thread Derek Ragona
At 07:19 PM 8/29/2007, Peter Pluta wrote: Jonathan Horne wrote: > > On Wednesday 29 August 2007 19:05:06 Peter Pluta wrote: >> I have a box with 5 ip's pointing to it. Most of the things I run (http, >> smtp) are virtual or allow me to specify the hostname (postfix) - s

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-29 Thread Jonathan Horne
main just out of convenience many moons ago :) > I keep visualizing a domain as in 3-4 servers each of > which has a hostname mail, web, etc.. fairly close, some times you will actually find servers that actually are named "web" "mail", or have names after services. mysel

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-29 Thread Peter Pluta
Jonathan Horne wrote: > > On Wednesday 29 August 2007 19:05:06 Peter Pluta wrote: >> I have a box with 5 ip's pointing to it. Most of the things I run (http, >> smtp) are virtual or allow me to specify the hostname (postfix) - so I'm >> wondering what t

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-29 Thread Jonathan Horne
On Wednesday 29 August 2007 19:05:06 Peter Pluta wrote: > I have a box with 5 ip's pointing to it. Most of the things I run (http, > smtp) are virtual or allow me to specify the hostname (postfix) - so I'm > wondering what the machines hostname should be? By default it's

Re: FreeBSD Hostname Question - Whats The Proper Way

2007-08-29 Thread Derek Ragona
At 07:05 PM 8/29/2007, Peter Pluta wrote: I have a box with 5 ip's pointing to it. Most of the things I run (http, smtp) are virtual or allow me to specify the hostname (postfix) - so I'm wondering what the machines hostname should be? By default it's localhost.localdomain.

FreeBSD Hostname Question - Whats The Proper Way

2007-08-29 Thread Peter Pluta
I have a box with 5 ip's pointing to it. Most of the things I run (http, smtp) are virtual or allow me to specify the hostname (postfix) - so I'm wondering what the machines hostname should be? By default it's localhost.localdomain. This has always confused me from the begini

Re: hostname setting in rc.conf ignored?

2007-05-17 Thread Mike Barborak
/local/etc/rc.after_everything.d (same permissions as /usr/local/etc/rc.d) and put a file named hostname.sh in that directory with this content: #!/bin/sh /bin/hostname your_hostname_here Make the file executable. -Mike On 5/17/07, Robert Huff <[EMAIL PROTECTED]> wrote: Mike Barborak writes: > P

Re: hostname setting in rc.conf ignored?

2007-05-17 Thread Robert Huff
Mike Barborak writes: > Perhaps another tack, what is the last script executed during > boot up? If I add a line like "/bin/hostname www.mydomain.com" to > /etc/rc.local should this force the hostname change? Start with "man rc.d".

Re: hostname setting in rc.conf ignored?

2007-05-17 Thread Mike Barborak
Thanks for the suggestions. That's right, I'm not using DHCP. I searched through /etc and /usr/local/etc for calls to hostname and for the string www.mydomain.com and all I found was a call to the command "hostname" in /etc/rc.network and my setting of the hostname vari

Re: hostname setting in rc.conf ignored?

2007-05-17 Thread Mike Barborak
No, there's not. This is the entire rc.conf file: hostname="www.mydomain.com" sshd_enable="NO" vsapd_enable="YES" enable_quotas="YES" clamav_clamd_enable="YES" spamd_enable="YES" spamd_pidfile="/var/run/spamd.pid&qu

Re: hostname setting in rc.conf ignored?

2007-05-17 Thread John Nielsen
On Thursday 17 May 2007 01:27:52 pm Mike Barborak wrote: > Hello, > > I have a FreeBSD 4.7-RELEASE-p28 server that was initially configured with > the hostname mydomain.com. I am trying to permanently change that to be > www.mydomain.com. I have added this line to my /e

hostname setting in rc.conf ignored?

2007-05-17 Thread Mike Barborak
Hello, I have a FreeBSD 4.7-RELEASE-p28 server that was initially configured with the hostname mydomain.com. I am trying to permanently change that to be www.mydomain.com. I have added this line to my /etc/rc.conf file: hostname="www.mydomain.com" but after restarting the server it

Re: sendmail and hostname

2007-04-03 Thread Matthew Seaman
Firas Kraiem wrote: > Greetings > > I get this message when booting my FBSD home webserver : > > Apr 3 22:23:55 alice sm-mta[509]: My unqualified host name (alice) > unknown; sleeping for retry > > From what I've understood after a bit of searching, the answer lies probably > in the

sendmail and hostname

2007-04-03 Thread Firas Kraiem
Greetings I get this message when booting my FBSD home webserver : Apr 3 22:23:55 alice sm-mta[509]: My unqualified host name (alice) unknown; sleeping for retry From what I've understood after a bit of searching, the answer lies probably in the /etc/hosts file. So here goes :

Re: sendmail and hostname

2007-04-03 Thread Roland Smith
;ve understood after a bit of searching, the answer lies probably > in the /etc/hosts file. So here goes : > > 127.0.0.1 localhost alice > 192.168.1.2 alice The hostname "alice" should have a domain part. And it should match the hostname tha

sendmail and hostname

2007-04-03 Thread Firas Kraiem
Greetings I get this message when booting my FBSD home webserver : Apr 3 22:23:55 alice sm-mta[509]: My unqualified host name (alice) unknown; sleeping for retry From what I've understood after a bit of searching, the answer lies probably in the /etc/hosts file. So here goes :

  1   2   3   >