From: <ee...@fr...> - 2005-03-15 00:00:46
|
Hi, First, I can advise you to RTFM ;-) e.g. man hostname You'll learn that it depends on /etc/host.conf which defines the order to= search for names in files, dns ... files means entries in /etc/hosts If you want a simple solution , add a line like : 192.168.0.254 host.domain.name host in /etc/hosts otherwise, configure bind (the dns server) but please RTFM twice and read= the previous threads in the mailing lists (bind's for that purpose ...) Have Fun MaNU -- |
From: <Her...@sp...> - 2005-03-15 06:33:33
|
dev...@li... wrote on 15.03.2005 01:00:43: > Hi, > > First, I can advise you to RTFM ;-) I did, but only partially :-( > > e.g. man hostname > > You'll learn that it depends on /etc/host.conf which defines the > order to search > for names in files, dns ... > > files means entries in /etc/hosts > > If you want a simple solution , add a line like : > > 192.168.0.254 host.domain.name host > > in /etc/hosts > I was just surprised, that I have two places in the setup where I specify the domain, but hostname -f still only gives me a host without domain. I was under the impression, that if I set the domain name in setup that the system should be configured to deliver it's fqdn on request. Because of this, I did ask the question here and did not read too much FM (I was searching the DL manual for description about the two different domain settings) > otherwise, configure bind (the dns server) but please RTFM twice and read the > previous threads in the mailing lists (bind's for that purpose ...) I'm running a couple of bind's on other servers already... > > Have Fun You too.. Herbert |
From: Heiko Z. <he...@zu...> - 2005-03-15 14:42:03
|
> dev...@li... wrote on 15.03.2005 > 01:00:43: > > >> Hi, >> >> >> First, I can advise you to RTFM ;-) >> > I did, but only partially :-( > >> >> e.g. man hostname >> >> You'll learn that it depends on /etc/host.conf which defines the >> order to search for names in files, dns ... >> >> files means entries in /etc/hosts >> >> If you want a simple solution , add a line like : >> >> >> 192.168.0.254 host.domain.name host >> >> >> in /etc/hosts >> > I was just surprised, that I have two places in the setup where I specify > the domain, but hostname -f still only gives me a host without domain. I > was under the impression, that if I set the domain name in setup that > the system should be configured to deliver it's fqdn on request. Because > of this, I did ask the question here and did not read too much FM (I was > searching the DL manual for description about the two different domain > settings) >> otherwise, configure bind (the dns server) but please RTFM twice and >> read > the >> previous threads in the mailing lists (bind's for that purpose ...) > I'm running a couple of bind's on other servers already... I did the same mistake as you initially. Add you host to your local hosts file and it should show up correctly via "hostname -f". I'm not sure if we should do this automatically for the users, any opinions ? -- Regards Heiko Zuerker http://www.devil-linux.org |
From: <Her...@sp...> - 2005-03-15 14:54:00
|
dev...@li... wrote on 15.03.2005 15:40:43: > > dev...@li... wrote on 15.03.2005 > > 01:00:43: > > > > > >> Hi, > >> > >> > >> First, I can advise you to RTFM ;-) > >> > > I did, but only partially :-( > > > >> > >> e.g. man hostname > >> > >> You'll learn that it depends on /etc/host.conf which defines the > >> order to search for names in files, dns ... > >> > >> files means entries in /etc/hosts > >> > >> If you want a simple solution , add a line like : > >> > >> > >> 192.168.0.254 host.domain.name host > >> > >> > >> in /etc/hosts > >> > > I was just surprised, that I have two places in the setup where I specify > > the domain, but hostname -f still only gives me a host without domain. I > > was under the impression, that if I set the domain name in setup that > > the system should be configured to deliver it's fqdn on request. Because > > of this, I did ask the question here and did not read too much FM (I was > > searching the DL manual for description about the two different domain > > settings) > >> otherwise, configure bind (the dns server) but please RTFM twice and > >> read > > the > >> previous threads in the mailing lists (bind's for that purpose ...) > > I'm running a couple of bind's on other servers already... > > I did the same mistake as you initially. > Add you host to your local hosts file and it should show up correctly via > "hostname -f". > > I'm not sure if we should do this automatically for the users, any opinions ? > Yeah! thats the kind of discussen I liked to start. I'm glad you didn't RTFM me :-) I think it (the fqdn) should be added to /etc/hosts automatically. SuSE does add those entries to /etc/hosts Herbert |
From: Heiko Z. <he...@zu...> - 2005-03-15 15:10:01
|
Hey, >> I'm not sure if we should do this automatically for the users, any >> > opinions ? >> > > Yeah! thats the kind of discussen I liked to start. I'm glad you didn't > RTFM me :-) I would never do something like that. ;-) > I think it (the fqdn) should be added to /etc/hosts automatically. SuSE > does add those entries to /etc/hosts What does our setup master Bruce say about this? -- Regards Heiko Zuerker http://www.devil-linux.org |
From: Bruce S. <bw...@ar...> - 2005-03-15 16:02:56
|
> > I think it (the fqdn) should be added to /etc/hosts automatically. SuSE > > does add those entries to /etc/hosts > > What does our setup master Bruce say about this? I don't know how to do it under all (most?) circumstances. If a PC has two or three NIC's, which IP do we put in hosts? If a network interface uses DHCP, what IP do we put in hosts? Maybe we always put the FQDN in as 127.0.0.1? But what other problems will that cause? If this is only a problem for apache to read the fqdn, it sounds easier to add something to the documentation stating that. :-) - BS |
From: <Her...@sp...> - 2005-03-15 16:12:28
|
dev...@li... wrote on 15.03.2005 17:02:50: > > > I think it (the fqdn) should be added to /etc/hosts automatically. SuSE > > > does add those entries to /etc/hosts > > > > What does our setup master Bruce say about this? > > I don't know how to do it under all (most?) circumstances. > > If a PC has two or three NIC's, which IP do we put in hosts? SuSE adds both IF with the same name and domain > If a network interface uses DHCP, what IP do we put in hosts? Doesnt the fqdn gets assigned through DHCP? If so where is dhcpd writing the fqdn? > > Maybe we always put the FQDN in as 127.0.0.1? On SuSE 127.0.0.1 is set to localhost in hosts file. > But what other problems will that cause? > > If this is only a problem for apache to read the fqdn, it sounds > easier to add something to the documentation stating that. :-) > > - BS > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Devil-linux-discuss mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss |
From: Karsten S. <k_s...@gm...> - 2005-03-15 20:18:08
|
Her...@sp... schrieb: >dev...@li... wrote on 15.03.2005 >17:02:50: > > >>>>I think it (the fqdn) should be added to /etc/hosts automatically. >>>> >SuSE > >>>>does add those entries to /etc/hosts >>>> >>>What does our setup master Bruce say about this? >>> >>I don't know how to do it under all (most?) circumstances. >> >>If a PC has two or three NIC's, which IP do we put in hosts? >> > >SuSE adds both IF with the same name and domain > > >>If a network interface uses DHCP, what IP do we put in hosts? >> > >Doesnt the fqdn gets assigned through DHCP? If so where is dhcpd writing >the fqdn? > > [...] The DHCP Client on my SuSE System sets "<IP> <hostname.domainname> <hostname>" in /etc/hosts. And changes resolv.conf according to the parameters it recieves from the server (if configured). On my Solaris 10 System only "<IP> <hostname>" is set by the dhcp client... In my opinion leave the hosts file as it is, when you use dns. cu Karsten |
From: Heiko Z. <he...@zu...> - 2005-03-15 16:08:13
|
>>> I think it (the fqdn) should be added to /etc/hosts automatically. >>> SuSE >>> does add those entries to /etc/hosts >> >> What does our setup master Bruce say about this? >> > > I don't know how to do it under all (most?) circumstances. > > > If a PC has two or three NIC's, which IP do we put in hosts? > If a network interface uses DHCP, what IP do we put in hosts? > > > Maybe we always put the FQDN in as 127.0.0.1? > But what other problems will that cause? > > > If this is only a problem for apache to read the fqdn, it sounds > easier to add something to the documentation stating that. :-) Do you have any SuSE system where you could take a look at the hosts file? -- Regards Heiko Zuerker http://www.devil-linux.org |
From: <Her...@sp...> - 2005-03-15 16:12:53
|
dev...@li... wrote on 15.03.2005 17:07:56: > > >>> I think it (the fqdn) should be added to /etc/hosts automatically. > >>> SuSE > >>> does add those entries to /etc/hosts > >> > >> What does our setup master Bruce say about this? > >> > > > > I don't know how to do it under all (most?) circumstances. > > > > > > If a PC has two or three NIC's, which IP do we put in hosts? > > If a network interface uses DHCP, what IP do we put in hosts? > > > > > > Maybe we always put the FQDN in as 127.0.0.1? > > But what other problems will that cause? > > > > > > If this is only a problem for apache to read the fqdn, it sounds > > easier to add something to the documentation stating that. :-) > > Do you have any SuSE system where you could take a look at the hosts file? I will check on my suse tonight... > > -- > > Regards > Heiko Zuerker > http://www.devil-linux.org > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Devil-linux-discuss mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss |
From: Bruce S. <bw...@ar...> - 2005-03-15 18:32:17
|
> >>> I think it (the fqdn) should be added to /etc/hosts automatically. > >>> SuSE > >>> does add those entries to /etc/hosts > >> > >> What does our setup master Bruce say about this? > > > > I don't know how to do it under all (most?) circumstances. > > > > If a PC has two or three NIC's, which IP do we put in hosts? > > If a network interface uses DHCP, what IP do we put in hosts? > > > > > > Maybe we always put the FQDN in as 127.0.0.1? > > But what other problems will that cause? > > > > If this is only a problem for apache to read the fqdn, it sounds > > easier to add something to the documentation stating that. :-) > > Do you have any SuSE system where you could take a look at the hosts file? I think we should leave it alone. On my DL 1.2.4 box, which has a static IP, only localhost in the stock /etc/hosts file, and working DNS, 'hostname -f' returns the FQDN, and 'hostname -d' returns the domain name. People without a resolvable host and/or IP are going to have other problems running a server, especially if they want to send email! - BS |
From: Heiko Z. <he...@zu...> - 2005-03-15 14:43:34
|
Check the last sentence of the help. # hostname --help Usage: hostname [-v] {hostname|-F file} set hostname (from file) domainname [-v] {nisdomain|-F file} set NIS domainname (from file) hostname [-v] [-d|-f|-s|-a|-i|-y|-n] display formatted name hostname [-v] display hostname hostname -V|--version|-h|--help print info and exit dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y -s, --short short host name -a, --alias alias names -i, --ip-address addresses for the hostname -f, --fqdn, --long long host name (FQDN) -d, --domain DNS domain name -y, --yp, --nis NIS/YP domainname -F, --file read hostname or NIS domainname from given file This command can read or set the hostname or the NIS domainname. You can also read the DNS domain or the FQDN (fully qualified domain name). Unless you are using bind or NIS for host lookups you can change the FQDN (Fully Qualified Domain Name) and the DNS domain name (which is part of the FQDN) in the /etc/hosts file. -- Regards Heiko Zuerker http://www.devil-linux.org |