Disable automatic Fallback IP on 9.0-RC2 when a hostname cannot be resolved
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 find a suitable DNS or /etc/hosts record. I dislike when computers try to be smart like this, and I can't really think how this is useful, and it also doesn't happen on another machine that has a subdomain of something set as hostname and is running 8.2, so I want to disable it. Can anyone give me a hint how to do it? If you can't, which of the numerous mailing lists would be the right one to contact in this case? This is 9.0-RC2 on amd64, last updated 2011-11-09. Best regards, Moritz ___ 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: Disable automatic Fallback IP on 9.0-RC2 when a hostname cannot be resolved
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 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 find a suitable DNS or /etc/hosts record. I dislike when computers try to be smart like this, and I can't really think how this is useful, and it also doesn't happen on another machine that has a subdomain of something set as hostname and is running 8.2, so I want to disable it. Can anyone give me a hint how to do it? If you can't, which of the numerous mailing lists would be the right one to contact in this case? This is 9.0-RC2 on amd64, last updated 2011-11-09. Best regards, Moritz ___ 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 ___ 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: Disable automatic Fallback IP on 9.0-RC2 when a hostname cannot be resolved
Am 26.11.2011, 16:44 Uhr, schrieb Moritz Wilhelmy mor...@wzff.de: 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 find a suitable DNS or /etc/hosts record. I dislike when computers try to be smart like this, and I can't really think how this is useful, and it also doesn't happen on another machine that has a subdomain of something set as hostname and is running 8.2, so I want to disable it. Can anyone give me a hint how to do it? 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. Regards, Michael ___ 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: Disable automatic Fallback IP on 9.0-RC2 when a hostname cannot be resolved
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 Trying 178.63.197.15... Connected to wzff.de. Escape character is '^]'. 220 wzff.de ESMTP Exim 4.72 Sat, 26 Nov 2011 20:18:45 +0100 QUIT 221 wzff.de closing connection Connection closed by foreign host. Same thing on the mail.wzff.de jail: # telnet foo1 25 Trying 178.63.197.15... Connected to wzff.de. Escape character is '^]'. jabber.barfooze.de: # telnet fu1 25 Trying 78.46.117.212... Connected to fu1.barfooze.de. Escape character is '^]'. 220 barfooze.de ESMTP Exim 4.76 Sat, 26 Nov 2011 20:25:57 +0100 Interestingly, on this jail it connects to a subdomain. I tried telnet and irssi, and both of them do this, so it's probably not an application bug either. Any hints where else I should look? Best regards, Moritz ___ 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: Disable automatic Fallback IP on 9.0-RC2 when a hostname cannot be resolved
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 local wasn't required on my previous machines, all of which ran Linux though, which is a different kind of beast.. The 8.2 machine I was talking about doesn't have wildcard domain names set. Best regards, Moritz ___ 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: Disable automatic Fallback IP on 9.0-RC2 when a hostname cannot be resolved
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, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0 ;; QUESTION SECTION: ;*.wzff.de. IN ANY ;; ANSWER SECTION: *.wzff.de. 3600IN CNAME wzff.de. ;; AUTHORITY SECTION: wzff.de.86399 IN NS ns.inwx.de. wzff.de.86399 IN NS ns2.inwx.de. wzff.de.86399 IN NS ns3.inwx.de. ;; Query time: 170 msec ;; SERVER: ::1#53(::1) ;; WHEN: Sat Nov 26 21:49:33 2011 ;; MSG SIZE rcvd: 99 Yes, it is your DNS provider. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
change hostname
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 ## -- used to be LBSD1.summitnjhome.com ifconfig_bge0=inet 192.168.1.44 netmask 255.255.255.0 nfs_client_enable=YES sshd_enable=YES named_enable=YES slapd_enable=YES And then edited /etc/hosts ::1 localhost localhost.summitnjhome.com 127.0.0.1 localhost localhost.summitnjhome.com 192.168.1.44LBSD2.summitnjhome.com LBSD2 ## -- used to be LBSD1.summitnjhome.com 192.168.1.44LBSD2.summitnjhome.com. ## -- Same then i restarted the network LBSD2# /etc/rc.d/netif restart Stopping Network: lo0 bge0 plip0. lo0: flags=8048LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 nd6 options=3PERFORMNUD,ACCEPT_RTADV bge0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:14:22:38:9e:eb media: Ethernet autoselect (1000baseT full-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 Starting Network: lo0 bge0. lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 nd6 options=3PERFORMNUD,ACCEPT_RTADV bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:14:22:38:9e:eb inet 192.168.1.44 netmask 0xff00 broadcast 192.168.1.255 media: Ethernet autoselect (none) status: no carrier However when I issue the hostname -f command it does not reflect the change. It doesn't even show the fqdn LBSD2# hostname -f LBSD2 What am I doing wrong, here? thanks! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B ___ 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: change hostname
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 hostname=LBSD2.summitnjhome.com ## -- used to be LBSD1.summitnjhome.com ifconfig_bge0=inet 192.168.1.44 netmask 255.255.255.0 nfs_client_enable=YES sshd_enable=YES named_enable=YES slapd_enable=YES And then edited /etc/hosts ::1 localhost localhost.summitnjhome.com 127.0.0.1 localhost localhost.summitnjhome.com 192.168.1.44LBSD2.summitnjhome.com LBSD2 ##-- used to be LBSD1.summitnjhome.com 192.168.1.44LBSD2.summitnjhome.com. ##-- Same then i restarted the network LBSD2# /etc/rc.d/netif restart Stopping Network: lo0 bge0 plip0. lo0: flags=8048LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 nd6 options=3PERFORMNUD,ACCEPT_RTADV bge0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:14:22:38:9e:eb media: Ethernet autoselect (1000baseTfull-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 Starting Network: lo0 bge0. lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 nd6 options=3PERFORMNUD,ACCEPT_RTADV bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:14:22:38:9e:eb inet 192.168.1.44 netmask 0xff00 broadcast 192.168.1.255 media: Ethernet autoselect (none) status: no carrier However when I issue the hostname -f command it does not reflect the change. It doesn't even show the fqdn LBSD2# hostname -f LBSD2 What am I doing wrong, here? thanks Try typing the command: # hostname LBSD2.summitnjhome.com ___ 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: change hostname
that did it! thanks On Sun, Mar 27, 2011 at 11:00 PM, Noel noeld...@gmail.com 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 one I selected. So I edited /etc/rc.conf to change the name there defaultrouter=192.168.1.1 hostname=LBSD2.summitnjhome.com ## -- used to be LBSD1.summitnjhome.com ifconfig_bge0=inet 192.168.1.44 netmask 255.255.255.0 nfs_client_enable=YES sshd_enable=YES named_enable=YES slapd_enable=YES And then edited /etc/hosts ::1 localhost localhost.summitnjhome.com 127.0.0.1 localhost localhost.summitnjhome.com 192.168.1.44 LBSD2.summitnjhome.com LBSD2 ##-- used to be LBSD1.summitnjhome.com 192.168.1.44 LBSD2.summitnjhome.com. ##-- Same then i restarted the network LBSD2# /etc/rc.d/netif restart Stopping Network: lo0 bge0 plip0. lo0: flags=8048LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 nd6 options=3PERFORMNUD,ACCEPT_RTADV bge0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:14:22:38:9e:eb media: Ethernet autoselect (1000baseTfull-duplex) status: active plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500 Starting Network: lo0 bge0. lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 nd6 options=3PERFORMNUD,ACCEPT_RTADV bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE ether 00:14:22:38:9e:eb inet 192.168.1.44 netmask 0xff00 broadcast 192.168.1.255 media: Ethernet autoselect (none) status: no carrier However when I issue the hostname -f command it does not reflect the change. It doesn't even show the fqdn LBSD2# hostname -f LBSD2 What am I doing wrong, here? thanks Try typing the command: # hostname LBSD2.summitnjhome.com ___ 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 -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B ___ 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
mount_smbfs hostname resolution
I'm trying to mount a share on the ADS of my university. I have, after many hours of tinkering, managed to find out why it doesn't work and even managed to access the share with smbclient. Though I now know (or at least suspect) the cause of the problem, I do not know how to apply the solution. I can reach the ADS server via the -I parameter, which circumvents the local address resolution. However the ads just returns the name of another server to connect to (output excerpts from smbclient -d3): ... got principal=hs-ad-...@ads.hs-karlsruhe.de ... As you can see hs-ad-01 is a local name again. It cannot be resolved and the connection fails. However this can be circumvented by adding a search entry in /etc/resolv.conf: search hs-karlsruhe.de Et voilà: # ping hs-ad-01 PING hs-ad-01.hs-karlsruhe.de (193.196.64.10): 56 data bytes ... And suddenly the smbclient connection works: ... resolve_lmhosts: Attempting lmhosts lookup for name IZ-AD-280x20 resolve_wins: Attempting wins lookup for name IZ-AD-280x20 resolve_wins: WINS server resolution selected and no WINS servers listed. resolve_hosts: Attempting host lookup for name IZ-AD-280x20 Connecting to 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 user%pass //ADS/DFS smb: \ Unfortunately this mount_smbfs appears not to use hostname resolution, all that I get from it: # mount_smbfs //user@ads/dfs /mnt/tmp mount_smbfs: can't get server address: syserr = Operation timed out Of course I can use the -I parameter: # mount_smbfs -Iads.hs-karlsruhe.de //user@ads/dfs /mnt/tmp mount_smbfs: unable to open connection: syserr = Connection reset by peer My guess is that moung_smbfs receives the principal (hs-ad-01 is only one of many available candidates among which the load is balanced) and cannot resolve it or even doesn't handle redirection at all. Directly connecting to one of the providers also does not work: # mount_smbfs -Ihs-ad-01 //user@ads/dfs /mnt/tmp mount_smbfs: unable to open connection: syserr = Connection reset by peer With this meagre output I don't really have a way of determining the true nature of the issue. All that I can say is that smbclient works and mount_smbfs does not. Unfortunately the net/samba34 does not install the smbmount utility of the samba suit. Regards -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ 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
hostname
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 Public key: gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9 Share and enjoy!! ___ 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: hostname
On Sat, 30 Oct 2010 16:00:39 -0400, Tim Dunphy bluethu...@gmail.com 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 this. Put this setting into /etc/rc.conf: hostname=blah.foo.bar Of course with your desired hostname. :-) See man rc.conf and man hosts for details about the function of those files; see also /etc/defaults/rc.conf for other options that may be interesting in this concern. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: hostname
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 this. thanks edit /etc/rc.conf and enter: hostname=[put your hostname here] change the [put your hostname here] to your actual hostname. And it will load the name on (re)boot. Tim Kellers ___ 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: hostname
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 in FreeBSD I don't know how to do this. thanks edit /etc/rc.conf and enter: hostname=[put your hostname here] change the [put your hostname here] to your actual hostname. And it will load the name on (re)boot. If you don't want to wait for reboot, you can set it immediately by typing hostname putyourhostnamehere as root, substituting your desired host name for putyourhostnamehere. Also see `man hostname`. Note, this is *in addition to* editing rc.conf. The hostname command sets the hostname right now, and rc.conf makes it happen on each boot. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging | ] ___ 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: hostname
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 in FreeBSD I don't know how to do this. I think, /etc/rc.conf could be the best place. Sabine -- Der Gefraessige, wenn er Vorsicht nicht kennt, isst sich Uebelkeit an. Dem toerichten Mann wird sein Magen zum Spott, wenn er zu Klugen kommt.(Hávamál 13) ___ 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
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) to and from a HOSTNAME (which has more DNS A entries) or better, from any *.HOSTNAME.COM Thank you in advance ___ 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: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)
I don't know how to do it with IPFW, but I like using null / bogus routes to blackhole bad hosts - assuming of course the host in question isn't using dynamic IP's. -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] 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) to and from a HOSTNAME (which has more DNS A entries) or better, from any *.HOSTNAME.COM Thank you in advance ___ 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 ___ 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: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)
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 permit rules to only pass traffic which is allowed. :-) Judging by your question, however, it sounds more like you want to use regex based blocking of hostnames within a web proxy like Squid or Varnish than IP-level firewalls. Regards, -- -Chuck ___ 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: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)
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 of their ip-address range. Then, for ipf, put this in your rules file. ### EXAMPLE ### block in quick on fxp0 from 192.168.0.0/16 to any block out quick on fxp0 from any to 192.168.0.0/16 ___ 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: FreeBSD router (IPFW-based): how to block 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 of any of *.hostname, there must be written a shell script, that analyzes all requests [have no idea how to execute a shell script LIVE!!!, any idea on this topic?]. --- On Thu, 6/17/10, Bernt Hansson be...@bah.homeip.net wrote: From: Bernt Hansson be...@bah.homeip.net Subject: Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME) To: Valerian Galeru valerian...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Thursday, June 17, 2010, 11:47 PM 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 of their ip-address range. Then, for ipf, put this in your rules file. ### EXAMPLE ### block in quick on fxp0 from 192.168.0.0/16 to any block out quick on fxp0 from any to 192.168.0.0/16 ___ 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: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)
What about an entry in your local DNS (what your hosts use) that gives a bogus ip (127.0.0.1?) for *.badhost.com? Then users can never connect to badhost.com. I don't know too many FW's that allow you to use a URL in a rule. IIRC, CheckPoint-FW1 did/does, but they recommend against it due to overhead. As pointed out, Squid or other light weight white/blacklist thingy might be in order. - Original Message - From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org To: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Thu Jun 17 15:56:23 2010 Subject: Re: FreeBSD router (IPFW-based): how to block 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 of any of *.hostname, there must be written a shell script, that analyzes all requests [have no idea how to execute a shell script LIVE!!!, any idea on this topic?]. --- On Thu, 6/17/10, Bernt Hansson be...@bah.homeip.net wrote: From: Bernt Hansson be...@bah.homeip.net Subject: Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME) To: Valerian Galeru valerian...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Thursday, June 17, 2010, 11:47 PM 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 of their ip-address range. Then, for ipf, put this in your rules file. ### EXAMPLE ### block in quick on fxp0 from 192.168.0.0/16 to any block out quick on fxp0 from any to 192.168.0.0/16 ___ 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 ___ 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: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)
The idea with the DNS server is wonderful, but the problem is, that in my network the DNS server is the one in Internet [i dont run a DNS server and all local/LAN computers are configured manually to use a public DNS server ]. --- On Fri, 6/18/10, Gary Gatten ggat...@waddell.com wrote: From: Gary Gatten ggat...@waddell.com Subject: Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME) To: 'valerian...@yahoo.com' valerian...@yahoo.com, 'freebsd-questions@freebsd.org' freebsd-questions@freebsd.org Date: Friday, June 18, 2010, 12:08 AM What about an entry in your local DNS (what your hosts use) that gives a bogus ip (127.0.0.1?) for *.badhost.com? Then users can never connect to badhost.com. I don't know too many FW's that allow you to use a URL in a rule. IIRC, CheckPoint-FW1 did/does, but they recommend against it due to overhead. As pointed out, Squid or other light weight white/blacklist thingy might be in order. - Original Message - From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org To: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Thu Jun 17 15:56:23 2010 Subject: Re: FreeBSD router (IPFW-based): how to block 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 of any of *.hostname, there must be written a shell script, that analyzes all requests [have no idea how to execute a shell script LIVE!!!, any idea on this topic?]. --- On Thu, 6/17/10, Bernt Hansson be...@bah.homeip.net wrote: From: Bernt Hansson be...@bah.homeip.net Subject: Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME) To: Valerian Galeru valerian...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Thursday, June 17, 2010, 11:47 PM 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 of their ip-address range. Then, for ipf, put this in your rules file. ### EXAMPLE ### block in quick on fxp0 from 192.168.0.0/16 to any block out quick on fxp0 from any to 192.168.0.0/16 ___ 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 -Inline Attachment Follows- ___ 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 ___ 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: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME)
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 addresses of any of *.hostname, there must be written a shell script, that analyzes all requests [have no idea how to execute a shell script LIVE!!!, any idea on this topic?]. Scripting it is not that hard, but most security advisors seem to recommend against it since a smart attacker could use such a thing against you. If you know the hostname and ip, there is no reason to script it, if you don't, then you will have the script making decisions and it's possible those decisions could be leveraged to make you block the wrong thing. In spite of warnings, I did it during the bot attacks in 2006 and it really saved us. With care, it's a great solution. I'm not sure why you would do this if you know the hostname? I am missing something there, maybe the question of how you come to know that this host should be blocked. If it's content, then here is another approach. If you know the content that makes *.hostname be a bad actor, snort_inline is designed for that. You run it on a socket at startup and divert within ipfw, any traffic you want checked. You create a snort rule to do so and drop the session if it matches. Again, your drop rules need to be well designed, so it has some of the same earmarks as the scripted solutions. It does work though if you can identify a unique signature for what *.hostname (and then *.hostname2, *.hostname3 etc) is doing that they should be blocked. It handles some pretty hefty traffic too though I run it on a machine in front of the net that only does ipfw/bridging and snort_inline. It was pretty easy to set up too. With this, I'm not suggesting a hostname lookup but to drop sessions from hostname based on whatever the criteria is that you use to know that it should be blocked. --- On Thu, 6/17/10, Bernt Hansson be...@bah.homeip.net wrote: From: Bernt Hansson be...@bah.homeip.net Subject: Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME) To: Valerian Galeru valerian...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Thursday, June 17, 2010, 11:47 PM 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 of their ip-address range. Then, for ipf, put this in your rules file. ### EXAMPLE ### block in quick on fxp0 from 192.168.0.0/16 to any block out quick on fxp0 from any to 192.168.0.0/16 ___ 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 ___ 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
-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 hostname generated randomly. perl -le '@a=(a..z,0..9); print map {$a[rand @a]} (1..8)' That gives you 2,821,109,907,456 different possibilities so you should be able to use it for a while without too much fear of duplicates. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuh5R8ACgkQ8Mjk52CukIwBvQCdF+DQpVJaEeO0UetodSBmLZ0t NRkAn3Qgw8R2ovE5+in1iNN5CQ8kwwdT =hC2G -END PGP SIGNATURE- ___ 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
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 English words. You would have to work on the script though, because now it also add numbers and other signs, to generate passwords. Bests, Olivier ___ 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
-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 the template is closed. It would be useful to have a hostname generated randomly. perl -le '@a=(a..z,0..9); print map {$a[rand @a]} (1..8)' That gives you 2,821,109,907,456 different possibilities so you should be able to use it for a while without too much fear of duplicates. 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. Something like this: % cat hngen #!/usr/bin/perl use strict; MAIN: { use integer; my @a = ( 'a' .. 'z' ); my $mac = shift; my $n = ''; $mac =~ tr/://d; $mac = hex $mac;# Convert to decimal integer while ( $mac 0 ) { $n = $a[ $mac % @a ] . $n; $mac /= @a; } print $n\n; } % ./hngen 00:40:05:a5:8d:b7 bigdehkkt It does mean that hosts from the same manufacturer will tend to have similar names -- this might be construed as a feature... Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuh7/gACgkQ8Mjk52CukIz4egCfc6ErdXCEhIYz3emGZmPN51YX iYAAnjbBxLaAOh6pAUkfgdgZH/PyU/EM =KZ8m -END PGP SIGNATURE- ___ 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
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 actually *assigns* a random hostname, similar to what's provided in Windows. Generating the string itself obviously can be done in any number of ways, but once you have the string, there are at least of couple of files where this name needs to be inserted (/etc/hosts, /etc/rc.conf). When you create a master image in Windows, you can have it automatically assign a random hostname the first time the cloned image is booted. That's what I was looking for. My guess is that I'm going to have to update these files manually, running a script for example via rc.conf that disables itself after the first time the system boots. ___ 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
-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 what we are currently using. Unfortunately I guess I wasn't entirely clear. I was looking for a facility that actually *assigns* a random hostname, similar to what's provided in Windows. Generating the string itself obviously can be done in any number of ways, but once you have the string, there are at least of couple of files where this name needs to be inserted (/etc/hosts, /etc/rc.conf). When you create a master image in Windows, you can have it automatically assign a random hostname the first time the cloned image is booted. That's what I was looking for. My guess is that I'm going to have to update these files manually, running a script for example via rc.conf that disables itself after the first time the system boots. Ahah! Why didn't you say so? That's pretty simple really. Once you've generated the hostname, just use hostname(1) to make it the live name of the machine. This would have to be done with a small shell script, yes. Probably the easiest way to do that is a small RC script set to run just before /etc/rc.d/hostname, and that stole^Wborrowed most of the logic from that script about kenv and DHCP names, and hostname already being set. The core actions that script has to do are: if [ -z ${hostname} ] ; then hostname=$( generate_hostname ) /bin/hostname ${hostname}.example.com echo hostname=\${hostname}.example.com\ /etc/rc.conf fi Once hostname is set in /etc/rc.conf, this script will do nothing, and the regular /etc/rc.d/hostname script will operate normally. Setting the hostname with /bin/hostname is all that is specifically necessary for the local machine. It doesn't really need to be added to /etc/hosts, although that's not a bad idea. An alternative might be to run everything using DHCP and get the DHCP server to generate names and dish them out to the clients. Of course, it would be good to add the new hostname to some sort of networked database, like the DNS or NIS or LDAP so that other hosts can know how to get to it, but that's a different problem. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuiLKEACgkQ8Mjk52CukIz1HgCeNa1kZhojxvBYNKWmYixoSGFv e+gAnj4WEHRjzghZ0fmt2xTv1FvaAWGQ =DUDg -END PGP SIGNATURE- ___ 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
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 list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Generating a random hostname
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@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
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 by / -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ 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
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, BR, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ 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
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. For random strings, I tend to use openssl (e.g. with base64 encoding); openssl rand -base64 18 You do run the risk here of getting non-alphabetic characters here, so you might want to filter those: openssl rand -base64 18| sed 's|[^[:alpha:]]||g' Or if you are fine with just hex numbers; openssl rand 18 | hexdump -e '8 %X \n' Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpgeGnk7Eow9.pgp Description: PGP signature
Re: Generating a random hostname
-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 randomly. Hi Peter, You could use the security/makepasswd port like so: # makepasswd --chars=8 xRVoqtQa You can also constrain the characters used for the hostname with the - --string option. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLoWIo0sRouByUApARAsmVAJwOtmcAaZQusmgdkNlI/cF4ihOQawCgj9W/ 3UKGgSc9FZ0DEIJvQQ6mCJE= =p5i/ -END PGP SIGNATURE- ___ 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
On Mar 17, 2010, at 3:50 PM, Roland Smith wrote: openssl rand -base64 18| sed 's|[^[:alpha:]]||g' That works very well. My first run included an impressive anglo-saxon observation. To diminish agitating the night shift, I suppose you could filter out all the vowels. Peter, 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: apache22 and new hostname???
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 Apache documentation (mentioned in the above file) is also helpful. Regards, -- Matt Emmerton thanks, matt; the details are many; files in /usr/local/share/doc; it's a start gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php ___ 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
apache22 and new hostname???
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 own this domain . My builder friend, Steven Ross just bought the website. I am trying to get his .us site be served on my DNS server; in my /etc/namedb/* files. Steven's needs as a builder, home-repair, home-improvement, etc, are much simpler than my own web sites: basically one page with a few lines of text and photos of his work. Since I am the {throat-clearing here} designer, the KISS philosophy servers well. But I do need the basics of having/serving/hosting two domains on one computer. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php ___ 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: apache22 and new hostname???
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, -- Matt Emmerton ___ 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: Assign IP address and hostname via kernel parameter
Hi, thanks for the hint, this brought me to a (IMHO) good way to accomplish this. When using FreeBSD as domU and configuring the kernel in the domU config file (rather than using pygrub) it's possible to append kernel parameters, by defining them in the variable 'extras' within the domU config file. With 'kenv' I can read them from within the bootet domU, so this should be just a simple shell script to setup all parameters. Currently I'm not sure where this script should hook into freebsd's internas. The greatest thing would be having a 'rc.conf' parameter to enable configuration from the kernel parameters. Setting this to 'true' would simply fire up the shell script to do all the stuff. Any suggestions or hints on this??? Regards, --- Mr. Olli On Wed, 2009-05-06 at 17:52 +0100, Bob 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: boot.netif.gateway=192.168.198.1 boot.netif.hwaddr=00:15:17:47:14:fc boot.netif.ip=192.168.198.8 boot.netif.netmask=255.255.255.0 to values obtained from BOOTP or DHCP, and the right things happen. I guess you could just set these in loader.conf or at the loader prompt. -- Bob Bishop r...@gid.co.uk ___ 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: isc-dhcpd server, HOSTNAME
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 (nslookup or host) to see the hostname associated with the IP-address) Hostname is not one of the parameters usually requested from a DHCP server by a Unix machine. In fact, it's normally the other way round: the client tells the DHCP server what it's hostname is and the DHCP server can then inject an A record into the DNS dynamically. So, the normal way is that you have an entry hostname=somename.somedomain in /etc/rc.conf ? I can't remember the details of the install of this FreeBSD7 system, set up as a DHCPclient, but is during the installation the name of the host you want this machine to have and its domainname something that is asked for? (and then recorded in /etc/rc.conf) However it is possible to operate in the way you want. To tell the dhcp server to look up names from the DNS based on the address supplied to a host, search for the description of the 'get-lease-hostnames' flag in the dhcpd.conf(5) man page. To tell dhcp clients to fetch their hostname from DHCP, you need to add it to a 'request' or 'require' block in dhclient.conf -- see dhclient.conf(5). It's been a long time since I ran a setup anything like that, so I cannot recall if that was all that was required, or if it was also necessary to write a small dhclient-script(8) to actually set the hostname. Another alternative is to use a dhclient-script to take the IP number allocated by the DHCP server, look up the corresponding address and then set that as the hostname. The bash HOSTNAME environment variable will be set from the output of the hostname(1) command, which is usually set from the hostname variable in /etc/rc.conf or from the output of '/bin/kenv dhcp.host-name' if that is set. Otherwise it uses a default hostname of 'amnesiac'. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW ___ 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: Assign IP address and hostname via kernel parameter
Hi, I had a short look on google for this parameters, and from my understanding the NFS diskless client is using the informations out of it to set the appropriate settings on the network interface. So no luck when supplying them as kernel parameters. Oh and btw I'm not sure how to setup kernel options. Normally this is done in 'loader.conf', but since para-virtualized xen does start the kernel directly there's no way to do this via loader.conf. Does anyone have some idea or hints how to solve this problem? Regards, --- Mr. Olli On Wed, 2009-05-06 at 17:52 +0100, Bob 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: boot.netif.gateway=192.168.198.1 boot.netif.hwaddr=00:15:17:47:14:fc boot.netif.ip=192.168.198.8 boot.netif.netmask=255.255.255.0 to values obtained from BOOTP or DHCP, and the right things happen. I guess you could just set these in loader.conf or at the loader prompt. -- Bob Bishop r...@gid.co.uk ___ 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: isc-dhcpd server, HOSTNAME
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 on FreeBSD-amd64 3 some DHCP serverFreeBSD7-i386 set on unkown serverOS 4 some DHCP serverSuSE Linux 10.3 set on unkown serverOS Judging from this, you have a hostname set in /etc/rc.conf on freebsd 7 client and/or dhcpd isn't configured to send one as it receives one from the client and perhaps you have dynamic DNS configured? There is no hostname= declaration in /etc/rc.conf in that FreeBSD7 dhcp client. My dhcpd.conf contains mostly statically defined addresses (over a 100) e.g. host somehostname { hardware ethernet aa:bb:cc:dd:ee:ff; fixed-address AAA.BBB.CCC.DDD; } and one set of 6 dynamically assigned addresses. We want regular users to always get the same IP address based on the MAC address of their system, the pool of 6 is for visitors for one or a few days that we do allow not to register their MAC address. The freebsd7 client is one of the 100+ statically assigned ones, but I might have done a try for the dynamic assignment with this PC (by taking it temporarily out of /usr/local/etc/dhcpd.conf, restart dhcpd, try, then put it back in, restart dhcpd. In fact in /var/db/dhcpd/dhcpd.conf I see I do have an entry lease AAA.BBB.CCC.DDD { starts 4 2009/05/07 12:49:13; ends 4 2009/05/07 13:19:16; tstp 4 2009/05/07 13:19:16; binding state free; hardware ethernet aa.bb.cc.dd.ee.ff; uid \001\000\013\333S\025; } AAA.BBB.CCC.DDD being one of the pool of 6 and the ethernet adddress that of the freebsd client. I see that's free'd already (max lease time is 12 hours) and I tried back with that entry again as a statically defined one. Or does this dhcpd.lease entry still have an impact ??? The man of dhcpd.leases says In order to prevent the lease database from growing without bound, the file is rewritten from time to time. Can one do such a rewrite oneself, how ? would that help? On the other hand the AAA.BBB.CCC.DDD IP address does have a hostname specified in the DNS server (somewhere in our campus) (and that DNS server can be queried from the freebsd client via nslookup or host command and it returns the correct hostname). So even in dynamic assignment, shouldn't HOSTNAME been set with that hostname from DNS? If that's not the case, then you should add some debugging to /sbin/dhclient- script in the check_hostname function. -- Mel ___ 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: isc-dhcpd server, HOSTNAME
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 with the IP-address) Hostname is not one of the parameters usually requested from a DHCP server by a Unix machine. In fact, it's normally the other way round: the client tells the DHCP server what it's hostname is and the DHCP server can then inject an A record into the DNS dynamically. However it is possible to operate in the way you want. To tell the dhcp server to look up names from the DNS based on the address supplied to a host, search for the description of the 'get-lease-hostnames' flag in the dhcpd.conf(5) man page. To tell dhcp clients to fetch their hostname from DHCP, you need to add it to a 'request' or 'require' block in dhclient.conf -- see dhclient.conf(5). It's been a long time since I ran a setup anything like that, so I cannot recall if that was all that was required, or if it was also necessary to write a small dhclient-script(8) to actually set the hostname. Another alternative is to use a dhclient-script to take the IP number allocated by the DHCP server, look up the corresponding address and then set that as the hostname. The bash HOSTNAME environment variable will be set from the output of the hostname(1) command, which is usually set from the hostname variable in /etc/rc.conf or from the output of '/bin/kenv dhcp.host-name' if that is set. Otherwise it uses a default hostname of 'amnesiac'. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: isc-dhcpd server, HOSTNAME
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 queried from a FreeBSD bash command (nslookup or host) to see the hostname associated with the IP-address) I have a later version of dhcpd running on FreeBSD without problems. If your DHCP scope is setup correctly and your DHCP clients are getting settings that work, I'm not sure what is the problem you are experiencing. You hostname variable can be set in the startup bash (or any other shell's startup scripts) scripts on login. Of course, it can be set by oneself in a startup script, but this should not be needed... In fact when I switch the network cable of that DHCP client PC to another subnet, where another DHCP server is active (don't know on what OS that DHCP server runs but certainly not FreeBSD), then HOSTNAME is set. My DHCPclient is triple boot (SUSE linux, FreeBSD7 and Windows), With network cable again in first network (with the FreeBSD7/isc-dhcp-server DHCP server) when I boot into SuSE Linux, the HOSTNAME variable is set ... So it is the combination FreeBSD7-amd64/isc-dhcp30-server as a DHCP server that does not set HOSTNAME ... I am puzzled why ... overview: 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 FreeBSD-amd64 3 some DHCP serverFreeBSD7-i386 set on unkown serverOS 4 some DHCP serverSuSE Linux 10.3 set on unkown serverOS I compared from case 1 and 3 all variables that are set after a login (unix set command, and with a login using standard .profile and .bashrc startup scripts as created when creating a new user via useradd), and the only difference is precisely this HOSTNAME env. variable not being set (and of course some of them derived from that env. var.) -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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: isc-dhcpd server, HOSTNAME
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 FreeBSD-amd64 3 some DHCP serverFreeBSD7-i386 set on unkown serverOS 4 some DHCP serverSuSE Linux 10.3 set on unkown serverOS Judging from this, you have a hostname set in /etc/rc.conf on freebsd 7 client and/or dhcpd isn't configured to send one as it receives one from the client and perhaps you have dynamic DNS configured? If that's not the case, then you should add some debugging to /sbin/dhclient- script in the check_hostname function. -- Mel ___ 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: isc-dhcpd server, HOSTNAME
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 the hostname associated with the IP-address) I have a later version of dhcpd running on FreeBSD without problems. If your DHCP scope is setup correctly and your DHCP clients are getting settings that work, I'm not sure what is the problem you are experiencing. You hostname variable can be set in the startup bash (or any other shell's startup scripts) scripts on login. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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
Xfce unable to lookup hostname
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 want to resolve this. In /etc/hosts there are two lines containing: localhost localhost.my.domain Since I'm connecting to the Internet through a dynamic-IP ISP without a reserved domain name, I have nothing with which to replace my.domain. 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? Pardon my very limited understanding of networking concepts :) Thanks, Daniel ___ 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
On Thu, 7 May 2009 09:14:24 -0400, Daniel Underwood djuatde...@gmail.com wrote: In /etc/hosts there are two lines containing: localhost localhost.my.domain Really? No IP? I mean like ::1 localhost 127.0.0.1 localhost 127.0.0.1 bsdbox.local bsdbox 127.0.0.1 bsdbox.local. Since I'm connecting to the Internet through a dynamic-IP ISP without a reserved domain name, I have nothing with which to replace my.domain. You can replace it with anything that doesn't resolve, such as .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 values for localhost and your selected hostname (bsdbox), at least with the 127.0.0.1 IP. You can add further IPs with the same name if your machine spans a LAN (such as from 192.168.1.1). You can check everything with % host localhost and % host bsdbox so it should resolve to 127.0.0.1. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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
On Thu, May 7, 2009 at 8:14 AM, Daniel Underwood djuatde...@gmail.comwrote: 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 want to resolve this. In /etc/hosts there are two lines containing: localhost localhost.my.domain Since I'm connecting to the Internet through a dynamic-IP ISP without a reserved domain name, I have nothing with which to replace my.domain. 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? Pardon my very limited understanding of networking concepts :) Thanks, Daniel ___ freebsd-questions@freebsd.org Try adding the following line to /etc/hosts: 127.0.0.1 bsdbox bsdbox.my.domain Do not delete the localhost lines. Andrew ___ 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
Really? No IP? I mean like ::1 localhost 127.0.0.1 localhost 127.0.0.1 bsdbox.local bsdbox 127.0.0.1 bsdbox.local. 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 sure I understand (part of) your advice. Since I set hostname=bsdbox in rc.conf, I should replace localhost instances in /etc/ttys ? Thanks, Daniel ___ 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
*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
On Thu, May 7, 2009 at 8:37 AM, Daniel Underwood djuatde...@gmail.comwrote: Really? No IP? I mean like ::1 localhost 127.0.0.1 localhost 127.0.0.1 bsdbox.local bsdbox 127.0.0.1 bsdbox.local. 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 sure I understand (part of) your advice. Since I set hostname=bsdbox in rc.conf, I should replace localhost instances in /etc/ttys ? Thanks, Daniel I don't think you should touch /etc/ttys for this problem. Andrew ___ 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
On Thu, 7 May 2009 09:37:59 -0400, Daniel Underwood djuatde...@gmail.com 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 your /etc/hosts, along with the hostname you selected. In this case, something like # for localhost: ::1 localhost 127.0.0.1 localhost # for your hostname: 127.0.0.1 bsdbox.local bsdbox 127.0.0.1 bsdbox.local. would be okay. You can use .my.domain instead of .local; .localdomain is okay, too. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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
isc-dhcpd server, HOSTNAME
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) ___ 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
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.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Xfce unable to lookup hostname
On Thu, May 7, 2009 at 7:26 PM, Daniel Underwood djuatde...@gmail.comwrote: 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 names to IP addresses. It is very useful for assigning names to computers on your home network since those computers are (probably) not mapped in a DNS system. As you can see, an IP address, such as 127.0.0.1 (local host and bsdbox), can be mapped to multiple names. Andrew ___ 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
On Thu, 7 May 2009 20:26:40 -0400, Daniel Underwood djuatde...@gmail.com 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? 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): 127.0.0.1 hostname.domain hostname 127.0.0.1 hostname.domain. Note the dot. In your case, it would be 127.0.0.1 bsdbox.my.domain bsdbox 127.0.0.1 bsdbox.my.domain. This enables the following resolve patterns: bsdbox - 127.0.0.1 bsdbox.my.domain- 127.0.0.1 (You've got only this) The first one is the alias / short name of the host, its hostname. The second one is the full name including the hostname and the domainname. Refer to % man hosts for a much better explaination. :-) An addition: It's important that the system can resolve localhost, too, because that's an important reserved literal name. For example, the CUPS often addresses localhost:631 (if I remember correctly, I use apsfilter). Furthermore, the system's mail subsystem relies on such settings. So you could add or complete: ::1 localhost 127.0.0.1 localhost It can cause big (stupid) problems if you miss them. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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
Assign IP address and hostname via kernel parameter
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 aware that I could configure a static mac address and use DHCP, but with several layer2 segments on different XEN hosts setting up DHCP correctly would be a real pain ;-) --- Regards Mr. Olli ___ 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: Assign IP address and hostname via kernel parameter
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 xen domU's hope this helps, =jt On Wed, May 6, 2009 at 11:20 AM, Mister Olli mister.o...@googlemail.comwrote: 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 aware that I could configure a static mac address and use DHCP, but with several layer2 segments on different XEN hosts setting up DHCP correctly would be a real pain ;-) --- Regards Mr. Olli ___ freebsd-curr...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ 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: Assign IP address and hostname via kernel parameter
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=00:15:17:47:14:fc boot.netif.ip=192.168.198.8 boot.netif.netmask=255.255.255.0 to values obtained from BOOTP or DHCP, and the right things happen. I guess you could just set these in loader.conf or at the loader prompt. -- Bob Bishop r...@gid.co.uk ___ 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
Last commmand showing resolved hostname
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 be names or internet numbers. The machine has it's DNS client working just fine. I can resolve names perfectly fine on the machine. It just appears that the 'last' command needs something that I'm unaware of to use the DNS resolver. Any ideas? -Troy ___ 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: Last commmand showing resolved hostname
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 DNS hostnames can change between the time the wtmp entry was made and the time you run last and try to perform DNS resolution, so the wtmp database keeps IP addresses only. This being said, you can get what you've asked for by installing the / usr/ports/dns/adns port, and running last | adnsresfilter. Regards, -- -Chuck ___ 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
Cannot send to mailing lists - client host rejected: cannot find your hostname
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 some dns issues after I moved the server in a clean up and network down disaster at the end of the year. Thats all sorted now, but the errors are still there! I just posted again and still no luck. I'm using a static address from my ISP, and while I can run a server on the system legally, I'm getting no help to do so. Is there a reason for this sudden change? Have the filtering rules on the freebsd server changed recently? I can be posted privately if need be. This message was sent using IMP, the Internet Messaging Program. ___ 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: Cannot send to mailing lists - client host rejected: cannot find your hostname
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 some dns issues after I moved the It would help if you post some logs and return error messages... Olivier ___ 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: Default list of exported variables in sh(1) - $HOSTNAME
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, depending). First, FreeBSD's default php.ini doesn't have: $variables_order = EGPCS, so $ENV[] array wasn't getting popualted at all. Second, Apache FreeBSD RC scripts inherit the user environment from sudo(8) unless you pass -H or -i flag/args E.x.:, % sudo -H -i -u root /usr/local/etc/rc.d/apache22 restart Compared to: $ su - Password: $ /usr/local/etc/rc.d/apache22 restart Result in completely different results in PHP's $_ENV[] Additionally, the results of $ su - differ completely from the shell environment that executes when rc(8) is first run at boot time. I may be better off using getenv() in PHP directly. ~BAS in /usr/share/skel on FreeBSD does not set them. Neither does /etc/login.conf. I would set it in /etc/profile. -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Re: Default list of exported variables in sh(1) - $HOSTNAME
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 some extent. However, the problem is more complicated (or less complicated, depending). First, FreeBSD's default php.ini doesn't have: $variables_order = EGPCS, so $ENV[] array wasn't getting popualted at all. The port only installs php.ini-dist and php.ini-recommended, which are the ones from the PHP source tree. If neither of these is copied to php.ini then php.ini-dist is hardcoded inside php itself, also not something the FreeBSD port alters. Second, Apache FreeBSD RC scripts inherit the user environment from sudo(8) unless you pass -H or -i flag/args E.x.:, % sudo -H -i -u root /usr/local/etc/rc.d/apache22 restart Compared to: $ su - Password: $ /usr/local/etc/rc.d/apache22 restart Result in completely different results in PHP's $_ENV[] As expected. However, stuff in /etc/profile applies to all Bourne type shells. Additionally, the results of $ su - differ completely from the shell environment that executes when rc(8) is first run at boot time. Correct. You can however clean the entire environment, by setting apache22limits_enable=YES and apache22limits_args=-e -E -C daemon. If you need specific variables to be available and the rest to be gone, the standard rc script doesn't support it. You'd have to roll your own. 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. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ 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: Default list of exported variables in sh(1) - $HOSTNAME
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'll ask on the lists. -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Re: Default list of exported variables in sh(1) - $HOSTNAME
On Wednesday 24 December 2008 10:22:34 Brian A. Seklecki wrote: 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[HOSTNAME], which under GNU/Linux returns: $ php -r 'print gethostbyaddr(gethostbyname($_ENV[HOSTNAME]))' soundwave.wscollaborativefusion.com In HTTP/CGI mode, I can call $_SERVER[]. But $_ENV[] should work in both CLI and HTTP mode. However, because Apache is spawned from sh(1) from rc(8) and in FreeBSD 6.x, $HOSTNAME is not exported by default, which is what $_ENV[] uses (getenv()): $ uname -a FreeBSD bdb00 6.3-RELEASE-p2 $ export SSH_CLIENT USER MAIL HOME SSH_TTY PAGER ENV LOGNAME BLOCKSIZE TERM PATH SHELL 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 in /usr/share/skel on FreeBSD does not set them. Neither does /etc/login.conf. I would set it in /etc/profile. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ 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
Default list of exported variables in sh(1) - $HOSTNAME
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[HOSTNAME], which under GNU/Linux returns: $ php -r 'print gethostbyaddr(gethostbyname($_ENV[HOSTNAME]))' soundwave.wscollaborativefusion.com In HTTP/CGI mode, I can call $_SERVER[]. But $_ENV[] should work in both CLI and HTTP mode. However, because Apache is spawned from sh(1) from rc(8) and in FreeBSD 6.x, $HOSTNAME is not exported by default, which is what $_ENV[] uses (getenv()): $ uname -a FreeBSD bdb00 6.3-RELEASE-p2 $ export SSH_CLIENT USER MAIL HOME SSH_TTY PAGER ENV LOGNAME BLOCKSIZE TERM PATH SHELL SSH_CONNECTION FTP_PASSIVE_MODE EDITOR --- Compare to: linux$ uname -a Linux soundwave 2.6.25.14-108.fc9.x86_64 linux$ bash --version GNU bash, version 3.2.33(1)-release (x86_64-redhat-linux-gnu) linux$ export|wc -l 52 linux$ export|grep -i host declare -x HOSTNAME=soundwave It could be set in the sources for sh(1) or shells/bash, login(1), possibly somehow related to PAM. src/usr.bin/login/login.c has : static int export(const char *s) { * - Do not export certain variables. This list was taken from the * Solaris pam_putenv(3) man page. * Then export it. static const char *noexport[] = { SHELL, HOME, LOGNAME, MAIL, CDPATH, IFS, PATH, NULL }.. $HOSTNAME not listed here --- src/bin/sh/var.c has environment(){} and at least one other call to getnamebyaddr() Bash has set_machine_vars() in variables.c: temp_var = set_if_not (HOSTNAME, current_host_name); - There are also about 500 calls to getenv() in the PHP source code under main/, however none explicitly for $HOSTNAME. This is similar to bash, so unless the Redhat people are maintaining lots of SRPM patches to Bash _and_ PHP, I'm prepared to isolate the problem to FreeBSD and sh(1)/login(1) Thoughts? (Happy holidays all!) ~BAS -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Re: redundancy in domain or hostname ?
At 06:36 PM 1/26/2008, Walter Jansen wrote: The router connected to my server reports DNS inquiries like myserver.example.com.example.com which obviously leads nowhere The server is in a SOHO situation connected to a router which is connected to DSL; the server runs 6.3 Release and will serve as mailserver for the few 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 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 localhost 192.168.1.13myserver.example.com myserver 192.168.1.13myserver.example.com. 192.168.1.13 is allocated to the server by the DHCP of the router; this IP address is fixed though!! Table /etc/resolv.com reads: domain example.com nameserver 192.168.1.1 (my router's IP address I postponed installation of Postfix and Apache as I feel that host- and domainname should be configured correctly to prevent accumulating trouble. Remarks a most appreciated. The extra entries in /etc/hosts are for both IP6 and IP4 the hostname entry with the trailing dot: myserver.example.com. denotes it as a fully qualified domain name, FQDN. If hostname shows the correct hostname with one domain, the problem is else ware. If it is else ware, I suspect your router is adding the example.com to every lookup. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: redundancy in domain or hostname ?
On Saturday 26 January 2008 06:36:11 pm Walter Jansen wrote: The router connected to my server reports DNS inquiries like myserver.example.com.example.com which obviously leads nowhere The server is in a SOHO situation connected to a router which is connected to DSL; the server runs 6.3 Release and will serve as mailserver for the few 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 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 localhost 192.168.1.13myserver.example.com myserver 192.168.1.13myserver.example.com. 192.168.1.13 is allocated to the server by the DHCP of the router; this IP address is fixed though!! Table /etc/resolv.com reads: domain example.com nameserver 192.168.1.1 (my router's IP address I postponed installation of Postfix and Apache as I feel that host- and domainname should be configured correctly to prevent accumulating trouble. Remarks a most appreciated. -- Walter -- If memory serves the hostname in sysinstall is just the host part of the name, in your case myserver, and the domain part is example.com What does hostname think the hostname is? The other common case where you'll get this is forgetting a . in a BIND zone file, which causes it to append the domain name again -- Thanks, Josh Paetzel PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB signature.asc Description: This is a digitally signed message part.
redundancy in domain or hostname ?
The router connected to my server reports DNS inquiries like myserver.example.com.example.com which obviously leads nowhere The server is in a SOHO situation connected to a router which is connected to DSL; the server runs 6.3 Release and will serve as mailserver for the few 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 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 localhost 192.168.1.13myserver.example.com myserver 192.168.1.13myserver.example.com. 192.168.1.13 is allocated to the server by the DHCP of the router; this IP address is fixed though!! Table /etc/resolv.com reads: domain example.com nameserver 192.168.1.1 (my router's IP address I postponed installation of Postfix and Apache as I feel that host- and domainname should be configured correctly to prevent accumulating trouble. Remarks a most appreciated. -- Walter -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gdm-binary: Unable to connect to socket: hostname nor servname provided (SOLVED)
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.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
gdm-binary: Unable to connect to socket: hostname nor servname provided
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 not accepting connections on TCP/177. This is the problem, because I want many clients connect to this computer with xdmcp. My ports tree was first downloaded via portsnap fetch three days ago. All ports have been compiled from this ports tree. My /usr/local/etc/gdm/custom.conf file has these modifications: snip [security] DisallowTCP=false [xdmcp] Enable=true /snip Here is some more information: snip cassiopeia# uname -a FreeBSD cassiopeia.ronet 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Thu Nov 15 17:19:45 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA amd64 cassiopeia# hostname cassiopeia.ronet cassiopeia# cat /etc/resolv.conf search ronet nameserver 192.168.0.1 cassiopeia# host cassiopeia cassiopeia.ronet has address 192.168.0.1 cassiopeia# ipfw show 00050 4320 696526 divert 8668 ip4 from any to any via rl0 00100 112 8560 allow ip from any to any via lo0 002000 0 deny ip from any to 127.0.0.0/8 003000 0 deny ip from 127.0.0.0/8 to any 65000 4320 696526 allow ip from any to any 655350 0 deny ip from any to any cassiopeia# pkg_info | grep gdm gdm-2.20.1_1GNOME 2 version of xdm display manager cassiopeia#ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 192.168.1.105 netmask 0xff00 broadcast 192.168.1.255 ether 00:0e:2e:8f:13:03 media: Ethernet autoselect (100baseTX full-duplex) status: active re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255 ether 00:1a:4d:7b:cf:d6 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet 127.0.0.1 netmask 0xff00 cassiopeia# cat /etc/rc.conf moused_flags= moused_port=/dev/psm0 moused_type=auto moused_enable=YES gateway_enable=YES hostname=cassiopeia.ronet ifconfig_rl0=inet 192.168.1.105 netmask 255.255.255.0 ifconfig_re0=inet 192.168.0.1 netmask 255.255.255.0 firewall_enable=YES firewall_type=/etc/ipfw.conf local_startup=/usr/local/etc/rc.d gnome_enable=YES inetd_enable=YES # TFTP named_enable=YES # DNS cache, local DNS (diskless1XX.ronet) dhcpd_enable=YES # dhcpd enabled? dhcpd_flags=-q# command option(s) dhcpd_conf=/usr/local/etc/dhcpd.conf # configuration file dhcpd_ifaces=re0 # ethernet interface(s) dhcpd_withumask=022 # file creation mask nfs_server_enable=YES nfs_reserved_port_only=YES rcpbind_enable=YES mountd_flags=-r rpc_lockd_enable=YES rpc_statd_enable=YES natd_enable=YES natd_interface=rl0 natd_flags= /snip Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
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) - so I'm wondering what the machines hostname should be? By default it's localhost.localdomain. This has always confused me from the begining when I first started using FreeBSD, can anyone chime in? It would greatly appreciated. Thanks! its fairly simple actually. example: my system's name is athena. my domain, is dfwlp.com... thus my computer is athena.dfwlp.com. the hostname command can show you waht your current hostname is: [EMAIL PROTECTED] ~] $ hostname athena.dfwlp.com also, there is a line in /etc/rc.conf that specifys the system's hostname when you start up: [EMAIL PROTECTED] ~] $ cat /etc/rc.conf|grep hostname hostname=athena.dfwlp.com finally, when you are installing freebsd, during the network configuration page, the Host: box would be where i would put athena, and the Domain: box would be where i put dfwlp.com (when you set your domain, you dont put the . in front of the domain name, ie, dont put .dfwlp.com in the domain box). cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Right, my current box is mail.placidpublishing.com, I only have 1 box, and it does web and mail. I just picked placidpublishing and used that since it was a domain I had laying arond. Is that ok? How does one pick a domain? Just any old domain? I keep visualizing a domain as in 3-4 servers each of which has a hostname mail, web, etc.. Pick a domain you own, or buy a new one. They is why there are so many domain possibilities these days, like .info, .biz, etc. in addition to the regular .com, .net, .org -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
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 domain possibilities these days, like .info, .biz, etc. in addition to the regular .com, .net, .org Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
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, but that shouldn't really be too tough. -Derek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
--- Derek Ragona [EMAIL PROTECTED] wrote: 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, 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 know what the hostname for the web server is. The mail and ftp servers are mail.domainname.com and ftp.domainname.com, so I guess I would not want to use these. Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
Jonathan Horne wrote: On Wednesday 29 August 2007 19:19:58 Peter Pluta wrote: How does one pick a domain? Just any old domain? thats often how it goes! mine was originally dfwlanparty... but dfwlp just became the shortend version 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 actually are named web mail, or have names after services. myself, i have names that ive chosen, and then use DNS to link the common services to them. example, if you do a: host castor.dfwlp.com youll find that castor is my server that handles www.dfwlp.com. so, if you have a specific name in mind, dont be afraid to use it! you can always go back later and use DNS to give your box as many jobs as you need (ie, you can DNS both www and mail to the same server, if you need to). cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Ah ok. I host a few domains on my box, 3 web, and 1 mail. I will just call my box box(anything).placidpublishing.net and just have dns entries for mail, www, etc.. to the appropriate domains. That makes more sense. Thanks -- View this message in context: http://www.nabble.com/FreeBSD-Hostname-Question---Whats-The-Proper-Way-tf4351213.html#a12418257 Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
At 06:29 PM 8/30/2007, L Goodwin wrote: --- Derek Ragona [EMAIL PROTECTED] wrote: 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, 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 know what the hostname for the web server is. The mail and ftp servers are mail.domainname.com and ftp.domainname.com, so I guess I would not want to use these. Correct, only use host names that are unique. Most use some names that help identify the machine by the dept, user, etc. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
At 07:55 PM 8/30/2007, L Goodwin wrote: --- Derek Ragona [EMAIL PROTECTED] wrote: At 06:29 PM 8/30/2007, L Goodwin wrote: --- Derek Ragona [EMAIL PROTECTED] wrote: 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, 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 know what the hostname for the web server is. The mail and ftp servers are mail.domainname.com and ftp.domainname.com, so I guess I would not want to use these. Correct, only use host names that are unique. Most use some names that help identify the machine by the dept, user, etc. Thanks for clearing that up, Derek. It's hard to know something until you actually _know_ it! :-) It gets easier with experience. Doesn't hurt if you do some DNS setups too. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
--- Derek Ragona [EMAIL PROTECTED] wrote: At 06:29 PM 8/30/2007, L Goodwin wrote: --- Derek Ragona [EMAIL PROTECTED] wrote: 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, 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 know what the hostname for the web server is. The mail and ftp servers are mail.domainname.com and ftp.domainname.com, so I guess I would not want to use these. Correct, only use host names that are unique. Most use some names that help identify the machine by the dept, user, etc. Thanks for clearing that up, Derek. It's hard to know something until you actually _know_ it! :-) Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
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.domainname.com and ftp.domainname.com, so I guess I would not want to use these. I have a minimum of three names for any machine visible to the outside world. (1) I have the internal name that I give a box. A few years ago, I asked my daughter for help naming machines, and we ended up with a Harry Potter theme. So my primary external server (which has the most names) is dobby.ewd.goldmark.org, but that name isn't visible to the world. It's not secret, but I have no intention of having anything out side my local network needed to refer to it that way. (And in the Harry Potter scheme, my three headed firewall is named fluffy.) (2) But there is another name it must also have. I have a tiny block of IP addresses which all had PTR records associated with them like static-72-64-118-118.dllstx.fios.verizon.net. It took more than two hours on the phone to Verizon to get those changed, so it was something I only ever wanted to do once, so I have names like n114.ewd.goldmark.org n115.ewd.goldmark.org and so on. So dobby is also known of as n118.ewd.goldmark.org (3) Now dobby runs a couple of public servers. It runs Apache as www.goldmark.org and about half a dozen vhosts. It also also runs a mailserver (postfix) with mailman primarily visible under the name lists.shepard-families.org. So recapping. One is my quasi-private name for the box itself. And that is what hostname knows. Two is a name corresponding the the reverse lookup of any public IP address it might have. There may be several of these if the machine had multiple IP addresses. And three are role names for all of the services it runs. This way, if I want to move a service to a different host, that is relatively easy. -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
--- 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 know what the hostname for the web server is. The mail and ftp servers are mail.domainname.com and ftp.domainname.com, so I guess I would not want to use these. I have a minimum of three names for any machine visible to the outside world. (1) I have the internal name that I give a box. A few years ago, I asked my daughter for help naming machines, and we ended up with a Harry Potter theme. So my primary external server (which has the most names) is dobby.ewd.goldmark.org, but that name isn't visible to the world. It's not secret, but I have no intention of having anything out side my local network needed to refer to it that way. (And in the Harry Potter scheme, my three headed firewall is named fluffy.) (2) But there is another name it must also have. I have a tiny block of IP addresses which all had PTR records associated with them like static-72-64-118-118.dllstx.fios.verizon.net. It took more than two hours on the phone to Verizon to get those changed, so it was something I only ever wanted to do once, so I have names like n114.ewd.goldmark.org n115.ewd.goldmark.org and so on. So dobby is also known of as n118.ewd.goldmark.org (3) Now dobby runs a couple of public servers. It runs Apache as www.goldmark.org and about half a dozen vhosts. It also also runs a mailserver (postfix) with mailman primarily visible under the name lists.shepard-families.org. So recapping. One is my quasi-private name for the box itself. And that is what hostname knows. Two is a name corresponding the the reverse lookup of any public IP address it might have. There may be several of these if the machine had multiple IP addresses. And three are role names for all of the services it runs. This way, if I want to move a service to a different host, that is relatively easy. Thanks, Jeff! Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD Hostname Question - Whats The Proper Way
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 begining when I first started using FreeBSD, can anyone chime in? It would greatly appreciated. Thanks! -- View this message in context: http://www.nabble.com/FreeBSD-Hostname-Question---Whats-The-Proper-Way-tf4351213.html#a12398274 Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
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. This has always confused me from the begining when I first started using FreeBSD, can anyone chime in? It would greatly appreciated. Thanks! I always give my servers a hostname and IP for the base system. If I add a website, I will add another IP (or use apache's virtual hosting on the same IP) and add another DNS entry for the system. You can have more than one name for an IP and for a server. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
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 localhost.localdomain. This has always confused me from the begining when I first started using FreeBSD, can anyone chime in? It would greatly appreciated. Thanks! its fairly simple actually. example: my system's name is athena. my domain, is dfwlp.com... thus my computer is athena.dfwlp.com. the hostname command can show you waht your current hostname is: [EMAIL PROTECTED] ~] $ hostname athena.dfwlp.com also, there is a line in /etc/rc.conf that specifys the system's hostname when you start up: [EMAIL PROTECTED] ~] $ cat /etc/rc.conf|grep hostname hostname=athena.dfwlp.com finally, when you are installing freebsd, during the network configuration page, the Host: box would be where i would put athena, and the Domain: box would be where i put dfwlp.com (when you set your domain, you dont put the . in front of the domain name, ie, dont put .dfwlp.com in the domain box). cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
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 the machines hostname should be? By default it's localhost.localdomain. This has always confused me from the begining when I first started using FreeBSD, can anyone chime in? It would greatly appreciated. Thanks! its fairly simple actually. example: my system's name is athena. my domain, is dfwlp.com... thus my computer is athena.dfwlp.com. the hostname command can show you waht your current hostname is: [EMAIL PROTECTED] ~] $ hostname athena.dfwlp.com also, there is a line in /etc/rc.conf that specifys the system's hostname when you start up: [EMAIL PROTECTED] ~] $ cat /etc/rc.conf|grep hostname hostname=athena.dfwlp.com finally, when you are installing freebsd, during the network configuration page, the Host: box would be where i would put athena, and the Domain: box would be where i put dfwlp.com (when you set your domain, you dont put the . in front of the domain name, ie, dont put .dfwlp.com in the domain box). cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Right, my current box is mail.placidpublishing.com, I only have 1 box, and it does web and mail. I just picked placidpublishing and used that since it was a domain I had laying arond. Is that ok? How does one pick a domain? Just any old domain? I keep visualizing a domain as in 3-4 servers each of which has a hostname mail, web, etc.. -- View this message in context: http://www.nabble.com/FreeBSD-Hostname-Question---Whats-The-Proper-Way-tf4351213.html#a12398404 Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Hostname Question - Whats The Proper Way
On Wednesday 29 August 2007 19:19:58 Peter Pluta wrote: How does one pick a domain? Just any old domain? thats often how it goes! mine was originally dfwlanparty... but dfwlp just became the shortend version 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 actually are named web mail, or have names after services. myself, i have names that ive chosen, and then use DNS to link the common services to them. example, if you do a: host castor.dfwlp.com youll find that castor is my server that handles www.dfwlp.com. so, if you have a specific name in mind, dont be afraid to use it! you can always go back later and use DNS to give your box as many jobs as you need (ie, you can DNS both www and mail to the same server, if you need to). cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
hostname setting in rc.conf ignored?
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 continues to return mydomain.com when i run the command hostname. Can anyone tell me what I am doing wrong? Thanks, Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hostname setting in rc.conf ignored?
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 /etc/rc.conf file: hostname=www.mydomain.com but after restarting the server it continues to return mydomain.com when i run the command hostname. Can anyone tell me what I am doing wrong? Is there a second hostname entry further down in rc.conf with the original value? JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hostname setting in rc.conf ignored?
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 spamd_flags=-c -d -r ${spamd_pidfile} --socketpath=/var/run/spamd.sock mysql_enable=YES mysql_args=--old-passwords --skip-character-set-client-handshake Anything else I might check? Thanks, Mike On 5/17/07, John Nielsen [EMAIL PROTECTED] wrote: 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 /etc/rc.conf file: hostname=www.mydomain.com but after restarting the server it continues to return mydomain.com when i run the command hostname. Can anyone tell me what I am doing wrong? Is there a second hostname entry further down in rc.conf with the original value? JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hostname setting in rc.conf ignored?
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 variable in /etc/rc.conf. After perusing /etc, apparently rc.network is called by /etc/rc after sourcing rc.conf and this is how the hostname in /etc/rc.conf becomes the hostname of the machine. So that appears to be fine. 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? Thanks, Mike On 5/17/07, Mark Tinguely [EMAIL PROTECTED] wrote: I understand DHCP setting the hostname, which you are not using. I understand DNS or /etc/hosts reporting the old name on the network, but it should not effect hostname. I would look for the old name: # grep -r mydomain.com /etc --Mark Tinguely ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hostname setting in rc.conf ignored?
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. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hostname setting in rc.conf ignored?
Thanks. For posterity then, anyone who unwisely wishes to give up the hunt and use this hack, one solution is to add this line to /etc/rc.conf: local_startup=/usr/local/etc/rc.d /usr/X11R6/etc/rc.d /usr/local/etc/rc.after_everything.d Then create the directory /usr/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: 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. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sendmail and hostname
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 : 127.0.0.1 localhost alice 192.168.1.2 alice 192.168.1.3 bob Any help would be much appreciated. Firas -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpV63gbnJKiN.pgp Description: PGP signature
Re: sendmail and hostname
On Tue, Apr 03, 2007 at 10:29:36PM +0200, 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 /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 that is set in /etc/rc.conf. E.g, if /etc/rc.conf says hostname=alice.home.net then /etc hosts should have ::1 localhost localhost.home.net 127.0.0.1 localhost localhost.home.net 192.168.1.2 alice alice.home.net HTH, Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpJZqm9dr3Hy.pgp Description: PGP signature
sendmail and hostname
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 : 127.0.0.1 localhost alice 192.168.1.2 alice 192.168.1.3 bob Any help would be much appreciated. Firas -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sendmail and hostname
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 /etc/hosts file. So here goes : 127.0.0.1 localhost alice 192.168.1.2 alice 192.168.1.3 bob Any help would be much appreciated. sendmail is trying to work out your fully qualified domain name. In short, it wants a name with dots in. You can just invent a name -- alice.local for example -- and your own sendmail will be happy, but ones it connects to for mail delivery may be less so. That may or may not be a problem depending on your local setup. Or else you can get a name properly registered in the DNS and use that instead. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Client host rejected: cannot find your hostname
I get a messages from mx1.freebsd.org: 450 4.7.1 Client host rejected: cannot find your hostname, [80.126.252.247] Seems that the soa file of justnosweat.net is not on the dns server, I get the root server. I did a dig on the name server of freebsd dig @NS1.IAFRICA.COM justnosweat.net any. What`s the problem ; DiG 9.3.2 @NS1.IAFRICA.COM justnosweat.net any ; (1 server found) ;; global options: printcmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 20111 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 14 ;; QUESTION SECTION: ;justnosweat.net. IN ANY ;; AUTHORITY SECTION: net.164187 IN NS f.gtld-servers.net. net.164187 IN NS k.gtld-servers.net. net.164187 IN NS g.gtld-servers.net. net.164187 IN NS d.gtld-servers.net. net.164187 IN NS b.gtld-servers.net. net.164187 IN NS j.gtld-servers.net. net.164187 IN NS e.gtld-servers.net. net.164187 IN NS m.gtld-servers.net. net.164187 IN NS h.gtld-servers.net. net.164187 IN NS l.gtld-servers.net. net.164187 IN NS c.gtld-servers.net. net.164187 IN NS i.gtld-servers.net. net.164187 IN NS a.gtld-servers.net. ;; ADDITIONAL SECTION: f.gtld-servers.net. 147753 IN A 192.35.51.30 k.gtld-servers.net. 147753 IN A 192.52.178.30 g.gtld-servers.net. 147753 IN A 192.42.93.30 d.gtld-servers.net. 147753 IN A 192.31.80.30 b.gtld-servers.net. 147749 IN A 192.33.14.30 j.gtld-servers.net. 147753 IN A 192.48.79.30 e.gtld-servers.net. 147753 IN A 192.12.94.30 m.gtld-servers.net. 147753 IN A 192.55.83.30 h.gtld-servers.net. 147749 IN A 192.54.112.30 l.gtld-servers.net. 147753 IN A 192.41.162.30 c.gtld-servers.net. 147749 IN A 192.26.92.30 i.gtld-servers.net. 147753 IN A 192.43.172.30 a.gtld-servers.net. 147753 IN A 192.5.6.30 b.gtld-servers.net. 147749 IN 2001:503:231d::2:30 ;; Query time: 397 msec ;; SERVER: 196.7.0.139#53(196.7.0.139) ;; WHEN: Mon Feb 26 13:34:01 2007 ;; MSG SIZE rcvd: 490 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]